@@ -224,6 +224,7 @@ def run_gui(self):
224
224
from kivy .uix .gridlayout import GridLayout
225
225
from kivy .uix .scrollview import ScrollView
226
226
from kivy .uix .textinput import TextInput
227
+ from kivy .uix .spinner import Spinner
227
228
from kivy .uix .tabbedpanel import TabbedPanelItem
228
229
from kivy .uix .treeview import TreeView , TreeViewNode , TreeViewLabel
229
230
from kivy .clock import Clock
@@ -270,9 +271,10 @@ def build(self) -> Layout:
270
271
self .manual_game_layout = BoxLayout (orientation = "horizontal" , size_hint_y = None , height = dp (30 ))
271
272
272
273
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 ])
273
275
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 )
276
278
self .manual_game_layout .add_widget (self .game_bar_text )
277
279
278
280
self .grid .add_widget (self .manual_game_layout , 3 )
0 commit comments