Buttons to hide upgrade and building sections #47

This commit is contained in:
Daniël van Noord
2021-03-17 23:52:23 +01:00
parent 4d716e77e4
commit 00edec127c
8 changed files with 69 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
import { CMOptions } from '../VariablesAndData';
/**
* This function updates the display setting of the two objects created by CM.Disp.CreateWrinklerButtons()
* It is called by changes in CM.Options.WrinklerButtons
*/
export default function ToggleSectionHideButtons() {
if (CMOptions.HideSectionsButtons) {
l('CMSectionHidButtons').style.display = '';
} else {
l('CMSectionHidButtons').style.display = 'none';
}
}