perf(MCU课设): 微调菜单逻辑
This commit is contained in:
parent
8bc5f2e635
commit
25c07e4a0d
1 changed files with 4 additions and 2 deletions
|
@ -67,6 +67,8 @@ void m_mainmenu(struct _menu* this)
|
||||||
{
|
{
|
||||||
if(local[0] > 1)
|
if(local[0] > 1)
|
||||||
local[0]--;
|
local[0]--;
|
||||||
|
if(local[0] == 0)
|
||||||
|
local[0] = 3;
|
||||||
|
|
||||||
opr = idle;
|
opr = idle;
|
||||||
drawMAINMENU(local[0]);
|
drawMAINMENU(local[0]);
|
||||||
|
@ -109,7 +111,7 @@ void m_block(struct _menu* this)
|
||||||
if(opr == confirm)
|
if(opr == confirm)
|
||||||
{
|
{
|
||||||
opr = idle;
|
opr = idle;
|
||||||
clear();
|
clear();
|
||||||
blockDestroy();
|
blockDestroy();
|
||||||
NOW = &M_MAINMENU;
|
NOW = &M_MAINMENU;
|
||||||
return;
|
return;
|
||||||
|
@ -184,7 +186,7 @@ void m_about(struct _menu* this)
|
||||||
opr = idle;
|
opr = idle;
|
||||||
NOW = &M_MAINMENU; //转向下一菜单
|
NOW = &M_MAINMENU; //转向下一菜单
|
||||||
clear();
|
clear();
|
||||||
//若满足隐藏条件,清空排行榜
|
//若满足隐藏条件,清空排行榜
|
||||||
if(local[2] >= 30 && local[3] >= 30)
|
if(local[2] >= 30 && local[3] >= 30)
|
||||||
{
|
{
|
||||||
IapProgramByte(IAP_ADDRESS + 0, 0);
|
IapProgramByte(IAP_ADDRESS + 0, 0);
|
||||||
|
|
Reference in a new issue