fix mp menu route & make textbox visible
This commit is contained in:
parent
bb3dae9814
commit
fedd5aaf87
@ -84,7 +84,7 @@ public class MenuUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Menu createMultiplayerMenu(){
|
public static Menu createMultiplayerMenu(){
|
||||||
Menu rVal = new Menu(MenuType.SAVE_CREATE_MENU);
|
Menu rVal = new Menu(MenuType.MULTIPLAYER_MENU);
|
||||||
int screenTop = Globals.WINDOW_HEIGHT - 150;
|
int screenTop = Globals.WINDOW_HEIGHT - 150;
|
||||||
rVal.addOption( WidgetUtils.createVerticallyAlignedMinSizeTextBoxFromCharCount(40, 40, screenTop - 125, "HOST", true));
|
rVal.addOption( WidgetUtils.createVerticallyAlignedMinSizeTextBoxFromCharCount(40, 40, screenTop - 125, "HOST", true));
|
||||||
rVal.setMenuOptionColor(0, new Vector3f(0.2f,0.8f,0.5f));
|
rVal.setMenuOptionColor(0, new Vector3f(0.2f,0.8f,0.5f));
|
||||||
|
|||||||
@ -46,6 +46,7 @@ public class WidgetUtils {
|
|||||||
|
|
||||||
public static TextBox createVerticallyAlignedEditableTextBox(int width, int height, int windowTop, int cols, int rows, String text, boolean render){
|
public static TextBox createVerticallyAlignedEditableTextBox(int width, int height, int windowTop, int cols, int rows, String text, boolean render){
|
||||||
TextBox rVal = new TextBox(-(int)(width/2.5), windowTop, width, height, rows, cols, text, render, true);
|
TextBox rVal = new TextBox(-(int)(width/2.5), windowTop, width, height, rows, cols, text, render, true);
|
||||||
|
rVal.setVisible(true);
|
||||||
Globals.widgetManager.registerWidget(rVal);
|
Globals.widgetManager.registerWidget(rVal);
|
||||||
return rVal;
|
return rVal;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user