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

Grabz · 832

Grabz

  • Community Guild
  • *****
    • Posts: 149
  • Where will you be when the creeper waves hit?
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.
« Last Edit: April 25, 2018, 01:03:21 pm by Grabz »



planetfall

  • Sr. Member
  • ****
    • Posts: 1046
  • In radians may we find vectory!
Reply #1 on: April 25, 2018, 11:07:15 am
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.

The nap takers are here to... welp.

"Build a ladder to the moon" is simple as a sentence, but actually doing it is not.


Grabz

  • Community Guild
  • *****
    • Posts: 149
  • Where will you be when the creeper waves hit?
Reply #2 on: April 25, 2018, 01:03:31 pm
Thank you, that's my bad. Attached it now.



Natamaki

  • Newbie
  • *
    • Posts: 2
Your information is very good that I want.