[Change] Might be an idea to gray out sell button when no outfits are available.
This commit is contained in:
parent
b791a6e7dc
commit
fbcbea050d
@ -309,6 +309,13 @@ static void outfits_update(char* str) {
|
||||
|
||||
window_modifyImage(secondary_wid, "imgOutfit", outfit->gfx_store);
|
||||
|
||||
// Gray out sell button.
|
||||
if(player_outfitOwned(outfitname) == 0)
|
||||
window_disableButton(secondary_wid, "btnSellOutfit");
|
||||
else
|
||||
window_enableButton(secondary_wid, "btnSellOutfit");
|
||||
|
||||
// New text.
|
||||
window_modifyText(secondary_wid, "txtDescription", outfit->description);
|
||||
credits2str(buf2, outfit->price, 2);
|
||||
credits2str(buf3, player->credits, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user