[0.17.68] GUI Padding is not set right

Post your bugs and problems so we can fix them.
Post Reply
User avatar
LuziferSenpai
Fast Inserter
Fast Inserter
Posts: 247
Joined: Tue Jul 08, 2014 10:06 am
Contact:

[0.17.68] GUI Padding is not set right

Post by LuziferSenpai » Sat Sep 07, 2019 1:00 am

Hey,

I currently play around much with styles and now I always have this one Problem:
factorio_RaSypeelaH.png
factorio_RaSypeelaH.png (967 Bytes) Viewed 234 times
The Padding on the left and bottom shouldnt be there!
The Ctrl + F6 Style rundown.
The Style in Code:

Code: Select all

s["richpresetbutton"] =
{
    type = "button_style",
    parent = "slot_button",
    width = 18,
    height = 18,
    scalable = false,
    align = "left",
    font = "RichSavedPreset",
    hovered_font_color = nil,
    clicked_font_color = nil,
    disabled_font_color = nil,
    default_font_color = nil,
    padding = 0,
}
The Button:

Code: Select all

 parent.add{ type = "button", name = "RichPresetButton01", caption = "B", style = "richpresetbutton" }
Custom Font:

Code: Select all

{
    type = "font",
    name = "RichSavedPreset",
    from = "Simple",
    size = 14
}
Font:
SimpleSquare.zip
(1.19 KiB) Downloaded 2 times
Greetz,

Luzifer
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Post Reply

Return to “Bug Reports”

Who is online

Users browsing this forum: Mion