Skip to content

Commit

Permalink
Fixing button dimensions
Browse files Browse the repository at this point in the history
Factorio adds 1 pixel ofpadding, so buttons must be 38x38.
  • Loading branch information
DaveMcW committed Apr 5, 2016
1 parent 7e5c1be commit efc7d61
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions prototypes/style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ data.raw["gui-style"].default["blueprintstring_button_main"] =
{
type = "button_style",
parent = "button_style",
width = 36,
height = 36,
width = 38,
height = 38,
default_graphical_set =
{
type = "monolith",
Expand Down Expand Up @@ -102,8 +102,8 @@ data.raw["gui-style"].default["blueprintstring_button_load"] =
{
type = "button_style",
parent = "button_style",
width = 36,
height = 36,
width = 38,
height = 38,
default_graphical_set =
{
type = "monolith",
Expand Down Expand Up @@ -153,8 +153,8 @@ data.raw["gui-style"].default["blueprintstring_button_saveas"] =
{
type = "button_style",
parent = "button_style",
width = 36,
height = 36,
width = 38,
height = 38,
default_graphical_set =
{
type = "monolith",
Expand Down Expand Up @@ -204,8 +204,8 @@ data.raw["gui-style"].default["blueprintstring_button_saveall"] =
{
type = "button_style",
parent = "button_style",
width = 36,
height = 36,
width = 38,
height = 38,
default_graphical_set =
{
type = "monolith",
Expand Down

1 comment on commit efc7d61

@Roktaal
Copy link
Contributor

@Roktaal Roktaal commented on efc7d61 Apr 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that 1px isn't the 1px border that is part of the icon? I draw 1px border as part of the button icon.
The buttons are getting bigger and bigger. I'll keep 32x32 for myself

Please sign in to comment.