Files
factorio-scenario-ExpCluster/expcore/gui/concepts/frame.lua
Cooldude2606 cb59cc0537 Button docs
2019-08-27 21:08:48 +01:00

24 lines
538 B
Lua

--[[-- Core Module - Gui
@module Gui
@alias Gui
]]
local Gui = require 'expcore.gui.core'
--[[-- The basic frame element
@element frame
@tparam ?string|Concepts.LocalisedString title the title that will show in the frame
]]
Gui.new_concept('frame')
:new_property('title',function(properties,value)
properties.title = value
end)
:define_draw(function(properties,parent,element)
element = parent.add{
name = properties.name,
type = 'frame',
caption = properties.title
}
return element
end)