Skip to content

Commit

Permalink
Fix stretchable properties now enforced as booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Oct 27, 2024
1 parent 4b22b47 commit 3bf16fe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions bobclasses/prototypes/style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion bobinserters/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions bobinserters/prototypes/styles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand Down

0 comments on commit 3bf16fe

Please sign in to comment.