#include "menu.h"
#include "display.h"
#include "delay.h"
#include "draw.h"
#include <stdio.h>
Menu M_STARTUP;
Menu M_MAINMENU;//<2F><><EFBFBD>˵<EFBFBD>
Menu M_PLAYMODE1; //<2F><><EFBFBD><EFBFBD>˹<EFBFBD><CBB9><EFBFBD><EFBFBD>
Menu* NOW; //<2F><>ǰ<EFBFBD>˵<EFBFBD>ָ<EFBFBD><D6B8>
Menu* LAST=NULL;//<2F><>һ<EFBFBD><D2BB>״̬<D7B4>IJ˵<C4B2>
//<2F><>ʼ<EFBFBD>˵<EFBFBD>
void m_startup(struct _menu* this, enum OPR opr)
{
if(LAST != &M_STARTUP)
LAST = &M_STARTUP;
drawNAME(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
delay(1000);
drawNUMBER(); //<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>
}
if(opr == confirm)
opr = idle;
NOW = this->n; //ת<><D7AA><EFBFBD><EFBFBD>һ<EFBFBD>˵<EFBFBD>
clear();
void m_mainmenu(struct _menu* this, enum OPR opr)
if(LAST != &M_MAINMENU)
LAST = &M_MAINMENU;
drawMAINMENU();
if(opr == left)
NOW = &M_STARTUP;
void menuInit()
M_STARTUP.n = &M_MAINMENU;
M_STARTUP.f = m_startup;
M_MAINMENU.f = m_mainmenu;