Citrus-Engine icon indicating copy to clipboard operation
Citrus-Engine copied to clipboard

Missing features of BasicUILayout ( getting/setting 'a single' element position )

Open Snky opened this issue 9 years ago • 0 comments

http://forum.starling-framework.org/topic/change-basicuilayout

my patch: https://www.dropbox.com/s/ii7rk966yrzdduk/BasicUILayout.as?dl=0

-added line 41 ( element.name = content.name ) -added function getFirstElementByName -added function setElementPositionByName

Is this right or wrong? Apologies in advance if it's not. I hope I'm right though, modifying Citrus Engine is not a part of my scope when helping others usually, but I did not see any function that could return an element from the _elements vector.

Please comment on the thread if there's another way to do this without modifying Citrus Engine, or if there's a better patch.

Snky avatar Nov 05 '15 14:11 Snky