Complete overhaul of code structure and relevant files (#639)
This commit is contained in:
9
src/Disp/MenuSections/Refreshmenu.js
Normal file
9
src/Disp/MenuSections/Refreshmenu.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { CMOptions } from '../../Config/VariablesAndData';
|
||||
|
||||
/**
|
||||
* This function refreshes the stats page, CM.Options.UpStats determines the rate at which that happens
|
||||
* It is called by CM.Disp.Draw()
|
||||
*/
|
||||
export default function RefreshMenu() {
|
||||
if (CMOptions.UpStats && Game.onMenu === 'stats' && (Game.drawT - 1) % (Game.fps * 5) !== 0 && (Game.drawT - 1) % Game.fps === 0) Game.UpdateMenu();
|
||||
}
|
||||
Reference in New Issue
Block a user