Renamed Draw hook

This commit is contained in:
Daniël van Noord
2021-04-03 16:25:24 +02:00
parent 383be573c9
commit 5a14712841
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -16,7 +16,7 @@ import {
* This function handles all custom drawing for the Game.Draw() function. * This function handles all custom drawing for the Game.Draw() function.
* It is hooked on 'draw' by CM.RegisterHooks() * It is hooked on 'draw' by CM.RegisterHooks()
*/ */
export default function Draw() { export default function CMDrawHook() {
// Draw autosave timer in stats menu, this must be done here to make it count down correctly // Draw autosave timer in stats menu, this must be done here to make it count down correctly
if ( if (
Game.prefs.autosave && Game.prefs.autosave &&

View File

@@ -1,6 +1,6 @@
/* eslint-disable no-unused-vars */ /* eslint-disable no-unused-vars */
import { VersionMajor, VersionMinor } from '../Data/Moddata'; import { VersionMajor, VersionMinor } from '../Data/Moddata';
import Draw from '../Disp/Draw'; import CMDrawHook from '../Disp/DrawHook';
import CMClickHook from '../Main/ClickHook'; import CMClickHook from '../Main/ClickHook';
import InitializeCookieMonster from '../Main/Initialization'; import InitializeCookieMonster from '../Main/Initialization';
import CMLoopHook from '../Main/LoopHook'; import CMLoopHook from '../Main/LoopHook';
@@ -22,7 +22,7 @@ export default function init() {
} }
if (proceed) { if (proceed) {
InitializeCookieMonster(); InitializeCookieMonster();
Game.registerHook('draw', Draw); Game.registerHook('draw', CMDrawHook);
Game.registerHook('logic', CMLoopHook); Game.registerHook('logic', CMLoopHook);
Game.registerHook('click', CMClickHook); Game.registerHook('click', CMClickHook);
isInitializing = false; isInitializing = false;