Refined a bit more.

This commit is contained in:
PeekabooSteam 2023-09-14 21:10:52 +01:00
parent 01b30ccf12
commit ad06117b78
2 changed files with 7 additions and 11 deletions

View File

@ -812,17 +812,6 @@ export class Map extends L.Map {
this.#olympusApp = olympusApp;
// Bit crappy until we move to a more structured set of code
let controlTipsBoolean = this.getOlympusApp().getFeatureSwitches().getSwitch( "controlTips" )?.isEnabled();
controlTipsBoolean = ( typeof controlTipsBoolean === "boolean" ) ? controlTipsBoolean : true;
this.#visibilityOptions[SHOW_CONTROL_TIPS] = controlTipsBoolean;
document.dispatchEvent(new CustomEvent("mapVisibilityOptionsChanged"));
}
}

View File

@ -186,6 +186,13 @@ export class ControlTips {
"showIfHoveringOverAirbase": false,
"showIfUnitSelected": true,
"unitsMustBeControlled": true
},
{
"key": `Mouse2`,
"action": `Airbase menu`,
"showIfHoveringOverAirbase": true,
"showIfUnitSelected": true,
"unitsMustBeControlled": true
}
]
},