mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
wip streamlined_get_set stuff
This commit is contained in:
parent
1c8d5462d7
commit
cadff464e3
@ -6,6 +6,7 @@ import sub, len from string
|
|||||||
|
|
||||||
path = sub ..., 1, len(...) - len "/extensions/streamlined_get_set"
|
path = sub ..., 1, len(...) - len "/extensions/streamlined_get_set"
|
||||||
element = require "#{path}/elements/element"
|
element = require "#{path}/elements/element"
|
||||||
|
text = require "#{path}/elements/text"
|
||||||
|
|
||||||
element.__base.position = (x, y) =>
|
element.__base.position = (x, y) =>
|
||||||
if x or y
|
if x or y
|
||||||
@ -54,3 +55,11 @@ element.__base.margin = (m) =>
|
|||||||
-- __call: (...) ->
|
-- __call: (...) ->
|
||||||
-- print ...
|
-- print ...
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
|
text.__base.text = (text) =>
|
||||||
|
if text
|
||||||
|
return @setText text
|
||||||
|
else
|
||||||
|
return @getText!
|
||||||
|
|
||||||
|
-- size probably needs redefine here, elemental size won't fall through...or will it?
|
||||||
|
Loading…
Reference in New Issue
Block a user