remove commented out code, heart icon shows even when element is selected
This commit is contained in:
parent
8efe8853de
commit
adb200d3f7
@ -370,27 +370,6 @@ void GameModel::BuildMenus()
|
|||||||
void GameModel::BuildFavoritesMenu()
|
void GameModel::BuildFavoritesMenu()
|
||||||
{
|
{
|
||||||
menuList[SC_FAVORITES]->ClearTools();
|
menuList[SC_FAVORITES]->ClearTools();
|
||||||
|
|
||||||
/*for (size_t i = 0; i < menuList.size(); i++)
|
|
||||||
{
|
|
||||||
if (i == SC_FAVORITES)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
for (size_t j = 0; j < menuList[i]->GetToolList().size(); j++)
|
|
||||||
{
|
|
||||||
if (Favorite::Ref().IsFavorite(menuList[i]->GetToolList()[j]->GetIdentifier()))
|
|
||||||
{
|
|
||||||
menuList[SC_FAVORITES]->AddTool(menuList[i]->GetToolList()[j]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (size_t i = 0; i < extraElementTools.size(); i++)
|
|
||||||
{
|
|
||||||
if (Favorite::Ref().IsFavorite(extraElementTools[i]->GetIdentifier()))
|
|
||||||
{
|
|
||||||
menuList[SC_FAVORITES]->AddTool(extraElementTools[i]);
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
std::vector<std::string> favList = Favorite::Ref().GetFavoritesList();
|
std::vector<std::string> favList = Favorite::Ref().GetFavoritesList();
|
||||||
for (size_t i = 0; i < favList.size(); i++)
|
for (size_t i = 0; i < favList.size(); i++)
|
||||||
|
@ -64,7 +64,7 @@ void ToolButton::Draw(const ui::Point& screenPos)
|
|||||||
{
|
{
|
||||||
g->drawrect(screenPos.X, screenPos.Y, Size.X, Size.Y, Appearance.BorderInactive.Red, Appearance.BorderInactive.Green, Appearance.BorderInactive.Blue, Appearance.BorderInactive.Alpha);
|
g->drawrect(screenPos.X, screenPos.Y, Size.X, Size.Y, Appearance.BorderInactive.Red, Appearance.BorderInactive.Green, Appearance.BorderInactive.Blue, Appearance.BorderInactive.Alpha);
|
||||||
}
|
}
|
||||||
if (Favorite::Ref().IsFavorite(toolIdentifier) && currentSelection == -1)
|
if (Favorite::Ref().IsFavorite(toolIdentifier))
|
||||||
{
|
{
|
||||||
g->drawtext(screenPos.X, screenPos.Y, "\xE8", Appearance.BorderFavorite.Red, Appearance.BorderFavorite.Green, Appearance.BorderFavorite.Blue, Appearance.BorderFavorite.Alpha);
|
g->drawtext(screenPos.X, screenPos.Y, "\xE8", Appearance.BorderFavorite.Red, Appearance.BorderFavorite.Green, Appearance.BorderFavorite.Blue, Appearance.BorderFavorite.Alpha);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user