Issue726

Title inventory: item tooltip: item name in grey as soon as large axe has socket
Priority bug Status open
Assigned To Keywords
Linked issues Watchers

Submitted on 2014-02-18 23h14 by matthiaskrgr, last changed by Christoph.

Files
File name Uploaded Type Edit Remove
bug.jpg matthiaskrgr, 2014-02-18.23:14:15 image/jpeg
Messages
Author: matthiaskrgr Date: 2014-02-18   23h14
how to reproduce:
go to level 24
drop yourself a large axe and some circuits, pick up
talk to Dude, us e "upgrade" node to add socket to weapon
exit dialog, open inventory
hover axe=> "Large Axe" now printed in grey instead of blue.

3d0c6b53212ef8a3e3c660bae0b03fa836e11f12

Attached bug.jpg.
Author: greg Date: 2014-07-08   14h47
It seems to be the desired effect. The code switch the font to "blue" when the
item has at least 1 socket. Else it default to the "neon" font.
Probably due to changes, but the variable names don't match anymore the actual
color (blue is gray and neon is blue).

From src/items.c:373
// If the item has upgrade sockets, use a different color for the name.
if (ShowItem->upgrade_sockets.size) {
	autostr_append(str, "%s", font_switchto_blue);
} else {
	autostr_append(str, "%s", font_switchto_neon);
}
Author: matthiaskrgr Date: 2014-07-09   21h20
Hmm. Well I still don't think it makes a lot of sense to have it colored specially.
Author: Christoph Date: 2014-11-03   21h04
You can see more easily that it is upgradeable without spending circuits for
sockets (or might have the wrong socket type installed for your needs) or
already be enhanced. Grey, however, isn't a clever choice for this. I associate
enhancements with blue like the items appear in the inventory.
History
Date User Action Args
2014-11-03 21:04:29Christophsetmessages: + msg2937
2014-07-09 21:20:33matthiaskrgrsetmessages: + msg2849
2014-07-08 14:47:59gregsetmessages: + msg2845
2014-02-18 23:14:15matthiaskrgrcreate