2020-06-23 15:53:23 +08:00
|
|
|
|
/************************/
|
2020-06-23 15:27:59 +08:00
|
|
|
|
/* mouse.c */
|
|
|
|
|
/************************/
|
|
|
|
|
#include "../systeminc/version.h"
|
|
|
|
|
#include "../systeminc/system.h"
|
|
|
|
|
#include "../systeminc/loadrealbin.h"
|
|
|
|
|
#include "../systeminc/anim_tbl.h"
|
|
|
|
|
#include "../systeminc/pc.h"
|
|
|
|
|
#include "../systeminc/menu.h"
|
|
|
|
|
#include "../systeminc/battleMenu.h"
|
|
|
|
|
#include "../systeminc/ime_sa.h"
|
|
|
|
|
#include "../systeminc/map.h"
|
|
|
|
|
#include "../systeminc/login.h"
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????刪叉???
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#define MOUSE_HIT_SIZE_X 48
|
|
|
|
|
#define MOUSE_HIT_SIZE_Y 48
|
|
|
|
|
|
|
|
|
|
// ??????????????
|
|
|
|
|
#define MOUSE_AUTO_REPEATE_TIME 100
|
|
|
|
|
|
|
|
|
|
// Robin
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????﹨▍
|
2020-06-23 15:27:59 +08:00
|
|
|
|
MOUSE mouse;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????????????????吻????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
int HitFontNo;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????????????牙吻???????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
int HitDispNo;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ??????更??
|
2020-06-23 15:27:59 +08:00
|
|
|
|
char OneLineInfoStr[ 256 ];
|
|
|
|
|
|
|
|
|
|
int oneLineInfoFlag = 1;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 牙?????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
int BoxColor;
|
|
|
|
|
extern int transmigrationEffectFlag;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????? ////////////////////////////////////////////////////////
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void MouseInit( void )
|
|
|
|
|
{
|
|
|
|
|
memset( &mouse, 0, sizeof( MOUSE ) );
|
2020-06-23 15:53:23 +08:00
|
|
|
|
mouse.itemNo = -1; // ????吻????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????????ㄅ????? //////////////////////////////////////////////
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void MouseNowPoint( int x, int y )
|
|
|
|
|
{
|
|
|
|
|
if(ResoMode == 1){
|
|
|
|
|
if(x > 640)x = 640;
|
|
|
|
|
if(y > 480)y = 480;
|
|
|
|
|
}else{
|
|
|
|
|
if(x > lpDraw->xSize)x = lpDraw->xSize;
|
|
|
|
|
if(y > lpDraw->ySize)y = lpDraw->ySize;
|
|
|
|
|
}
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?火????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
//???????????????
|
|
|
|
|
if(ResoMode == 1){
|
|
|
|
|
mouse.nowPoint.x = x * 2;
|
|
|
|
|
mouse.nowPoint.y = y * 2;
|
|
|
|
|
} else {
|
|
|
|
|
mouse.nowPoint.x = x;
|
|
|
|
|
mouse.nowPoint.y = y;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????????????????????ㄅ????? //////////////////////
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void MouseCrickLeftDownPoint( int x, int y )
|
|
|
|
|
{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ┤????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.state |= MOUSE_LEFT_CRICK;
|
|
|
|
|
mouse.onceState |= MOUSE_LEFT_CRICK;
|
|
|
|
|
mouse.autoState |= MOUSE_LEFT_CRICK;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?火????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.crickLeftDownPoint.x = x;
|
|
|
|
|
mouse.crickLeftDownPoint.y = y;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????????????? 叉??〈??
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.beforeLeftPushTime = TimeGetTime();
|
|
|
|
|
mouse.leftPushTime = 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????????????????ㄅ????? ////////////////////////
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void MouseCrickLeftUpPoint( int x, int y )
|
|
|
|
|
{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ┤????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.state &= (~MOUSE_LEFT_CRICK);
|
|
|
|
|
mouse.onceState |= MOUSE_LEFT_CRICK_UP;
|
|
|
|
|
mouse.autoState &= (~MOUSE_LEFT_CRICK);
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?火????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.crickLeftUpPoint.x = x;
|
|
|
|
|
mouse.crickLeftUpPoint.y = y;
|
|
|
|
|
// ????????????????
|
|
|
|
|
mouse.beforeLeftPushTime = 0;
|
|
|
|
|
mouse.leftPushTime = 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ??????????????????ㄅ????? //////////////////////////
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void MouseDblCrickLeftUpPoint( int x, int y )
|
|
|
|
|
{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ┤????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
//mouse.onceState |= ( MOUSE_LEFT_DBL_CRICK | MOUSE_LEFT_CRICK );
|
|
|
|
|
mouse.state |= MOUSE_LEFT_CRICK;
|
|
|
|
|
mouse.onceState |= MOUSE_LEFT_DBL_CRICK;
|
|
|
|
|
mouse.onceState |= MOUSE_LEFT_CRICK;
|
|
|
|
|
mouse.autoState |= MOUSE_LEFT_CRICK;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?火????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.crickLeftDownPoint.x = x;
|
|
|
|
|
mouse.crickLeftDownPoint.y = y;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????????????? 叉??〈??
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.beforeLeftPushTime = TimeGetTime();
|
|
|
|
|
mouse.leftPushTime = 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????????????????ㄅ????? ////////////////////////
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void MouseCrickRightDownPoint( int x, int y )
|
|
|
|
|
{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ┤????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.state |= MOUSE_RIGHT_CRICK;
|
|
|
|
|
mouse.onceState |= MOUSE_RIGHT_CRICK;
|
|
|
|
|
mouse.autoState |= MOUSE_RIGHT_CRICK;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?火????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.crickRightDownPoint.x = x;
|
|
|
|
|
mouse.crickRightDownPoint.y = y;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????????????? 叉??〈??
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.beforeRightPushTime = TimeGetTime();
|
|
|
|
|
mouse.rightPushTime = 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????????????????ㄅ????? ////////////////////////
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void MouseCrickRightUpPoint( int x, int y )
|
|
|
|
|
{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ┤????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.state &= (~MOUSE_RIGHT_CRICK);
|
|
|
|
|
mouse.onceState |= MOUSE_RIGHT_CRICK_UP;
|
|
|
|
|
mouse.autoState &= (~MOUSE_RIGHT_CRICK);
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?火????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.crickRightUpPoint.x = x;
|
|
|
|
|
mouse.crickRightUpPoint.y = y;
|
|
|
|
|
// ????????????????
|
|
|
|
|
mouse.beforeRightPushTime = 0;
|
|
|
|
|
mouse.rightPushTime = 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ??????????????????ㄅ????? //////////////////////////
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void MouseDblCrickRightUpPoint( int x, int y )
|
|
|
|
|
{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ┤????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.state |= MOUSE_RIGHT_CRICK;
|
|
|
|
|
mouse.onceState |= MOUSE_RIGHT_DBL_CRICK;
|
|
|
|
|
mouse.onceState |= MOUSE_RIGHT_CRICK;
|
|
|
|
|
mouse.autoState |= MOUSE_RIGHT_CRICK;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?火????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.crickRightDownPoint.x = x;
|
|
|
|
|
mouse.crickRightDownPoint.y = y;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????????????? 叉??〈??
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.beforeRightPushTime = TimeGetTime();
|
|
|
|
|
mouse.rightPushTime = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ????? ///////////////////////////////////////////////////////////////
|
|
|
|
|
void MouseProc( void )
|
|
|
|
|
{
|
|
|
|
|
static UINT leftPushTimeBak;
|
|
|
|
|
static UINT rightPushTimeBak;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ┤????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
mouse.onceState = MOUSE_NO_CRICK;
|
|
|
|
|
// ???????????????????
|
|
|
|
|
if( mouse.beforeLeftPushTime > 0 )
|
|
|
|
|
{
|
|
|
|
|
mouse.leftPushTime = TimeGetTime() - mouse.beforeLeftPushTime;
|
|
|
|
|
}
|
|
|
|
|
// ???????????????????
|
|
|
|
|
if( mouse.beforeRightPushTime > 0 )
|
|
|
|
|
{
|
|
|
|
|
mouse.rightPushTime = TimeGetTime() - mouse.beforeRightPushTime;
|
|
|
|
|
}
|
|
|
|
|
// ?????????
|
|
|
|
|
// ????????????
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???企??????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( mouse.leftPushTime > 500 ){
|
|
|
|
|
// ???????
|
|
|
|
|
if( leftPushTimeBak == 0 ){
|
|
|
|
|
mouse.autoState |= MOUSE_LEFT_CRICK; // ?????
|
|
|
|
|
leftPushTimeBak = mouse.leftPushTime; // ?????
|
|
|
|
|
}else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????????刺?
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( mouse.leftPushTime - leftPushTimeBak >= MOUSE_AUTO_REPEATE_TIME ){
|
|
|
|
|
mouse.autoState |= MOUSE_LEFT_CRICK; // ?????
|
|
|
|
|
leftPushTimeBak = mouse.leftPushTime; // ?????
|
|
|
|
|
}else{ // ?????????
|
|
|
|
|
mouse.autoState &= (~MOUSE_LEFT_CRICK); // ??????
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
mouse.autoState &= (~MOUSE_LEFT_CRICK); // ??????
|
|
|
|
|
leftPushTimeBak = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ????????????
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???企??????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( mouse.rightPushTime > 500 ){
|
|
|
|
|
// ???????
|
|
|
|
|
if( rightPushTimeBak == 0 ){
|
|
|
|
|
mouse.autoState |= MOUSE_RIGHT_CRICK; // ?????
|
|
|
|
|
rightPushTimeBak = mouse.rightPushTime; // ?????
|
|
|
|
|
}else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????????刺?
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( mouse.rightPushTime - rightPushTimeBak >= MOUSE_AUTO_REPEATE_TIME ){
|
|
|
|
|
mouse.autoState |= MOUSE_RIGHT_CRICK; // ?????
|
|
|
|
|
rightPushTimeBak = mouse.rightPushTime; // ?????
|
|
|
|
|
}else{ // ?????????
|
|
|
|
|
mouse.autoState &= (~MOUSE_RIGHT_CRICK); // ??????
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
mouse.autoState &= (~MOUSE_RIGHT_CRICK); // ??????
|
|
|
|
|
rightPushTimeBak = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ????????????
|
|
|
|
|
//if( mouse.rightPushTime > 0 ){
|
|
|
|
|
//}else mouse.state &= (~MOUSE_RIGHT_AUTO_CRICK);
|
|
|
|
|
// ????????????
|
|
|
|
|
//if( !WindowMode ){
|
|
|
|
|
//if( 0 <= mouse.nowPoint.x && mouse.nowPoint.x < 640 &&
|
|
|
|
|
// 0 <= mouse.nowPoint.y && mouse.nowPoint.y < 480 ){
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( MouseCursorFlag == FALSE ){
|
|
|
|
|
if( mouse.flag == FALSE ){
|
|
|
|
|
StockDispBuffer( mouse.nowPoint.x + 16, mouse.nowPoint.y + 16, DISP_PRIO_MOUSE, CG_MOUSE_CURSOR, 0 );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????︻????? *********************************************************/
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void CheckGroupSelect( int no )
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
DISP_INFO *pDispInfo;
|
|
|
|
|
DISP_SORT *pDispSort;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
/* ???牙?????????牙??!????????? */
|
2020-06-23 15:27:59 +08:00
|
|
|
|
for( i = 0 ; i < DispBuffer.DispCnt ; i++ ){
|
|
|
|
|
|
|
|
|
|
pDispInfo = DispBuffer.DispInfo + i;
|
|
|
|
|
pDispSort = DispBuffer.DispSort + i;
|
|
|
|
|
|
|
|
|
|
// ??????????
|
|
|
|
|
if( pDispInfo->hitFlag == no ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ??????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispSort->dispPrio >= DISP_PRIO_MENU ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????牙????????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#ifndef __CARYTEST
|
|
|
|
|
StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2,
|
|
|
|
|
pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width + 2,
|
|
|
|
|
pDispInfo->y + SpriteInfo[ pDispInfo->bmpNo ].height + 2,
|
|
|
|
|
DISP_PRIO_BOX2, BoxColor, 0 );
|
|
|
|
|
#else
|
|
|
|
|
StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2,
|
|
|
|
|
pDispInfo->x + g_lpRealAdrn[ pDispInfo->bmpNo ].width + 2,
|
|
|
|
|
pDispInfo->y + g_lpRealAdrn[ pDispInfo->bmpNo ].height + 2,
|
|
|
|
|
DISP_PRIO_BOX2, BoxColor, 0 );
|
|
|
|
|
#endif
|
|
|
|
|
}else{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????牙????????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#ifndef __CARYTEST
|
|
|
|
|
StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2,
|
|
|
|
|
pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width + 2,
|
|
|
|
|
pDispInfo->y + SpriteInfo[ pDispInfo->bmpNo ].height + 2,
|
|
|
|
|
DISP_PRIO_BOX, BoxColor, 0 );
|
|
|
|
|
//pDispSort->dispPrio, 250, 0 );
|
|
|
|
|
#else
|
|
|
|
|
StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2,
|
|
|
|
|
pDispInfo->x + g_lpRealAdrn[ pDispInfo->bmpNo ].width + 2,
|
|
|
|
|
pDispInfo->y + g_lpRealAdrn[ pDispInfo->bmpNo ].height + 2,
|
|
|
|
|
DISP_PRIO_BOX, BoxColor, 0 );
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if 1
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 牙????????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
UCHAR BoxColorTbl[] = {
|
|
|
|
|
//255, 255, 255, 255, 255,
|
|
|
|
|
//8,8,8,8,8,
|
|
|
|
|
250,250,250,250,250,
|
|
|
|
|
250,250,250,250,250,
|
|
|
|
|
250,250,250,250,250,
|
|
|
|
|
250,250,250,250,250,
|
|
|
|
|
250,250,250,250,250,
|
|
|
|
|
250,250,250,250,250,
|
|
|
|
|
250,250,250,250,250,
|
|
|
|
|
250,250,250,250,250,
|
|
|
|
|
250,250,250,250,250,
|
|
|
|
|
15,15,15,15,15,
|
|
|
|
|
2,2,2,2,2,
|
|
|
|
|
15,15,15,15,15,
|
|
|
|
|
//250,250,250,250,250,
|
|
|
|
|
//8,8,8,8,8,
|
|
|
|
|
};
|
|
|
|
|
#else
|
|
|
|
|
UCHAR BoxColorTbl[] = {
|
|
|
|
|
255,255,255,255,255,255,255,255,255,255,
|
|
|
|
|
255,255,255,255,255,255,255,255,255,255,
|
|
|
|
|
7,7,7,7,7,7,7,7,7,7,
|
|
|
|
|
248,248,248,248,248,248,248,248,248,248,
|
|
|
|
|
0,0,0,0,0,0,0,0,0,0,
|
|
|
|
|
248,248,248,248,248,248,248,248,248,248,
|
|
|
|
|
7,7,7,7,7,7,7,7,7,7,
|
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
/* ???????????刪叉 **************************************************/
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void HitMouseCursor( void )
|
|
|
|
|
{
|
|
|
|
|
int i; // ???????
|
2020-06-23 15:53:23 +08:00
|
|
|
|
int strWidth; // 更???????
|
|
|
|
|
int hitFlag = FALSE; // ???刪叉???
|
2020-06-23 15:27:59 +08:00
|
|
|
|
static int cnt = 0; // ?????
|
2020-06-23 15:53:23 +08:00
|
|
|
|
int itemNameColor = FONT_PAL_WHITE; // ?????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
|
|
|
|
|
DISP_SORT *pDispSort = DispBuffer.DispSort + DispBuffer.DispCnt - 1;
|
|
|
|
|
DISP_INFO *pDispInfo;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 牙?????阪?
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( !transmigrationEffectFlag )
|
|
|
|
|
oneLineInfoFlag = 1;
|
|
|
|
|
else
|
|
|
|
|
oneLineInfoFlag = 0;
|
|
|
|
|
|
|
|
|
|
if( cnt >= sizeof( BoxColorTbl ) - 1 ) cnt = 0;
|
|
|
|
|
else cnt++;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 牙????? 叉
|
2020-06-23 15:27:59 +08:00
|
|
|
|
BoxColor = BoxColorTbl[ cnt ];
|
|
|
|
|
#ifdef _ITEM_PATH
|
|
|
|
|
ITEMPATHFLAG = FALSE;
|
|
|
|
|
#endif
|
2020-06-23 15:53:23 +08:00
|
|
|
|
/* ????牙?????????????????????????可??*/
|
2020-06-23 15:27:59 +08:00
|
|
|
|
for( i = 0 ; i < FontCnt ; i++ ){
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???刪叉??????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( FontBuffer[ i ].hitFlag == 0 ) continue;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 更???????????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
|
|
|
|
|
strWidth = GetStrWidth( FontBuffer[ i ].str );
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?????刪叉
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( mouse.nowPoint.x <= FontBuffer[ i ].x + strWidth + 2 &&
|
|
|
|
|
FontBuffer[ i ].x - 2 <= mouse.nowPoint.x &&
|
|
|
|
|
|
|
|
|
|
mouse.nowPoint.y <= FontBuffer[ i ].y + FONT_SIZE + 2 &&
|
|
|
|
|
|
|
|
|
|
FontBuffer[ i ].y - 2 <= mouse.nowPoint.y ){
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????吻?????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
HitFontNo = i;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?????牙???
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( FontBuffer[ i ].hitFlag == 2 ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????牙????????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
StockBoxDispBuffer( FontBuffer[ i ].x - 3,
|
|
|
|
|
#ifdef _NEWFONT_
|
|
|
|
|
FontBuffer[ i ].y - 2,
|
|
|
|
|
#else
|
|
|
|
|
FontBuffer[ i ].y - 4,
|
|
|
|
|
#endif
|
|
|
|
|
FontBuffer[ i ].x + strWidth + 2,
|
|
|
|
|
#ifdef _NEWFONT_
|
|
|
|
|
FontBuffer[ i ].y + FONT_SIZE + 6,
|
|
|
|
|
#else
|
|
|
|
|
FontBuffer[ i ].y + FONT_SIZE + 4,
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
DISP_PRIO_BOX2, BoxColor, 0 );
|
|
|
|
|
|
|
|
|
|
SortDispBuffer();
|
|
|
|
|
}
|
|
|
|
|
HitDispNo = -1;
|
|
|
|
|
// ??????
|
|
|
|
|
mouse.level = DISP_PRIO_MENU;
|
|
|
|
|
// ?????????
|
|
|
|
|
if( TaskBarFlag == FALSE && oneLineInfoFlag ){
|
|
|
|
|
ShowBottomLineString(itemNameColor, OneLineInfoStr);
|
|
|
|
|
//the third StockFontBuffer( 8, 460, FONT_PRIO_FRONT, itemNameColor, OneLineInfoStr, 0 );
|
|
|
|
|
}
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 更?????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
OneLineInfoStr[ 0 ] = NULL;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
return; // ??????????????刪叉????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????吻???????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
HitFontNo = -1;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
/* ???牙?????????牙??!????????? */
|
2020-06-23 15:27:59 +08:00
|
|
|
|
for( i = DispBuffer.DispCnt - 1; i >= 0 ; i--, pDispSort-- ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 牙????向????????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo = DispBuffer.DispInfo + pDispSort->no;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???刪叉??????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->hitFlag == 0 ) continue;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????????????㎝
|
2020-06-23 15:27:59 +08:00
|
|
|
|
//if( SpriteInfo[ pDispInfo->bmpNo ].lpSurfaceInfo == NULL ) continue;
|
|
|
|
|
// ?????????????????????????
|
|
|
|
|
// ?????????
|
|
|
|
|
if( LoadBmp( pDispInfo->bmpNo ) == FALSE ) continue;
|
|
|
|
|
|
|
|
|
|
// ?????????
|
|
|
|
|
if( pDispInfo->pAct == NULL ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?????刪叉
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#ifndef __CARYTEST
|
|
|
|
|
if( mouse.nowPoint.x <= pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width &&
|
|
|
|
|
pDispInfo->x <= mouse.nowPoint.x &&
|
|
|
|
|
mouse.nowPoint.y <= pDispInfo->y + SpriteInfo[ pDispInfo->bmpNo ].height &&
|
|
|
|
|
pDispInfo->y <= mouse.nowPoint.y )
|
|
|
|
|
#else
|
|
|
|
|
if( mouse.nowPoint.x <= pDispInfo->x + g_lpRealAdrn[ pDispInfo->bmpNo ].width &&
|
|
|
|
|
pDispInfo->x <= mouse.nowPoint.x &&
|
|
|
|
|
mouse.nowPoint.y <= pDispInfo->y + g_lpRealAdrn[ pDispInfo->bmpNo ].height &&
|
|
|
|
|
pDispInfo->y <= mouse.nowPoint.y )
|
|
|
|
|
#endif
|
|
|
|
|
hitFlag = TRUE;
|
|
|
|
|
}else{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?????刪叉????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#ifndef __CARYTEST
|
|
|
|
|
if( mouse.nowPoint.x <= pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width * 0.5 + MOUSE_HIT_SIZE_X * 0.5 &&
|
|
|
|
|
pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width * 0.5 - MOUSE_HIT_SIZE_X * 0.5 <= mouse.nowPoint.x &&
|
|
|
|
|
mouse.nowPoint.y <= pDispInfo->y + SpriteInfo[ pDispInfo->bmpNo ].height &&
|
|
|
|
|
pDispInfo->y + SpriteInfo[ pDispInfo->bmpNo ].height - MOUSE_HIT_SIZE_Y <= mouse.nowPoint.y )
|
|
|
|
|
#else
|
|
|
|
|
if( mouse.nowPoint.x <= pDispInfo->x + g_lpRealAdrn[ pDispInfo->bmpNo ].width * 0.5 + MOUSE_HIT_SIZE_X * 0.5 &&
|
|
|
|
|
pDispInfo->x + g_lpRealAdrn[ pDispInfo->bmpNo ].width * 0.5 - MOUSE_HIT_SIZE_X * 0.5 <= mouse.nowPoint.x &&
|
|
|
|
|
mouse.nowPoint.y <= pDispInfo->y + g_lpRealAdrn[ pDispInfo->bmpNo ].height &&
|
|
|
|
|
pDispInfo->y + g_lpRealAdrn[ pDispInfo->bmpNo ].height - MOUSE_HIT_SIZE_Y <= mouse.nowPoint.y )
|
|
|
|
|
#endif
|
|
|
|
|
hitFlag = TRUE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ???????
|
|
|
|
|
if( hitFlag == TRUE ){
|
|
|
|
|
|
|
|
|
|
#ifdef __ATTACK_MAGIC
|
|
|
|
|
|
|
|
|
|
int cnt;
|
|
|
|
|
|
|
|
|
|
for( cnt = 0 ; cnt < BATTLKPKPLYAERNUM ; cnt++ )
|
|
|
|
|
{
|
|
|
|
|
if( p_party[cnt] == pDispInfo->pAct )
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 酘奻善衵狟晤瘍峈6 , 7 , 8 , 9
|
|
|
|
|
// 絞躺夔恁寁等齬醴垀恁寁腔婓扂源腔弇离
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( BattleMyNo >= 10 && ( 6 == pDispInfo->hitFlag || 7 == pDispInfo->hitFlag ) )
|
|
|
|
|
{
|
|
|
|
|
hitFlag = FALSE;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 絞躺夔恁寁等齬醴垀恁寁腔婓扂源腔弇离
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( BattleMyNo < 10 && ( 8 == pDispInfo->hitFlag || 9 == pDispInfo->hitFlag ) )
|
|
|
|
|
{
|
|
|
|
|
hitFlag = FALSE;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
#ifdef _SKILL_ADDBARRIER
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 硐夔恁扂源
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( BattleMyNo < 10 && ( 10 == pDispInfo->hitFlag || 11 == pDispInfo->hitFlag ) )
|
|
|
|
|
{
|
|
|
|
|
hitFlag = FALSE;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if( BattleMyNo >= 10 && ( 12 == pDispInfo->hitFlag || 13 == pDispInfo->hitFlag ) )
|
|
|
|
|
{
|
|
|
|
|
hitFlag = FALSE;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 更?牙????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
// StockFontBuffer( pDispInfo->x, pDispInfo->y, FONT_PRIO_FRONT, 0, "Hit", 1 );
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????吻????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
HitDispNo = pDispSort->no;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?????牙???
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->hitFlag >= 2 ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ??????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispSort->dispPrio >= DISP_PRIO_YES_NO_WND ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????牙????????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#ifndef __CARYTEST
|
|
|
|
|
StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2,
|
|
|
|
|
pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width + 2,
|
|
|
|
|
pDispInfo->y + SpriteInfo[ pDispInfo->bmpNo ].height + 2,
|
|
|
|
|
//DISP_PRIO_BOX2, 250, 0 );
|
|
|
|
|
DISP_PRIO_BOX3, BoxColor, 0 );
|
|
|
|
|
#else
|
|
|
|
|
StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2,
|
|
|
|
|
pDispInfo->x + g_lpRealAdrn[ pDispInfo->bmpNo ].width + 2,
|
|
|
|
|
pDispInfo->y + g_lpRealAdrn[ pDispInfo->bmpNo ].height + 2,
|
|
|
|
|
DISP_PRIO_BOX3, BoxColor, 0 );
|
|
|
|
|
#endif
|
|
|
|
|
}else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ??????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispSort->dispPrio >= DISP_PRIO_MENU ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????牙????????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#ifndef __CARYTEST
|
|
|
|
|
StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2,
|
|
|
|
|
pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width + 2,
|
|
|
|
|
pDispInfo->y + SpriteInfo[ pDispInfo->bmpNo ].height + 2,
|
|
|
|
|
//DISP_PRIO_BOX2, 250, 0 );
|
|
|
|
|
DISP_PRIO_BOX2, BoxColor, 0 );
|
|
|
|
|
#else
|
|
|
|
|
StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2,
|
|
|
|
|
pDispInfo->x + g_lpRealAdrn[ pDispInfo->bmpNo ].width + 2,
|
|
|
|
|
pDispInfo->y + g_lpRealAdrn[ pDispInfo->bmpNo ].height + 2,
|
|
|
|
|
DISP_PRIO_BOX2, BoxColor, 0 );
|
|
|
|
|
#endif
|
|
|
|
|
}else{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????牙????????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#ifndef __CARYTEST
|
|
|
|
|
StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2,
|
|
|
|
|
pDispInfo->x + SpriteInfo[ pDispInfo->bmpNo ].width + 2,
|
|
|
|
|
pDispInfo->y + SpriteInfo[ pDispInfo->bmpNo ].height + 2,
|
|
|
|
|
//DISP_PRIO_BOX, 250, 0 );
|
|
|
|
|
DISP_PRIO_BOX, BoxColor, 0 );
|
|
|
|
|
//pDispSort->dispPrio, 250, 0 );
|
|
|
|
|
#else
|
|
|
|
|
StockBoxDispBuffer( pDispInfo->x - 2, pDispInfo->y - 2,
|
|
|
|
|
pDispInfo->x + g_lpRealAdrn[ pDispInfo->bmpNo ].width + 2,
|
|
|
|
|
pDispInfo->y + g_lpRealAdrn[ pDispInfo->bmpNo ].height + 2,
|
|
|
|
|
DISP_PRIO_BOX, BoxColor, 0 );
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????︻??????佃?︻??
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->hitFlag >= 3 ) CheckGroupSelect( pDispInfo->hitFlag );
|
2020-06-23 15:53:23 +08:00
|
|
|
|
SortDispBuffer(); // 牙???????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ?????????
|
|
|
|
|
if( TaskBarFlag == FALSE ){
|
|
|
|
|
// ?????????????
|
|
|
|
|
if( pDispInfo->pAct != NULL ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ??????牙????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->atr & ACT_ATR_INFO ){
|
|
|
|
|
if( ProcNo == PROC_GAME ){
|
|
|
|
|
#ifdef _MOUSE_SHOW_INFO_FOR_HEAD
|
|
|
|
|
int left = GetStrWidth(pDispInfo->pAct->name)/2;
|
|
|
|
|
itemNameColor = pDispInfo->pAct->itemNameColor;
|
|
|
|
|
StockFontBuffer( pDispInfo->x+20 - left, pDispInfo->y-10, FONT_PRIO_FRONT, itemNameColor, pDispInfo->pAct->name, 0 );
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 更???
|
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%4d/%4d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
|
|
|
|
// ??????牙????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
// ???????
|
|
|
|
|
if( pDispInfo->pAct->atr & ACT_ATR_TYPE_PC ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?〈? 叉
|
2020-06-23 15:27:59 +08:00
|
|
|
|
itemNameColor = pDispInfo->pAct->itemNameColor;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->freeName[ 0 ] != NULL ){
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->petName[ 0 ] != NULL )
|
|
|
|
|
if( pc.familyName[0] != NULL )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pc.familyName, pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp,
|
|
|
|
|
pDispInfo->pAct->petName, pDispInfo->pAct->petLevel );
|
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp,
|
|
|
|
|
pDispInfo->pAct->petName, pDispInfo->pAct->petLevel );
|
|
|
|
|
else
|
|
|
|
|
if( pc.familyName[0] != NULL )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pc.familyName, pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp );
|
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp );
|
|
|
|
|
}else{
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->petName[ 0 ] != NULL )
|
|
|
|
|
if( pc.familyName[0] != NULL )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"{%s} %s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pc.familyName, pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel );
|
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel );
|
|
|
|
|
else
|
|
|
|
|
if( pc.familyName[0] != NULL )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"{%s} %s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pc.familyName, pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp );
|
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pc.mp );
|
|
|
|
|
}
|
|
|
|
|
}else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 兝????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->atr & ACT_ATR_TYPE_OTHER_PC ){
|
|
|
|
|
#ifdef _MOUSE_DBL_CLICK
|
|
|
|
|
if( mouseDblRightOn ) {
|
|
|
|
|
openServerWindow( WINDOW_MESSAGETYPE_MOUSEGETNAME, 0, 0, 0, pDispInfo->pAct->name);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?〈? 叉
|
2020-06-23 15:27:59 +08:00
|
|
|
|
itemNameColor = pDispInfo->pAct->itemNameColor;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->freeName[ 0 ] != NULL ){
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->petName[ 0 ] != NULL )
|
|
|
|
|
if( pDispInfo->pAct->fmname[0] != NULL )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lvㄩ%d %s Lvㄩ%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d %s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
else
|
|
|
|
|
if( pDispInfo->pAct->fmname[0] != NULL )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"{%s} %s [%s] Lvㄩ%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}else{
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->petName[ 0 ] != NULL )
|
|
|
|
|
if( pDispInfo->pAct->fmname[0] != NULL )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"{%s} %s Lvㄩ%d %s Lvㄩ%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d %s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->petName, pDispInfo->pAct->petLevel );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
else
|
|
|
|
|
if( pDispInfo->pAct->fmname[0] != NULL )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"{%s} %s Lvㄩ%d", pDispInfo->pAct->fmname, pDispInfo->pAct->name, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}
|
|
|
|
|
}else
|
|
|
|
|
// ?????
|
|
|
|
|
if( pDispInfo->pAct->atr & ACT_ATR_TYPE_PET ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->freeName[ 0 ] != NULL ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->freeName, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}else{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}
|
|
|
|
|
}else
|
|
|
|
|
// ??????
|
|
|
|
|
if( pDispInfo->pAct->atr & ACT_ATR_TYPE_ITEM ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?〈? 叉
|
2020-06-23 15:27:59 +08:00
|
|
|
|
itemNameColor = pDispInfo->pAct->itemNameColor;
|
|
|
|
|
sprintf_s( OneLineInfoStr,"%s", pDispInfo->pAct->name );
|
|
|
|
|
#ifdef _ITEM_PATH
|
|
|
|
|
ITEMPATHFLAG = TRUE;
|
|
|
|
|
#endif
|
|
|
|
|
}else
|
|
|
|
|
// ????
|
|
|
|
|
if( pDispInfo->pAct->atr & ACT_ATR_TYPE_GOLD ){
|
|
|
|
|
sprintf_s( OneLineInfoStr,"%s", pDispInfo->pAct->name );
|
|
|
|
|
}else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ??兝?????????即?
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->atr & ACT_ATR_TYPE_OTHER ){
|
|
|
|
|
sprintf_s( OneLineInfoStr,"%s", pDispInfo->pAct->name );
|
|
|
|
|
}
|
|
|
|
|
}else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ·卯??
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( ProcNo == PROC_BATTLE ){
|
|
|
|
|
// ?????
|
|
|
|
|
if( pDispInfo->pAct->atr & ACT_ATR_TYPE_PET ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->freeName[ 0 ] != NULL ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->freeName, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}else{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}
|
|
|
|
|
}else
|
|
|
|
|
// ??????
|
|
|
|
|
if( pDispInfo->pAct->atr & ACT_ATR_TYPE_ITEM ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?〈? 叉
|
2020-06-23 15:27:59 +08:00
|
|
|
|
//itemNameColor = pDispInfo->pAct->itemNameColor;
|
|
|
|
|
sprintf_s( OneLineInfoStr,"%s", pDispInfo->pAct->name );
|
|
|
|
|
}else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?·?????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( BattleMyNo < BATTLKPKPLYAERNUM ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 希???????牙
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( ( (ATR_EQU *)pDispInfo->pAct->pYobi )->place_no == BattleMyNo ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->freeName[ 0 ] != NULL ){
|
|
|
|
|
// Robin 0728 ride Pet
|
|
|
|
|
if( pDispInfo->pAct->onRide == 1 )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d 騵ㄩ%dㄞ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp,
|
|
|
|
|
pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp, pDispInfo->pAct->petMaxHp );
|
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp );
|
|
|
|
|
}else{
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, BattleMyMp );
|
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
// Robin 0728
|
|
|
|
|
if( pDispInfo->pAct->onRide == 1 )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d %s Lvㄩ%d 騵ㄩ%dㄞ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp,
|
|
|
|
|
pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp, pDispInfo->pAct->petMaxHp );
|
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d ㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp, pDispInfo->pAct->mp );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ?????牙
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( ( (ATR_EQU *)p_party[ BattleMyNo ]->pYobi )->group_flg == ( (ATR_EQU *)pDispInfo->pAct->pYobi )->group_flg ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 更???
|
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%4d/%4d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
|
|
|
|
// ????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->freeName[ 0 ] != NULL ){
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
// Robin 0728
|
|
|
|
|
if( pDispInfo->pAct->onRide == 1 )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d %s Lvㄩ%d 騵ㄩ%dㄞ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp,
|
|
|
|
|
pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp, pDispInfo->pAct->petMaxHp);
|
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
|
|
|
|
}else{
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
// Robin 0728
|
|
|
|
|
if( pDispInfo->pAct->onRide == 1 )
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d %s Lvㄩ%d 騵ㄩ%dㄞ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp,
|
|
|
|
|
pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp, pDispInfo->pAct->petMaxHp );
|
|
|
|
|
else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
|
|
|
|
}
|
2020-06-23 15:53:23 +08:00
|
|
|
|
}else{ // ????
|
|
|
|
|
// ????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->freeName[ 0 ] != NULL ){
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
// Robin
|
|
|
|
|
if( pDispInfo->pAct->onRide == 1 )
|
|
|
|
|
#ifdef _STONDEBUG_
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%d %s Lvㄩ%d 騵ㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp,
|
|
|
|
|
pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp );
|
|
|
|
|
#else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d %s Lvㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level,
|
|
|
|
|
pDispInfo->pAct->petName, pDispInfo->pAct->petLevel );
|
|
|
|
|
#endif
|
|
|
|
|
else
|
|
|
|
|
#ifdef _STONDEBUG_
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
|
|
|
|
#else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level );
|
|
|
|
|
#endif
|
|
|
|
|
}else{
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
// Robin
|
|
|
|
|
if( pDispInfo->pAct->onRide == 1 )
|
|
|
|
|
#ifdef _STONDEBUG_
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%d %s Lvㄩ%d 騵ㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp,
|
|
|
|
|
pDispInfo->pAct->petName, pDispInfo->pAct->petLevel, pDispInfo->pAct->petHp );
|
|
|
|
|
#else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d %s Lvㄩ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->level,
|
|
|
|
|
pDispInfo->pAct->petName, pDispInfo->pAct->petLevel );
|
|
|
|
|
#endif
|
|
|
|
|
else
|
|
|
|
|
#ifdef _STONDEBUG_
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d",
|
2020-06-23 15:27:59 +08:00
|
|
|
|
pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
|
|
|
|
#else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-23 15:53:23 +08:00
|
|
|
|
}else{ // ?·?????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#ifdef _STONDEBUG_
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->freeName[ 0 ] != NULL ){
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}else{
|
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}
|
|
|
|
|
#else
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
if( pDispInfo->pAct->freeName[ 0 ] != NULL ){
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s [%s] Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->freeName, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}else{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//sprintf_s( OneLineInfoStr,"%s Lvㄩ%d 騵ㄩ%dㄞ%d", pDispInfo->pAct->name, pDispInfo->pAct->level, pDispInfo->pAct->hp, pDispInfo->pAct->maxHp );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
// shan add
|
2020-06-23 15:53:23 +08:00
|
|
|
|
sprintf_s( OneLineInfoStr,"%s Lvㄩ%d", pDispInfo->pAct->name, pDispInfo->pAct->level );
|
2020-06-23 15:27:59 +08:00
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if( oneLineInfoFlag)
|
|
|
|
|
ShowBottomLineString(itemNameColor, OneLineInfoStr);
|
|
|
|
|
}
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 更?????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
OneLineInfoStr[ 0 ] = NULL;
|
|
|
|
|
|
|
|
|
|
// ??????
|
|
|
|
|
mouse.level = pDispSort->dispPrio;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// ??????
|
|
|
|
|
mouse.level = DISP_PRIO_TILE;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????吻???????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
HitDispNo = -1;
|
|
|
|
|
|
|
|
|
|
// ?????????
|
|
|
|
|
if( TaskBarFlag == FALSE ){
|
|
|
|
|
ShowBottomLineString(itemNameColor, OneLineInfoStr);
|
|
|
|
|
}
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// 更?????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
OneLineInfoStr[ 0 ] = NULL;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|