Howto enlarge tabs
Posted: Tue Dec 01, 2020 1:10 am
In my mod I have to present a selection for item-prototypes - grouped by item-group.
The code looks like this:
As you can see, the group icon is dragged to the tab button via rich-text.
But the result looks somewhat disappointing. How do I get the icons enlarged?
I already tried to define a style. But I only get the tab buttons bigger. The font - and thus the icons - remain small.
The code looks like this:
Code: Select all
local groupHeader = group[next(group)][1].group -- will contain a LuaGroup object
-- groupPanel is LuaGuiElement of type "tabbed-pane"
local tab = groupPanel.add {
type = "tab",
caption = "[item-group=" .. groupHeader.name.."]",
style = "slightly_smaller_tab",
tooltip = groupHeader.localised_name,
}
As you can see, the group icon is dragged to the tab button via rich-text.
But the result looks somewhat disappointing. How do I get the icons enlarged?
I already tried to define a style. But I only get the tab buttons bigger. The font - and thus the icons - remain small.