From d622706cfd47fae2c775629407974335e9f05ded Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Apr 2023 22:41:37 +0200 Subject: [PATCH] RELEASE 1.1.3 - Set a maximal height of the console frame to prevent controls getting lost. --- changelog.txt | 7 +++++++ control.lua | 1 + data.lua | 5 ++--- info.json | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 8c7b031..ee9943b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 1.1.3 +Date: 2023-04-10 + + Changed: + - Set a maximal height of the console frame to prevent controls getting lost. + --------------------------------------------------------------------------------------------------- Version: 1.1.2 Date: 2023-04-10 diff --git a/control.lua b/control.lua index 0c9398e..702ad14 100644 --- a/control.lua +++ b/control.lua @@ -44,6 +44,7 @@ function toggleGui (player) style='some_luaconsole_input_textbox' } input.word_wrap = true + input.style.maximal_height = (player.display_resolution.height/player.display_scale*0.6) input.text = global.cmd or "" horizontal_flow = frame.add{type='flow', direction='horizontal'} diff --git a/data.lua b/data.lua index abcbe1e..987bff7 100644 --- a/data.lua +++ b/data.lua @@ -2,11 +2,10 @@ data.raw["gui-style"].default["some_luaconsole_input_textbox"] = { type = "textbox_style", name = "some_console_input_textbox", parent = "textbox", - minimal_width = 500, - minimal_height = 60, + minimal_width = 650, + minimal_height = 200, } - data:extend({ { type = "custom-input", diff --git a/info.json b/info.json index 430ed39..986afb7 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "some-luaconsole", - "version": "1.1.2", + "version": "1.1.3", "title": "Someone's LUA-Console", "author": "someone1337", "homepage": "https://git.somenet.org/factorio/some-luaconsole.git", -- 2.43.0