mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-04-12 18:32:33 +02:00
add help text to favorite's menu tooltip when the list is empty
This commit is contained in:
parent
ecb08952e5
commit
8fe78eacd8
@ -612,7 +612,10 @@ void GameView::NotifyMenuListChanged(GameModel * sender)
|
||||
{
|
||||
std::string tempString = "";
|
||||
tempString += menuList[i]->GetIcon();
|
||||
ui::Button * tempButton = new ui::Button(ui::Point(WINDOWW-16, currentY), ui::Point(15, 15), tempString, menuList[i]->GetDescription());
|
||||
std::string description = menuList[i]->GetDescription();
|
||||
if (i == SC_FAVORITES && Favorite::Ref().GetFavoritesList()->size() == 0)
|
||||
description += " (Use ctrl+shift+click to favorite an element)";
|
||||
ui::Button * tempButton = new ui::Button(ui::Point(WINDOWW-16, currentY), ui::Point(15, 15), tempString, description);
|
||||
tempButton->Appearance.Margin = ui::Border(0, 2, 3, 2);
|
||||
tempButton->SetTogglable(true);
|
||||
tempButton->SetActionCallback(new MenuAction(this, i));
|
||||
|
Loading…
x
Reference in New Issue
Block a user