📄 menu7.c
字号:
/* 定义外交选单 */
void menu7(int x,int y)
{int size,buttons=0;
char *buffer;
size=imagesize(402,345,452,405);
buffer=malloc(size);
cursoroff();
getimage(402,345,452,405,buffer);
putimage(402,345,buffer,XOR_PUT);
setcolor(WHITE);
rectangle(402,345,452,405);
paint(WHITE,410,350,1);
line(402,375,452,375);
printxs(412,352,"同盟",YELLOW);
printxs(412,382,"毁约",YELLOW);
for(;;)
{mouse(&x,&y,&buttons);
if (buttons==1)
if (x<402 || x>452 || y<345 || y>455) break;
if (buttons==2) break;
}
cursoroff();
putimage(402,345,buffer,COPY_PUT);
free(buffer);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -