From 78c8e805f22f7cb8b13a05ee40ce59442a3605a7 Mon Sep 17 00:00:00 2001 From: Daan Breur Date: Mon, 22 Nov 2021 21:53:35 +0100 Subject: [PATCH] Use the new super cool inline FormElements Signed-off-by: Daan Breur --- src/js/states/main_menu.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/states/main_menu.js b/src/js/states/main_menu.js index 73a435f4..fa579e31 100644 --- a/src/js/states/main_menu.js +++ b/src/js/states/main_menu.js @@ -682,6 +682,7 @@ export class MainMenuState extends GameState { placeholder: "", defaultValue: "Unnamed", validator: val => val.match(regex) && trim(val).length > 0, + inline: true, }); const seedInput = new FormElementInput({ @@ -691,13 +692,15 @@ export class MainMenuState extends GameState { placeholder: "", defaultValue: randomInt(0, 100000).toString(), validator: val => Number.isInteger(Number(val)) && Number(val) >= 0 && Number(val) <= 100000, + inline: true, }); const allowColorsCheckbox = new FormElementCheckbox({ id: "allowColorsCheckbox", // @TODO: Add translation (T.dialogs.newSavegame.allowColorsCheckboxLabel) - label: "Allow non-primarycolors", + label: "Allow non-primarycolors: ", defaultValue: false, + inline: true, }); const advancedContainer = new FormElementDetails({