DWORD STDCALL mouseRunewordsPageLeftDown(sWinMessage* msg) { if (!D2isLODGame() || !D2GetResolution()) return -1; if (!isOnStatsPage(msg->x,msg->y)) return 1; if (isOnCloseBtn(msg->x,msg->y)) { log_msg("push down left button close\n"); isDownBtn.close = 1; D2PlaySound(4,0,0,0,0); } else if (isOnNextPageBtn(msg->x,msg->y)) { log_msg("push down left button next page\n"); isDownBtn.nextPage = 1; D2PlaySound(4,0,0,0,0); } else if (isOnPrevRunesBtn(msg->x,msg->y)) { log_msg("push down left button prev page\n"); isDownBtn.prevRunes = 1; D2PlaySound(4,0,0,0,0); } else if (isOnNextRunesBtn(msg->x,msg->y)) { log_msg("push down left button next runes\n"); isDownBtn.nextRunes = 1; D2PlaySound(4,0,0,0,0); } freeMessage(msg); return 0; }
DWORD STDCALL mouseNewStatsPageTwoLeftDown(sWinMessage* msg) { if (!D2isLODGame()) return -1; DWORD x = D2GetMouseX(); DWORD y = D2GetMouseY(); if (!isOnStatsPage(x,y)) return 1; if (isOnCloseBtn(x,y)) { log_msg("push down left button close\n"); isDownBtn.close = 1; D2PlaySound(4,0,0,0,0); } else if (isOnPreviousPageBtn(x,y)) { log_msg("push down left button previous page\n"); isDownBtn.previousPage = 1; D2PlaySound(4,0,0,0,0); } else if (isOnNextPageBtn(x,y)) { log_msg("push down left button next page\n"); isDownBtn.nextPage = 1; D2PlaySound(4,0,0,0,0); } freeMessage(msg); return 0; }
Unit* STDCALL skillsPageMouseDown(sWinMessage* msg) { Unit* ptChar = D2GetClientPlayer(); if ( active_SkillsPoints && !onRealm && D2isLODGame() && isOnButtonUnassignSkill(D2GetMouseX(),D2GetMouseY())) { log_msg("push down left button unassign skill\n"); btnSkillIsDown = 1; D2PlaySound(4,0,0,0,0); freeMessage(msg); return NULL; } return ptChar; }
DWORD STDCALL manageBtnDown(sWinMessage* msg) { if (onRealm || !D2isLODGame()) return 0; if (isOnButtonPreviousStash(msg->x,msg->y)) isDownBtn.previous = 1; else if (isOnButtonNextStash(msg->x,msg->y)) isDownBtn.next = 1; else if (active_sharedStash && isOnButtonToggleSharedStash(msg->x,msg->y)) isDownBtn.toggleToSharedStash = 1; else if (isOnButtonPreviousIndexStash(msg->x,msg->y)) isDownBtn.previousIndex = 1; else if (isOnButtonNextIndexStash(msg->x,msg->y)) isDownBtn.nextIndex = 1; else if (active_sharedGold && isOnButtonPutGold(msg->x,msg->y)) isDownBtn.putGold = 1; else if (active_sharedGold && isOnButtonTakeGold(msg->x,msg->y)) isDownBtn.takeGold = 1; else return 0; D2PlaySound(4,0,0,0,0); freeMessage(msg); return 1; }