herbix / hoi4modutilities

A VSCode extension that contains utilities for Heart of Iron IV mods developers
MIT License
74 stars 9 forks source link

bug(gui preview): A Collection of some bugs I found in the new GUI viewer #89

Open Thanasis09 opened 2 months ago

Thanasis09 commented 2 months ago

Hello. I recently found out about the GUI editor, and I did some playing with it, and I found 2 prominent bugs.

1) Frame attribute in an iconType does nothing. If I add a frame attribute, let's say frame = 2, then the viewer should attempt to find the second frame of the sprite to display 2) Negative positioned elements do nothing. When someone mods a GUI, they may a lot of times have negative positions in their elements. This is because a window is "relative" to another, so a negative position, lets say -80 for example, may be 80 pixels above the paren't windows position. An easy way to solve this, would be having an option that will display parent containers aswell, so they positions are relatively bound.