@@ -40,9 +40,15 @@ public override void Initialize()
40
40
regionSelector = new OpComboBox ( OIUtil . CosmeticBind ( "" ) ,
41
41
new ( SIDE_PADDING , MENU_SIZE - SIDE_PADDING - 30f ) ,
42
42
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
+ } ;
44
47
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
+ } ;
46
52
scugSelector . OnValueChanged += ScugSelector_OnValueChanged ;
47
53
var saveButton = new OpSimpleButton ( new ( MENU_SIZE - SIDE_PADDING - TOPBAR_UNIT_WIDTH , MENU_SIZE - SIDE_PADDING - 30f ) , new ( TOPBAR_UNIT_WIDTH , 24f ) , "SAVE" )
48
54
{
@@ -53,7 +59,10 @@ public override void Initialize()
53
59
// Bottom of menu
54
60
const string IMPORT_TEXT = "Import from: " ;
55
61
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
+ } ;
57
66
var importButton = new OpSimpleButton ( new ( importSelector . pos . x + importSelector . size . x + 6f , importSelector . pos . y ) , new Vector2 ( 80f , 24f ) , "IMPORT" ) ;
58
67
importButton . OnClick += ImportButton_OnClick ;
59
68
0 commit comments