remance / Masendor

Open source educational and historical battle action game, All helps accepted
MIT License
142 stars 31 forks source link

added a test list on main menu. implemented pivot-origin based positions #56

Closed coppermouse closed 1 year ago

coppermouse commented 1 year ago

remove test list before merge to main

newly added code contain a test list for us developers (dev-branch) to review how the ListUI works. This should of course be removed before merge to main. It is hard to miss the test list so we will hopefully notice this before release.

pivot origin

now the relative position system takes another tuple into account, the pivot.

Pivot: Where on the parent the UI-element should be connected to (-1,-1) top left corner (0,0) center

Origin: Where on the UI-element is its anchor point. (-1,1) top left corner (0,0) center