@@ -40,9 +40,15 @@ public override void Initialize()
4040 regionSelector = new OpComboBox ( OIUtil . CosmeticBind ( "" ) ,
4141 new ( SIDE_PADDING , MENU_SIZE - SIDE_PADDING - 30f ) ,
4242 TOPBAR_UNIT_WIDTH * 2 + ITEM_GAP ,
43- regionList . Select ( ( x , i ) => new ListItem ( x , $ "({ x } ) { Data . RegionNameFor ( x , null ) } ", i ) ) . ToList ( ) ) ;
43+ regionList . Select ( ( x , i ) => new ListItem ( x , $ "({ x } ) { Data . RegionNameFor ( x , null ) } ", i ) ) . ToList ( ) )
44+ {
45+ listHeight = 20
46+ } ;
4447 regionSelector . OnValueChanged += RegionSelector_OnValueChanged ;
45- scugSelector = new OpComboBox ( OIUtil . CosmeticBind ( "" ) , new ( SIDE_PADDING + TOPBAR_UNIT_WIDTH * 2 + ITEM_GAP * 2 , regionSelector . pos . y ) , TOPBAR_UNIT_WIDTH , [ "" ] ) ;
48+ scugSelector = new OpComboBox ( OIUtil . CosmeticBind ( "" ) , new ( SIDE_PADDING + TOPBAR_UNIT_WIDTH * 2 + ITEM_GAP * 2 , regionSelector . pos . y ) , TOPBAR_UNIT_WIDTH , [ "" ] )
49+ {
50+ listHeight = 10
51+ } ;
4652 scugSelector . OnValueChanged += ScugSelector_OnValueChanged ;
4753 var saveButton = new OpSimpleButton ( new ( MENU_SIZE - SIDE_PADDING - TOPBAR_UNIT_WIDTH , MENU_SIZE - SIDE_PADDING - 30f ) , new ( TOPBAR_UNIT_WIDTH , 24f ) , "SAVE" )
4854 {
@@ -53,7 +59,10 @@ public override void Initialize()
5359 // Bottom of menu
5460 const string IMPORT_TEXT = "Import from: " ;
5561 var importLabel = new OpLabel ( SIDE_PADDING , SIDE_PADDING + ( 12f - LabelTest . LineHeight ( false ) / 2f ) , IMPORT_TEXT , false ) ;
56- importSelector = new OpComboBox ( OIUtil . CosmeticBind ( "" ) , new ( importLabel . pos . x + LabelTest . GetWidth ( IMPORT_TEXT , false ) + 6f , importLabel . pos . y ) , TOPBAR_UNIT_WIDTH , [ "" ] ) ;
62+ importSelector = new OpComboBox ( OIUtil . CosmeticBind ( "" ) , new ( importLabel . pos . x + LabelTest . GetWidth ( IMPORT_TEXT , false ) + 6f , importLabel . pos . y ) , TOPBAR_UNIT_WIDTH , [ "" ] )
63+ {
64+ listHeight = 10
65+ } ;
5766 var importButton = new OpSimpleButton ( new ( importSelector . pos . x + importSelector . size . x + 6f , importSelector . pos . y ) , new Vector2 ( 80f , 24f ) , "IMPORT" ) ;
5867 importButton . OnClick += ImportButton_OnClick ;
5968
0 commit comments