Complete overhaul of code structure and relevant files (#639)
This commit is contained in:
17
src/Disp/HelperFunctions/RefreshScale.js
Normal file
17
src/Disp/HelperFunctions/RefreshScale.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import UpdateBuildings from '../BuildingsUpgrades/Buildings';
|
||||
import UpdateUpgrades from '../BuildingsUpgrades/Upgrades';
|
||||
import { UpdateBotBar } from '../InfoBars/BottomBar';
|
||||
|
||||
/**
|
||||
* This function refreshes all numbers after a change in scale-setting
|
||||
* It is therefore called by a changes in CM.Options.Scale, CM.Options.ScaleDecimals, CM.Options.ScaleSeparator and CM.Options.ScaleCutoff
|
||||
*/
|
||||
export default function RefreshScale() {
|
||||
BeautifyAll();
|
||||
Game.RefreshStore();
|
||||
Game.RebuildUpgrades();
|
||||
|
||||
UpdateBotBar();
|
||||
UpdateBuildings();
|
||||
UpdateUpgrades();
|
||||
}
|
||||
Reference in New Issue
Block a user