Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Added a new style in order to remove border around frame.
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewill0725 committed Mar 1, 2019
1 parent 0d70350 commit 305c5b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion evoGUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
26 changes: 11 additions & 15 deletions prototypes/styles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 305c5b1

Please sign in to comment.