fix mp menu route & make textbox visible

This commit is contained in:
austin 2021-11-05 17:55:57 -04:00
parent bb3dae9814
commit fedd5aaf87
2 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class MenuUtils {
}
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;
rVal.addOption( WidgetUtils.createVerticallyAlignedMinSizeTextBoxFromCharCount(40, 40, screenTop - 125, "HOST", true));
rVal.setMenuOptionColor(0, new Vector3f(0.2f,0.8f,0.5f));

View File

@ -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){
TextBox rVal = new TextBox(-(int)(width/2.5), windowTop, width, height, rows, cols, text, render, true);
rVal.setVisible(true);
Globals.widgetManager.registerWidget(rVal);
return rVal;
}