Complete overhaul of code structure and relevant files (#639)
This commit is contained in:
12
src/Config/Toggles/ToggleDetailedTime.js
Normal file
12
src/Config/Toggles/ToggleDetailedTime.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { CMSayTime } from '../../Disp/VariablesAndData';
|
||||
import { BackupFunctions } from '../../Main/VariablesAndData';
|
||||
import { CMOptions } from '../VariablesAndData';
|
||||
|
||||
/**
|
||||
* This function changes some of the time-displays in the game to be more detailed
|
||||
* It is called by a change in CM.Options.DetailedTime
|
||||
*/
|
||||
export default function ToggleDetailedTime() {
|
||||
if (CMOptions.DetailedTime === 1) Game.sayTime = CMSayTime;
|
||||
else Game.sayTime = BackupFunctions.sayTime;
|
||||
}
|
||||
Reference in New Issue
Block a user