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.