mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-17 00:40:42 +09:00
Button docs
This commit is contained in:
1 parent
32f41ff722
commit
cb59cc0537
99 files changed
+982
-138
No files matched your search
@@ -0,0 +1,24 @@
|
||||
--[[-- 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)
|
||||
Reference in new issue
Block a user