ID:2959759
 
Resolved
A new screen_loc keyword, MIDDLE, acts like CENTER but in relation to the LEFT/RIGHT/TOP/BOTTOM keywords. That is, it acts like LEFT+50%, BOTTOM+50%, or both.
Applies to:DM Language
Status: Resolved (516.1653)

This issue has been resolved.
I can think of no scenario where I want something displayed at the center of my screen, and want the bottom left pixel of that something to be what ends up at the center of my screen.
What's more, we don't have readily available access to the visual bounds of our assets, so we have to manually calculate and account for their sizes in softcode.

I'd like to propose that we add in a *CENTER keyword to screenlocs, that does this annoying work for us, where it will actually center the object in the screen loc visually, as would be expected. This way it doesn't break the games currently using it, and I don't have to spend 3 hours going back and changing softcode vars to align with new assets when I update from a prototyped GUI to the final version.

Thanks for coming to my ted talk.
- A tired game dev
+1
Lummox just dropped new canon.

screen_loc = "LEFT+50%,BOTTOM+50%"


This centers an atom on your screen. It doesn't do any kind of viewport expansion either.
Lummox JR resolved issue with message:
A new screen_loc keyword, MIDDLE, acts like CENTER but in relation to the LEFT/RIGHT/TOP/BOTTOM keywords. That is, it acts like LEFT+50%, BOTTOM+50%, or both.

Login to reply.