DaVikingCode / Citrus-Engine

Modern AS3 Game Engine
http://citrusengine.com/
Other
549 stars 231 forks source link

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

Open Snky opened 8 years ago

Snky commented 8 years ago

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.