From 3bf16fec067b96cb329ec42ee50aecbb303bc1dd Mon Sep 17 00:00:00 2001 From: KiwiHawk <59639+KiwiHawk@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:57:18 +1300 Subject: [PATCH] Fix stretchable properties now enforced as booleans --- bobclasses/prototypes/style.lua | 10 +++++----- bobinserters/control.lua | 2 +- bobinserters/prototypes/styles.lua | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bobclasses/prototypes/style.lua b/bobclasses/prototypes/style.lua index 85a231318..042ee251f 100644 --- a/bobclasses/prototypes/style.lua +++ b/bobclasses/prototypes/style.lua @@ -23,7 +23,7 @@ data.raw["gui-style"].default.bob_button_flow = { type = "horizontal_flow_style", parent = "horizontal_flow", vertical_align = "center", - horizontally_stretchable = "on", + horizontally_stretchable = true, } data.raw["gui-style"].default.bob_draggable_header = { @@ -32,8 +32,8 @@ data.raw["gui-style"].default.bob_draggable_header = { minimal_width = 0, padding = -8, height = 24, - horizontally_stretchable = "on", - vertically_stretchable = "on", + horizontally_stretchable = true, + vertically_stretchable = true, } data.raw["gui-style"].default.bob_draggable_footer = { @@ -42,8 +42,8 @@ data.raw["gui-style"].default.bob_draggable_footer = { minimal_width = 0, padding = -8, height = 32, - horizontally_stretchable = "on", - vertically_stretchable = "on", + horizontally_stretchable = true, + vertically_stretchable = true, } data.raw["gui-style"].default.green_button = { diff --git a/bobinserters/control.lua b/bobinserters/control.lua index ab2a1c2a7..f5db2846f 100644 --- a/bobinserters/control.lua +++ b/bobinserters/control.lua @@ -1482,7 +1482,7 @@ function bobmods.inserters.open_gui(entity, player) entity_flow.add({ type = "frame", name = "entity_frame", style = "inside_shallow_frame" }) entity_flow.entity_frame.style.width = frame_width entity_flow.entity_frame.style.height = 148 - entity_flow.entity_frame.style.horizontally_stretchable = "off" + entity_flow.entity_frame.style.horizontally_stretchable = false entity_flow.entity_frame.add({ type = "entity-preview", name = "entity_preview", style = "entity_button_base" }) entity_flow.entity_frame.entity_preview.style.width = frame_width entity_flow.entity_frame.entity_preview.style.height = 148 diff --git a/bobinserters/prototypes/styles.lua b/bobinserters/prototypes/styles.lua index 2b48fb3b4..29896aa01 100644 --- a/bobinserters/prototypes/styles.lua +++ b/bobinserters/prototypes/styles.lua @@ -100,7 +100,7 @@ data.raw["gui-style"].default.bob_button_flow = { type = "horizontal_flow_style", parent = "horizontal_flow", vertical_align = "center", - horizontally_stretchable = "on", + horizontally_stretchable = true, } data.raw["gui-style"].default.bob_draggable_header = { @@ -109,8 +109,8 @@ data.raw["gui-style"].default.bob_draggable_header = { minimal_width = 0, padding = -8, height = 24, - horizontally_stretchable = "on", - vertically_stretchable = "on", + horizontally_stretchable = true, + vertically_stretchable = true, } data.raw["gui-style"].default.bob_draggable_footer = { @@ -119,8 +119,8 @@ data.raw["gui-style"].default.bob_draggable_footer = { minimal_width = 0, padding = -8, height = 32, - horizontally_stretchable = "on", - vertically_stretchable = "on", + horizontally_stretchable = true, + vertically_stretchable = true, } data.raw["gui-style"].default.bob_inserter_checkbox = {