Context-sensitive tooltip

Context-sensitive tooltip

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Context-sensitive tooltip

Post by MelTraX »

Hey guys,

I'd like to gather some information here because I'll add a tooltip to IceUI that shows more relevant information instead of always the same. Examples would be the amount of metal to be reclaimed when giving an area reclaim order (like another widget already does). Or the ETA of a construction site if you hover over one (also done by other widgets already).

The widgets that exist today add extra windows/overlays/whatever and I'd like to add it to the tooltip itself because I think that's where the info belongs.

Now I'd like to ask for any ideas about what information to show when performing what action. Of course we're limited to the capabilities of LuaUI here but it has pretty much all information you can have without cheating.
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: Context-sensitive tooltip

Post by Tribulexrenamed »

Well if you are doing this, can you start out with my modified tooltip lua? I have the units selected and the player owner in it.

the ENEMY UNIT tooltip is one of the most useless. Maybe add player name at least.

Maybe for move and attack orders, give an estimated eta to arrival?

Buildtime and progress and such is a really good idea, and the lua is already there in the form of many other widgets.

More unit stats for the build menu would be nice, like energy make etc. and other stuffs.
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: Context-sensitive tooltip

Post by MelTraX »

That's exactly the feedback I'd like to have. Thanks. But I'm sure there are more ideas.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Context-sensitive tooltip

Post by CarRepairer »

Tribulex wrote:Well if you are doing this, can you start out with my modified tooltip lua? I have the units selected and the player owner in it.

the ENEMY UNIT tooltip is one of the most useless. Maybe add player name at least.

Maybe for move and attack orders, give an estimated eta to arrival?

Buildtime and progress and such is a really good idea, and the lua is already there in the form of many other widgets.

More unit stats for the build menu would be nice, like energy make etc. and other stuffs.
This is exactly what kiki was making. Are you stealing from kiki?
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: Context-sensitive tooltip

Post by Tribulexrenamed »

I was wondering what that was....

Sweetness i might finish this and take a copywrong :))))

Edit: No but those are my ideas. Just there is some funny broken lua I have gotten from her <3

Including a penis emote widget. What the hell is that O_O
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: Context-sensitive tooltip

Post by Tribulexrenamed »

Today i discovered that shield strength is a good thing to put in a tooltip...
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Context-sensitive tooltip

Post by SinbadEV »

Larger buildpic image or 3D model of unit when choosing to build.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Context-sensitive tooltip

Post by lurker »

Doesn't IceUI hide unit descriptions atm? That would be nice to have back. :P
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Context-sensitive tooltip

Post by CarRepairer »

lurker wrote:Doesn't IceUI hide unit descriptions atm? That would be nice to have back. :P
That was fixed like a year ago.
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: Context-sensitive tooltip

Post by Tribulexrenamed »

Sinbad I was thinking the exact same thing.

Have you played that game... uerm.. oh yeah Warzone 2100? That style of 3d buildpic is cool. If i can be assed i want to try to lua it.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Context-sensitive tooltip

Post by lurker »

I installed IceUI on 77 a week ago. I only have a description when hovering over a buildpic; none at all when a unit is selected.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Context-sensitive tooltip

Post by CarRepairer »

lurker wrote:I installed IceUI on 77 a week ago. I only have a description when hovering over a buildpic; none at all when a unit is selected.
Yeah that's the old one from 1983. Go to the end of the thread and get the latest one.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Context-sensitive tooltip

Post by lurker »

CarRepairer wrote:very_bad_soldier is a fellatrix
I'll get the latest then.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Context-sensitive tooltip

Post by lurker »

Well I got around to actually checking things. Seems that I have version 81. Everywhere I go suggests that version 81 is the latest. Care to explain this, car?
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Context-sensitive tooltip

Post by CarRepairer »

lurker wrote:Well I got around to actually checking things. Seems that I have version 81. Everywhere I go suggests that version 81 is the latest. Care to explain this, car?
Perhaps you have lost your mind. As you can plainly see here I made this very same request on February of 2008, and Meltrax had long since fixed it.

viewtopic.php?p=256047#p256047

But seriously, I don't know. Maybe there's a setting you need to turn on/off in the tweak mode, or perhaps you are trying it on a mod that doesn't work with it.

Edit: Perhaps you need to get the IceUI with Satirik's changes? Satirik's playerlist is one of the best features of IceUI so I'd recommend it.
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: Context-sensitive tooltip

Post by Tribulexrenamed »

satirik ftw.

Except for major typos in the code i have to fix before everything works.
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Context-sensitive tooltip

Post by manolo_ »

hi,

fix the bug i told u and add this: viewtopic.php?f=23&t=15624&p=294845&hilit=nuke#p294845 :)

btw why adding stuff that is already done by a lua?
User avatar
MergeNine
Posts: 40
Joined: 15 Nov 2008, 00:55

Re: Context-sensitive tooltip

Post by MergeNine »

For modders, and this will need a debug switch, the actual unit name (e.g armpw) would be useful.
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: Context-sensitive tooltip

Post by Pressure Line »

dont mod TA with its bizzare internal unit names ;)

I use unit names like dc_cyclops, fs_wasp, fwl_flea etc so i dont have to remember stuff like zipper = armfast and jeffy = armfav
User avatar
MergeNine
Posts: 40
Joined: 15 Nov 2008, 00:55

Re: Context-sensitive tooltip

Post by MergeNine »

Yeah but it would still be useful as a quick memory jog, obviously you want to choose better names where possible.
Post Reply

Return to “General Discussion”