mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
* Fix bugs in core and add default args to Gui defs * Refactor production Gui * Refactor landfill blueprint button * Fix more bugs in core * Consistent naming of new guis * Refactor module inserter gui * Refactor surveillance gui * Add shorthand for data from arguments * Make element names consistent * Add types * Change how table rows work * Refactor player stats gui * Refactor quick actions gui * Refactor research milestones gui * Refactor player bonus gui * Refactor science production gui * Refactor autofill gui * Cleanup use of aligned flow * Rename "Gui.element" to "Gui.define" * Rename Gui types * Rename property_from_arg * Add guide for making guis * Add full reference document * Add condensed reference * Apply style guide to refactored guis * Bug fixes
17 lines
287 B
Lua
17 lines
287 B
Lua
--- @class Gui
|
|
local Gui = require("modules/exp_gui")
|
|
|
|
--- @class Gui.styles
|
|
local styles = {}
|
|
Gui.styles = styles
|
|
|
|
function styles.sprite(style)
|
|
style = style or {}
|
|
if not style.padding then
|
|
style.padding = -2
|
|
end
|
|
return style
|
|
end
|
|
|
|
return styles
|