diff --git a/evoGUI.lua b/evoGUI.lua index 99192da..09d254d 100644 --- a/evoGUI.lua +++ b/evoGUI.lua @@ -202,7 +202,7 @@ function evogui.create_sensor_display(player) local root = player.gui.top.add{type="frame", name="evogui_root", direction="horizontal", - style="outer_frame"} + style="EvoGUI_outer_frame_no_border"} local action_buttons = root.add{type="flow", name="action_buttons", diff --git a/prototypes/styles.lua b/prototypes/styles.lua index c6445bc..ad227c5 100644 --- a/prototypes/styles.lua +++ b/prototypes/styles.lua @@ -2,24 +2,20 @@ local default_gui = data.raw["gui-style"].default local function button_graphics(xpos, ypos) return { - type = "monolith", - - top_monolith_border = 0, - right_monolith_border = 0, - bottom_monolith_border = 0, - left_monolith_border = 0, - - monolith_image = { - filename = "__{{MOD_NAME}}__/graphics/gui.png", - priority = "extra-high-no-scale", - width = 16, - height = 16, - x = xpos, - y = ypos, - }, + filename = "__{{MOD_NAME}}__/graphics/gui.png", + priority = "extra-high-no-scale", + width = 16, + height = 16, + x = xpos, + y = ypos } end +default_gui.EvoGUI_outer_frame_no_border = { + type = "frame_style", + parent = "outer_frame", + graphical_set = {} +} default_gui.EvoGUI_button_with_icon = { type = "button_style",