is it possible for Lua to get unit icons, to display them instead of only points?
nice work btw!

Moderator: Moderators
oh that is cool, I still would like aa bind to turn it off and on thoaegis wrote:you can, one of the buttons starts tracking whichever unit is currently selectedKaiserJ wrote:i can't help but think the ability to bind the PIP window to a unit (scout for instance) might be useful
Currently no, not easily anyway, in the next update I'll have hotkey support for minimizing/maximizing it which I forgot to put in the last version.UAF wrote:Wicked! I'll try it when I get home.
Is there a way to turn it on/off with a hotkey?
Perhaps have a feature to automatically open a pip window showing a unit in a group when pressing the group number with another key?
(For example, Alt+1 will open a window around one of the units of group #1)
Selection box: Yes, I guess panning would move to middle mouseForboding Angel wrote:Unfortunately, without it supporting box selection or custom formations it's usefulness to me is rather limited. Is there any way to add support for those two features?
Fault of a typohoijui wrote:when it is minimized, and i want to scroll with the mouse-wheel in the area of the screen where it would be if non-minimized, nothing happens. or more simple: it keeps handling the mouse-wheel events even if minimized.
Unlikely to happen, firstly because I don't think it is even possible to get the projectile types/positions/models, and secondly because this is not the focus of the widget.knorke wrote:it needs to show weapons and explosions to be of any real use other than techdemo?
I've looked into doing proper icons, but it currently isn't possible as while widgets can get the icon name, they can't get the actual texture bound to that name, or any of the other information. You do some engine dev work don't you? Spring.GetIconParameters(iconName) would be fantastic.hoijui wrote:what is missing for me, is use of icons, and maybe disabling drawing of features or something. is already useful as it is though.
hoijui wrote:if it can easily be disabled in the widget (code), then that is enough for me.
yeah i do engine deving, but i know little about gfx and lua and all that. what would that function have to return?
Code: Select all
1) pipFeatures = spGetFeaturesInRectangle(wl - 50, wt - 50, wr + 50, wb + 50)
2) pipFeatures = {}