[Request] Widget that can display a texture when unit select
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
[Request] Widget that can display a texture when unit select
Hard to fit all that in a subject.
Basically, all I need is something that will allow a texture to be displayed over the map surface (centered on the unit of course) when the unit is selected.
The closest things I can thing of are sc2 protoss pylons (they show their range) and zerg creep tumors.
Ability for animated would be awesome but not necessary
Needs to be able to handle multiple units utilizing multiple textures (1 texture per unit).
Basically, all I need is something that will allow a texture to be displayed over the map surface (centered on the unit of course) when the unit is selected.
The closest things I can thing of are sc2 protoss pylons (they show their range) and zerg creep tumors.
Ability for animated would be awesome but not necessary
Needs to be able to handle multiple units utilizing multiple textures (1 texture per unit).
Re: [Request] Widget that can display a texture when unit select
When the player is deciding where to place the structure, or after the structure has been build, and is selected?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: [Request] Widget that can display a texture when unit select
Good point, and the answer would be "both"
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: [Request] Widget that can display a texture when unit select
Spectate a CA game, wait 5 minutes in and select an energy building, and see if that's what you want.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: [Request] Widget that can display a texture when unit select
I was told that I wasn't allowed to use that due to the fact that evo's models aren't community property yet (everything else is tho, barring artwork), while I disagree with someone telling me that I can't use a gpl'd item, I did say that I would respect his wishes. Regardless, unless I'm mistaken that thing is tied in fairly hardcore with CA and extricating it would probably be a bitch.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: [Request] Widget that can display a texture when unit select
Ohhh so that's how that whole convo started. I see. Never mind then, no need to detail your request thread.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: [Request] Widget that can display a texture when unit select
Long story really short, I came into the ca channel (after being directed there by one of the ca guys telling me of a new widget that ca had that I should implement), I asked about said widget and asked for a direction and promptly received an earful from the author about how it isn't fair for code to be shared when models and models textures aren't.
While imo it's comparing apples to oranges, I cut my losses and backed out of the convo pretty quickly and said I would respect his wishes, regardless of license legalism.
******************************************************
There is already a range ring so this isn't so important that I'll slit my wrists over it, but it is pretty important and I'd really appreciate the help if someone would be willing to do this for me.
While imo it's comparing apples to oranges, I cut my losses and backed out of the convo pretty quickly and said I would respect his wishes, regardless of license legalism.
******************************************************
There is already a range ring so this isn't so important that I'll slit my wrists over it, but it is pretty important and I'd really appreciate the help if someone would be willing to do this for me.
Re: [Request] Widget that can display a texture when unit select
maybe teamplatter widget? but thats just a color not a texture I think.
But then "protoss pylons" are only one color too.
But then "protoss pylons" are only one color too.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: [Request] Widget that can display a texture when unit select
Teamplatter... most definitely not.
Also, I beg to differ:
Also, I beg to differ:
Re: [Request] Widget that can display a texture when unit select
Drawing the team platter but loading and binding a texture beforehand should be enough shouldnt it?
Re: [Request] Widget that can display a texture when unit select
If you want it to conform to the ground height
variations, you might want to use DrawGroundQuad()
(or use $heightmap, or whatever gets you the same
results.) You can use GL's texture generation facilities
to avoid computing the texture coords yourself (or do
the same with a shader).
variations, you might want to use DrawGroundQuad()
(or use $heightmap, or whatever gets you the same
results.) You can use GL's texture generation facilities
to avoid computing the texture coords yourself (or do
the same with a shader).
Re: [Request] Widget that can display a texture when unit select
Just use the damn CA code, it's not finished anyway (does not show for queued structures)
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: [Request] Widget that can display a texture when unit select
Look, I'm not going to use it if I'm stepping on someone's toes. That was never my intention. I don't want to piss anyone off, and I got the feeling when I asked about the ca widget in #ca that that is exactly what I was doing, which is why I tried to semi gracefully back out of the conversation. I didn't realize that it was a sore point and I decided right then and there that gpl or no gpl, nothing is worth stomping on people's feet just to get a silly feature that doesn't really have much impact on gameplay (yes, it would make things more obvious, but still, I can work around it if I have to).
Re: [Request] Widget that can display a texture when unit select
Code: Select all
gl.Texture(...)
gl.DrawGroundQuad(left, top, right, bottom, false, true)
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: [Request] Widget that can display a texture when unit select
Winsauce widget is winsauce!!!
Thank you! :D:D:D
Thank you! :D:D:D
Re: [Request] Widget that can display a texture when unit select
And with animation:
- Spinning: Widget: http://pastebin.org/321836
(same unitdef: http://pastebin.org/319280 ) - Multi-Frames: Widget: http://pastebin.org/321838
(unitdef: http://pastebin.org/321834 )
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: [Request] Widget that can display a texture when unit select
/me humps z's leg
Thank you!!!
Thank you!!!
Re: [Request] Widget that can display a texture when unit select
Pics or it didn't happen?