[0.17.68] GUI Padding is not set right
Posted: Sat Sep 07, 2019 1:00 am
Hey,
I currently play around much with styles and now I always have this one Problem: The Padding on the left and bottom shouldnt be there!
The Button:
Custom Font:
Font:
Greetz,
Luzifer
I currently play around much with styles and now I always have this one Problem: 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,
}
Code: Select all
parent.add{ type = "button", name = "RichPresetButton01", caption = "B", style = "richpresetbutton" }
Code: Select all
{
type = "font",
name = "RichSavedPreset",
from = "Simple",
size = 14
}
Luzifer