mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 19:45:22 +09:00
22 lines
478 B
Lua
22 lines
478 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')
|
|
:define_draw(function(properties,parent,element)
|
|
element = parent.add{
|
|
name = properties.name,
|
|
type = 'frame',
|
|
caption = properties.title
|
|
}
|
|
|
|
return element
|
|
end) |