2020-06-22 17:49:02 +08:00
|
|
|
|
#include "../systeminc/version.h"
|
|
|
|
|
#include "../systeminc/system.h"
|
|
|
|
|
#include "../systeminc/Turntable.h"
|
|
|
|
|
#include "../newproto/autil.h"
|
|
|
|
|
#include "../systeminc/menu.h"
|
|
|
|
|
#include "../systeminc/shop.h"
|
|
|
|
|
#include "../systeminc/t_music.h"
|
|
|
|
|
#include "../newproto/protocol.h"
|
|
|
|
|
#include "../other/caryIme.h"
|
|
|
|
|
#include "../systeminc/field.h"
|
|
|
|
|
#include "../systeminc/netmain.h"
|
2020-06-23 15:27:59 +08:00
|
|
|
|
char <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[1024];
|
2020-06-22 17:49:02 +08:00
|
|
|
|
#ifdef _ICONBUTTONS_
|
|
|
|
|
extern unsigned int sockfd;
|
|
|
|
|
extern int nowGx, nowGy;
|
|
|
|
|
extern int indexWN;
|
|
|
|
|
extern int idWN;
|
2020-06-23 15:27:59 +08:00
|
|
|
|
ACTION* ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ=0;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
|
|
|
|
|
typedef struct {
|
2020-06-23 15:27:59 +08:00
|
|
|
|
int <EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
|
|
|
|
|
char <EFBFBD><EFBFBD>[64];
|
|
|
|
|
char <EFBFBD><EFBFBD><EFBFBD><EFBFBD>[512];
|
|
|
|
|
}ת<EFBFBD>̵<EFBFBD><EFBFBD>߽ṹ;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
int x;
|
|
|
|
|
int y;
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ṹ;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
|
2020-06-23 15:27:59 +08:00
|
|
|
|
int ת<EFBFBD>̵<EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>[10][2]={
|
2020-06-22 17:49:02 +08:00
|
|
|
|
{0x0,-0x74},
|
|
|
|
|
{0x53,-0x5B},
|
|
|
|
|
{0x86,-0x13},
|
|
|
|
|
{0x86,0x43},
|
|
|
|
|
{0x57,0x8A},
|
|
|
|
|
{0x2,0xA6},
|
|
|
|
|
{-0x51,0x8A},
|
|
|
|
|
{-0x84,0x46},
|
|
|
|
|
{-0x85,-0x10},
|
|
|
|
|
{-0x52,-0x58},
|
|
|
|
|
};
|
|
|
|
|
|
2020-06-23 15:27:59 +08:00
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ṹ ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[10];
|
2020-06-22 17:49:02 +08:00
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
int x;
|
|
|
|
|
int y;
|
2020-06-23 15:27:59 +08:00
|
|
|
|
int ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
|
|
|
|
|
BOOL <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
|
|
|
|
|
int ת<EFBFBD><EFBFBD>;//(0δת<CEB4><D7AA> 1ת<31><D7AA><EFBFBD><EFBFBD> 2ת<32><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
int ָ<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>;
|
|
|
|
|
int ָ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
|
|
|
|
|
int ָ<EFBFBD><EFBFBD>Ȧ<EFBFBD><EFBFBD>;
|
|
|
|
|
ת<EFBFBD>̵<EFBFBD><EFBFBD>߽ṹ <EFBFBD><EFBFBD><EFBFBD><EFBFBD>[10];
|
|
|
|
|
}ת<EFBFBD>̴<EFBFBD><EFBFBD>ڽṹ;
|
|
|
|
|
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD>ڽṹ ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>;
|
|
|
|
|
|
|
|
|
|
void ת<EFBFBD>̴<EFBFBD><EFBFBD>ڳ<EFBFBD>ʼ<EFBFBD><EFBFBD>(char * <EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
2020-06-22 17:49:02 +08:00
|
|
|
|
{
|
2020-06-23 15:27:59 +08:00
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[0].x=0;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[0].y=-0x30;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[1].x=0x2C;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[1].y=-0x21;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[2].x=0x49;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[2].y=0x7;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[3].x=0x48;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[3].y=0x2F;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[4].x=0x2D;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[4].y=0x57;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[5].x=0x4;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[5].y=0x66;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[6].x=-0x27;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[6].y=0x5A;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[7].x=-0x48;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[7].y=0x32;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[8].x=-0x47;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[8].y=0x8;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[9].x=-0x2A;
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[9].y=-0x20;
|
|
|
|
|
memset(&ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>,0,sizeof(ת<EFBFBD>̴<EFBFBD><EFBFBD>ڽṹ));
|
|
|
|
|
memset(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0,1024);
|
|
|
|
|
if(ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ) DeathAction(ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ);
|
|
|
|
|
ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ=0;
|
|
|
|
|
char *<EFBFBD><EFBFBD>ʱ=new char [513];
|
|
|
|
|
char *<EFBFBD><EFBFBD>ʱ1=new char [513];
|
2020-06-22 17:49:02 +08:00
|
|
|
|
int i;
|
|
|
|
|
for(i=0;i<10;i++){
|
2020-06-23 15:27:59 +08:00
|
|
|
|
memset(<EFBFBD><EFBFBD>ʱ,0,512);
|
|
|
|
|
memset(<EFBFBD><EFBFBD>ʱ1,0,20);
|
|
|
|
|
getStringFromIndexWithDelim_body((char *) <EFBFBD><EFBFBD><EFBFBD><EFBFBD>,(char *)"#@",i+1,<EFBFBD><EFBFBD>ʱ,512);
|
|
|
|
|
getStringFromIndexWithDelim_body((char *) <EFBFBD><EFBFBD>ʱ,(char *)"|",1,<EFBFBD><EFBFBD>ʱ1,512);
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD>[i].<EFBFBD><EFBFBD><EFBFBD><EFBFBD> = atoi(<EFBFBD><EFBFBD>ʱ1);
|
|
|
|
|
getStringFromIndexWithDelim_body((char *) <EFBFBD><EFBFBD>ʱ,(char *)"|",2,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD>[i].<EFBFBD><EFBFBD>,64);
|
|
|
|
|
getStringFromIndexWithDelim_body((char *) <EFBFBD><EFBFBD>ʱ,(char *)"|",3,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD>[i].<EFBFBD><EFBFBD><EFBFBD><EFBFBD>,512);
|
2020-06-22 17:49:02 +08:00
|
|
|
|
}
|
2020-06-23 15:27:59 +08:00
|
|
|
|
delete <EFBFBD><EFBFBD>ʱ;
|
|
|
|
|
delete <EFBFBD><EFBFBD>ʱ1;
|
|
|
|
|
int <EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD>=424;
|
|
|
|
|
int <EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD>=424;
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x=(800-<EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD>)/2+<EFBFBD><EFBFBD><EFBFBD>ڿ<EFBFBD>/2;
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y=(600-<EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD>)/2-40+<EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD>/2;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:27:59 +08:00
|
|
|
|
ACTION* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>()
|
2020-06-22 17:49:02 +08:00
|
|
|
|
{
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if(ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ) DeathAction(ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ);
|
|
|
|
|
ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ=0;
|
|
|
|
|
ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ = MakeWindowDisp(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y,0,0,40166,0,FALSE);
|
2020-06-22 17:49:02 +08:00
|
|
|
|
play_se(202,320,240);
|
2020-06-23 15:27:59 +08:00
|
|
|
|
return ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>()
|
2020-06-22 17:49:02 +08:00
|
|
|
|
{
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ת<EFBFBD><EFBFBD>==1){
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ת<EFBFBD><EFBFBD>=2;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,"2");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
extern short wnCloseFlag;
|
|
|
|
|
extern int windowTypeWN;
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD>()
|
2020-06-22 17:49:02 +08:00
|
|
|
|
{
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if(ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ) DeathAction(ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ);
|
|
|
|
|
ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>();
|
|
|
|
|
ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ=0;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
wnCloseFlag=0;
|
|
|
|
|
windowTypeWN = -1;
|
|
|
|
|
wnCloseFlag = 1;
|
|
|
|
|
}
|
|
|
|
|
extern int cloasewindows;
|
|
|
|
|
|
2020-06-23 15:27:59 +08:00
|
|
|
|
ACTION* ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ()
|
2020-06-22 17:49:02 +08:00
|
|
|
|
{
|
2020-06-23 15:27:59 +08:00
|
|
|
|
//<2F><>ͼ
|
|
|
|
|
StockDispBuffer(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+28,104,40166,1);
|
2020-06-22 17:49:02 +08:00
|
|
|
|
|
2020-06-23 15:27:59 +08:00
|
|
|
|
//<2F>ر<EFBFBD>
|
|
|
|
|
if(MakeHitBox(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x+0x61,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y-0x99,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x+0x80,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y-0x7D,1)==1){
|
|
|
|
|
StockDispBuffer(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x+0x71-2,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y-0x8B,105,40165,1);
|
|
|
|
|
if( (mouse.onceState & MOUSE_LEFT_CRICK) && !ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>){
|
2020-06-22 17:49:02 +08:00
|
|
|
|
windowTypeWN = -1;
|
|
|
|
|
wnCloseFlag = 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-23 15:27:59 +08:00
|
|
|
|
//<2F><>ʼ<EFBFBD><CABC>ť
|
|
|
|
|
if(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ת<EFBFBD><EFBFBD>)
|
|
|
|
|
StockDispBuffer(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+0x1B+1,105,40164,1);
|
2020-06-22 17:49:02 +08:00
|
|
|
|
else{
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if(MakeHitBox(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x-0x30,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y-0x14,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x+0x30,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+0x4A,1)==1){
|
|
|
|
|
StockDispBuffer(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+0x1B+1,105,40164,1);
|
|
|
|
|
if( (mouse.onceState & MOUSE_LEFT_CRICK) && !ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>){
|
2020-06-22 17:49:02 +08:00
|
|
|
|
lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,"1");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ת<EFBFBD><EFBFBD>==1){
|
|
|
|
|
if(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>>2){
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = 0;
|
|
|
|
|
if(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>==9) {
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD>Ȧ<EFBFBD><EFBFBD>++;
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>=0;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
}
|
2020-06-23 15:27:59 +08:00
|
|
|
|
else ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>++;
|
|
|
|
|
}else ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>++;
|
|
|
|
|
if(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD>Ȧ<EFBFBD><EFBFBD> == 8 && ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>==(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-1)) {
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ת<EFBFBD><EFBFBD>=2;
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>=TRUE;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
lssproto_WN_send(sockfd,nowGx,nowGy,indexWN,idWN,0,"2");
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-23 15:27:59 +08:00
|
|
|
|
StockDispBuffer(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x+ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>].x,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>].y,106,40153+ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ָ<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>,1);
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
2020-06-22 17:49:02 +08:00
|
|
|
|
int i;
|
|
|
|
|
for(i=0;i<10;i++){
|
2020-06-23 15:27:59 +08:00
|
|
|
|
StockDispBuffer(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x+ת<EFBFBD>̵<EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>[i][0],ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+ת<EFBFBD>̵<EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>[i][1],106,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD>[i].<EFBFBD><EFBFBD><EFBFBD><EFBFBD>,1);
|
|
|
|
|
if(!ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
if(MakeHitBox(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x+ת<EFBFBD>̵<EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>[i][0]-30,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+ת<EFBFBD>̵<EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>[i][1]-30,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x+ת<EFBFBD>̵<EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>[i][0]+30,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+ת<EFBFBD>̵<EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>[i][1]+30,1)==1){
|
|
|
|
|
//extern void <20><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(short x,short y,UCHAR <20><><EFBFBD><EFBFBD>,char* <20><><EFBFBD><EFBFBD>,int <20><><EFBFBD><EFBFBD> ,char*<2A><><EFBFBD><EFBFBD>);
|
|
|
|
|
<EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x+ת<EFBFBD>̵<EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>[i][0],ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+ת<EFBFBD>̵<EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD>[i][1],107,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD>[i].<EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD>[i].<EFBFBD><EFBFBD>);
|
2020-06-22 17:49:02 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-23 15:27:59 +08:00
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
|
|
|
|
|
if(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>){
|
|
|
|
|
StockDispBuffer(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x-0xC1,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y-0x32,107,40088,1);
|
2020-06-22 17:49:02 +08:00
|
|
|
|
extern int getTextLength(char * str);
|
2020-06-23 15:27:59 +08:00
|
|
|
|
StockFontBuffer(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x-getTextLength(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)/2,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+5,2,0,<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,1);
|
|
|
|
|
int <EFBFBD><EFBFBD>ťID = StockDispBuffer(ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.x,ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.y+50,109,26042,2);
|
2020-06-22 17:49:02 +08:00
|
|
|
|
if( mouse.onceState & MOUSE_LEFT_CRICK ){
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( HitDispNo == <EFBFBD><EFBFBD>ťID ){
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>=0;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
windowTypeWN = -1;
|
|
|
|
|
wnCloseFlag = 1;
|
2020-06-23 15:27:59 +08:00
|
|
|
|
memset(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0,1024);
|
2020-06-22 17:49:02 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(CheckMenuFlag()
|
|
|
|
|
|| ((joy_trg[ 0 ] & JOY_ESC) && GetImeString() == NULL)
|
|
|
|
|
|| actBtn == 1
|
|
|
|
|
|| menuBtn == 1
|
|
|
|
|
|| disconnectServerFlag == TRUE
|
|
|
|
|
|| wnCloseFlag == 1
|
2020-06-23 15:27:59 +08:00
|
|
|
|
|| cloasewindows == 1) <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD>();
|
|
|
|
|
return ת<EFBFBD>̶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void <EFBFBD><EFBFBD>ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(int ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
2020-06-22 17:49:02 +08:00
|
|
|
|
{
|
2020-06-23 15:27:59 +08:00
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ת<EFBFBD><EFBFBD>=1;
|
|
|
|
|
ת<EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>.ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>=ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
|
2020-06-22 17:49:02 +08:00
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|