[CW3] CRPL Cores using screen mode are clipped when resizing

Started by Grabz, April 25, 2018, 10:15:49 AM

Previous topic - Next topic

Grabz

CRPL Cores using screen mode are clipped when resizing, based on their screen position as their cell position.

Example map attached. Zooming out furthest (so the new UI elements in bottom right are visibly out-of-map on the Y axis) then resizing and reducing height clips and will destroy the UI elements, because they're out of the map.

Now, do the same thing but make the game window really tiny, so that the CRPL UI elements are no longer out-of-bounds if you assume their screen position as their cell position. Voila, they no longer get clipped so they stay.

I think screen mode units should never get clipped, since they are supposed to be UI elements.

Side note: There's another bug with thumbnails, where it looks like thumbnails will happily render screen mode CRPL cores, and they either appear in unexpected places, or in the place they were left in before they were changed to screen mode.

planetfall

Yeah, this is a thing. It does annoyingly constrain the size you can resize your template map to. I haven't found a good way around it. Items clipped in this way do execute their :destroyed functions, and if this spawns new units, those aren't clipped. But having UI elements respawn themselves when destroyed does introduce the nastiness of having to modify the scripting you accidentally create too many UI cores.

The cores showing up in thumbnails is easily solved by adding a "hide custom UI" key which imo you should do anyway if there is any chance that the UI will obstruct anything.

Example map is not attached.
Pretty sure I'm supposed to be banned, someone might want to get on that.

Quote from: GoodMorning on December 01, 2016, 05:58:30 PM"Build a ladder to the moon" is simple as a sentence, but actually doing it is not.

Grabz