enable Ctrl behaviour (eg sae to HDD) without highlighting
This commit is contained in:
parent
56d04fcde8
commit
bf001dfd77
@ -865,6 +865,7 @@ void GameView::NotifyUserChanged(GameModel * sender)
|
||||
loginButton->SetText("[sign in]");
|
||||
((SplitButton*)loginButton)->SetShowSplit(false);
|
||||
((SplitButton*)loginButton)->SetRightToolTip("Sign in to simulation server");
|
||||
enableCtrlBehaviour();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1919,19 +1920,31 @@ void GameView::disableAltBehaviour()
|
||||
}
|
||||
}
|
||||
|
||||
void GameView::enableCtrlBehaviour()
|
||||
void GameView::enableCtrlBehaviour() {
|
||||
// "Usual" Ctrl-holding behavior uses highlights
|
||||
enableCtrlBehaviour(true);
|
||||
}
|
||||
|
||||
void GameView::enableCtrlBehaviour(bool isHighlighted)
|
||||
{
|
||||
if(!ctrlBehaviour)
|
||||
{
|
||||
ctrlBehaviour = true;
|
||||
|
||||
//Show HDD save & load buttons
|
||||
if (isHighlighted) {
|
||||
saveSimulationButton->Appearance.BackgroundInactive = saveSimulationButton->Appearance.BackgroundHover = ui::Colour(255, 255, 255);
|
||||
saveSimulationButton->Appearance.TextInactive = saveSimulationButton->Appearance.TextHover = ui::Colour(0, 0, 0);
|
||||
}
|
||||
|
||||
saveSimulationButton->Enabled = true;
|
||||
SetSaveButtonTooltips();
|
||||
|
||||
if (isHighlighted) {
|
||||
searchButton->Appearance.BackgroundInactive = searchButton->Appearance.BackgroundHover = ui::Colour(255, 255, 255);
|
||||
searchButton->Appearance.TextInactive = searchButton->Appearance.TextHover = ui::Colour(0, 0, 0);
|
||||
}
|
||||
|
||||
searchButton->SetToolTip("Open a simulation from your hard drive");
|
||||
if (currentSaveType == 2)
|
||||
((SplitButton*)saveSimulationButton)->SetShowSplit(true);
|
||||
|
Reference in New Issue
Block a user