kvui: abstract away client tab additions #3950

This commit is contained in:
Silvris
2024-09-22 09:24:14 -05:00
committed by GitHub
parent 99c02a3eb3
commit f7ec3d7508
3 changed files with 12 additions and 10 deletions

View File

@@ -111,13 +111,10 @@ class SC2Manager(GameManager):
def build(self):
container = super().build()
panel = TabbedPanelItem(text="Starcraft 2 Launcher")
panel.content = CampaignScroll()
panel = self.add_client_tab("Starcraft 2 Launcher", CampaignScroll())
self.campaign_panel = MultiCampaignLayout()
panel.content.add_widget(self.campaign_panel)
self.tabs.add_widget(panel)
Clock.schedule_interval(self.build_mission_table, 0.5)
return container