mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 12:16:37 +09:00
Cleaner Code
This commit is contained in:
@@ -7,14 +7,24 @@ local Gui = require 'expcore.gui.core'
|
||||
|
||||
--[[-- A vertical or horizontal line.
|
||||
@element line
|
||||
|
||||
@tparam string direction the direction that children will be added
|
||||
|
||||
@usage-- Making a basic frame, contains a label with hello world
|
||||
local basic_line =
|
||||
Gui.clone_concept('line','basic_line')
|
||||
]]
|
||||
Gui.new_concept('line')
|
||||
|
||||
]]
|
||||
|
||||
Gui.new_concept()
|
||||
:save_as('line')
|
||||
|
||||
-- Properties
|
||||
:new_property('direction')
|
||||
|
||||
-- Draw
|
||||
:define_draw(function(properties,parent,element)
|
||||
-- Draw a line
|
||||
element = parent.add{
|
||||
name = properties.name,
|
||||
type = 'line',
|
||||
|
||||
Reference in New Issue
Block a user