将五子棋加入主菜单
This commit is contained in:
parent
cc2db4d0a7
commit
43ca4d640c
@ -339,7 +339,7 @@
|
|||||||
<MiscControls></MiscControls>
|
<MiscControls></MiscControls>
|
||||||
<Define>USE_HAL_DRIVER, STM32H743xx</Define>
|
<Define>USE_HAL_DRIVER, STM32H743xx</Define>
|
||||||
<Undefine></Undefine>
|
<Undefine></Undefine>
|
||||||
<IncludePath>..\User\Main;..\Core;..\Libraries\HAL_Lib\Inc;..\Libraries\FatFs;..\Libraries\FatFs\drivers;..\System\systick;..\System\sys;..\System\spi;..\System\gpio;..\System\tim;..\System\usart;..\System\adc;..\Hardware\led;..\Hardware\key;..\Hardware\lcd;..\Hardware\sdio;..\Hardware\hc25;..\Hardware\hc12;..\User\GameEngine;..\User\Picture;..\User\SD;..\User\WLAN;..\User\Clock;..\User\APP_Reader;..\User\APP_Video;..\User\APP_Plane;..\User\APP_Weather;..\User\APP_Setting;..\User\APP_JumpMan;..\User\APP_Ball;..\User\FxLib</IncludePath>
|
<IncludePath>..\User\Main;..\Core;..\Libraries\HAL_Lib\Inc;..\Libraries\FatFs;..\Libraries\FatFs\drivers;..\System\systick;..\System\sys;..\System\spi;..\System\gpio;..\System\tim;..\System\usart;..\System\adc;..\Hardware\led;..\Hardware\key;..\Hardware\lcd;..\Hardware\sdio;..\Hardware\hc25;..\Hardware\hc12;..\User\GameEngine;..\User\Picture;..\User\SD;..\User\WLAN;..\User\Clock;..\User\APP_Reader;..\User\APP_Video;..\User\APP_Plane;..\User\APP_Weather;..\User\APP_Setting;..\User\APP_JumpMan;..\User\APP_Ball;..\User\APP_Gobang;..\User\FxLib</IncludePath>
|
||||||
</VariousControls>
|
</VariousControls>
|
||||||
</Cads>
|
</Cads>
|
||||||
<Aads>
|
<Aads>
|
||||||
@ -815,6 +815,16 @@
|
|||||||
</File>
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
</Group>
|
</Group>
|
||||||
|
<Group>
|
||||||
|
<GroupName>APP_Gobang</GroupName>
|
||||||
|
<Files>
|
||||||
|
<File>
|
||||||
|
<FileName>APP_Gobang.c</FileName>
|
||||||
|
<FileType>1</FileType>
|
||||||
|
<FilePath>..\User\APP_Gobang\APP_Gobang.c</FilePath>
|
||||||
|
</File>
|
||||||
|
</Files>
|
||||||
|
</Group>
|
||||||
<Group>
|
<Group>
|
||||||
<GroupName>Fxlib</GroupName>
|
<GroupName>Fxlib</GroupName>
|
||||||
<Files>
|
<Files>
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
#include "APP_Setting.h"
|
#include "APP_Setting.h"
|
||||||
#include "APP_Weather.h"
|
#include "APP_Weather.h"
|
||||||
#include "APP_Ball.h"
|
#include "APP_Ball.h"
|
||||||
|
#include "APP_Gobang.h"
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
@ -55,11 +56,11 @@ int main(void)
|
|||||||
|
|
||||||
printf("完成系统初始化\n");
|
printf("完成系统初始化\n");
|
||||||
|
|
||||||
uint8_t content[6][GE_GUI_MENUBOX_CONTENT_LEN] = {"阅读器", "视频播放器", "飞机大战", "天气", "移动球", "设置"};
|
uint8_t content[7][GE_GUI_MENUBOX_CONTENT_LEN] = {"阅读器", "视频播放器", "飞机大战", "天气", "移动球", "五子棋", "设置"};
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
GE_Draw_ClrAll(WHITE);
|
GE_Draw_ClrAll(WHITE);
|
||||||
switch (GE_GUI_MenuBox(5, 5, 310, 230, "STM32Player", 6, content, NULL))
|
switch (GE_GUI_MenuBox(5, 5, 310, 230, "STM32Player", 7, content, NULL))
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
@ -97,6 +98,13 @@ int main(void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 6:
|
case 6:
|
||||||
|
{
|
||||||
|
GE_Draw_ClrAll(WHITE);
|
||||||
|
APP_Gobang_Launcher();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 7:
|
||||||
{
|
{
|
||||||
GE_Draw_ClrAll(WHITE);
|
GE_Draw_ClrAll(WHITE);
|
||||||
APP_Setting_Launcher();
|
APP_Setting_Launcher();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user