Skip to content

Commit 3f30eb6

Browse files
committed
Use a spinner for Game Selection
1 parent 994edff commit 3f30eb6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ManualClient.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ def run_gui(self):
224224
from kivy.uix.gridlayout import GridLayout
225225
from kivy.uix.scrollview import ScrollView
226226
from kivy.uix.textinput import TextInput
227+
from kivy.uix.spinner import Spinner
227228
from kivy.uix.tabbedpanel import TabbedPanelItem
228229
from kivy.uix.treeview import TreeView, TreeViewNode, TreeViewLabel
229230
from kivy.clock import Clock
@@ -270,9 +271,10 @@ def build(self) -> Layout:
270271
self.manual_game_layout = BoxLayout(orientation="horizontal", size_hint_y=None, height=dp(30))
271272

272273
game_bar_label = Label(text="Manual Game ID", size=(dp(150), dp(30)), size_hint_y=None, size_hint_x=None)
274+
manuals = tuple([w for w in AutoWorldRegister.world_types.keys() if "Manual_" in w])
273275
self.manual_game_layout.add_widget(game_bar_label)
274-
self.game_bar_text = TextInput(text=self.ctx.suggested_game,
275-
size_hint_y=None, height=dp(30), multiline=False, write_tab=False)
276+
self.game_bar_text = Spinner(text=self.ctx.suggested_game,
277+
size_hint_y=None, height=dp(30), values=manuals)
276278
self.manual_game_layout.add_widget(self.game_bar_text)
277279

278280
self.grid.add_widget(self.manual_game_layout, 3)

0 commit comments

Comments
 (0)