mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
fix tpt.selectedl sometimes being incorrect
This commit is contained in:
@@ -947,14 +947,15 @@ void GameController::SetActiveMenu(int menuID)
|
|||||||
{
|
{
|
||||||
gameModel->SetActiveMenu(menuID);
|
gameModel->SetActiveMenu(menuID);
|
||||||
vector<Menu*> menuList = gameModel->GetMenuList();
|
vector<Menu*> menuList = gameModel->GetMenuList();
|
||||||
bool set = false;
|
|
||||||
if(menuID == SC_DECO)
|
if(menuID == SC_DECO)
|
||||||
{
|
|
||||||
gameModel->SetColourSelectorVisibility(true);
|
gameModel->SetColourSelectorVisibility(true);
|
||||||
set = true;
|
else
|
||||||
}
|
{
|
||||||
if(!set)
|
|
||||||
gameModel->SetColourSelectorVisibility(false);
|
gameModel->SetColourSelectorVisibility(false);
|
||||||
|
ActiveToolChanged(0, gameModel->GetActiveTool(0));
|
||||||
|
ActiveToolChanged(1, gameModel->GetActiveTool(1));
|
||||||
|
ActiveToolChanged(2, gameModel->GetActiveTool(2));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<Menu*> GameController::GetMenuList()
|
std::vector<Menu*> GameController::GetMenuList()
|
||||||
|
Reference in New Issue
Block a user