Dynamically Repositioned UI, now in ToyMaker
I thought making simple resizable UI layouts for ToyMaker would be easy, after implementing 3D graphics and physics. Apparently not.
Here's what I've been working on the past week or two. The idea is pretty simple: There's a UI container whose size matches the size of the viewport (the window). UI elements are positioned relative to specific reference coordinates on the container.
Elements anchored to the top-left of the container, stay at the top left, likewise with elements at the center and other parts of the container.
My implementation isn't particularly sophisticated, and it kinda just gets the job done. Thankfully, that's all I need for the next round of polish I'm planning for Game of Ur.
Discussion