Se me avía olvidado, Acá dejo lo que falta.
this->BindObject(eParty, iNewParty, 25, 25, 348, 449);
this->BindObject(eCharacter, iNewCharacter, 25, 25, 379, 449);
this->BindObject(eInventory, iNewInventory, 25, 25, 409, 449);
this->BindObject(eShop, 0x908, 25, 25, 440, 449);
this->BindObject(eFriend, iNewWinpush, 54, 20, 581, 432);
this->BindObject(eFastMenu, iNewFastMenu, 55, 21, 5, 432);
this->BindObject(eGuild, 0x904, 54, 20, 581, 454);
pLoadImage("Interface\\Custom\\MenuS3_left.jpg", 31292, GL_LINEAR, GL_CLAMP, 1, 0); //replace
pLoadImage("Interface\\Custom\\MenuS3_middle.jpg", 31293, GL_LINEAR, GL_CLAMP, 1, 0); //replace
pLoadImage("Interface\\Custom\\MenuS3_right.jpg", 31294, GL_LINEAR, GL_CLAMP, 1, 0); //replace
pLoadImage("Interface\\Custom\\none.tga", 31295, GL_LINEAR, GL_CLAMP, 1, 0); //replace
pLoadImage("Interface\\Custom\\MenuS3_Red.jpg", 0x7A42, GL_LINEAR, GL_CLAMP, 1, 0);//replace
pLoadImage("Interface\\Custom\\MenuS3_Green.jpg", 0x7A41, GL_LINEAR, GL_CLAMP, 1, 0);//replace
pLoadImage("Interface\\Custom\\MenuS3_Blue.jpg", 0x7A40, GL_LINEAR, GL_CLAMP, 1, 0);//replace
pLoadImage("Interface\\Custom\\MenuS3_Inventory.jpg", iNewInventory, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Interface\\Custom\\MenuS3_Character.jpg", iNewCharacter, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Interface\\Custom\\MenuS3_Party.jpg", iNewParty, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Interface\\Custom\\MenuS3_friend.jpg", iNewWinpush, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Interface\\Custom\\MenuS3_fastmenu.jpg", iNewFastMenu, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Interface\\Custom\\MenuS3_ChasShop.jpg", 0x908, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Interface\\Custom\\MenuS3_Guild.jpg", 0x904, GL_LINEAR, GL_CLAMP, 1, 0);
void Interface::DrawMenuButton()
{
if (IsWorkZone(eParty))
{
this->DrawToolTip(345, 420, "Party");
}
if (this->CheckWindow(Party))
{
gInterface.DrawButton(eParty, 348, 449, 0.0, 0.0);
}
if (IsWorkZone(eCharacter))
{
this->DrawToolTip(375, 420, "Character");
}
if (this->CheckWindow(Character))
{
gInterface.DrawButton(eCharacter, 378.5f, 449, 0.0, 0.0);
}
if (IsWorkZone(eInventory))
{
this->DrawToolTip(405, 420, "Inventory");
}
if (this->CheckWindow(Inventory))
{
gInterface.DrawButton(eInventory, 409, 449, 0.0, 0.0);
}
if (IsWorkZone(eShop))
{
this->DrawToolTip(430, 420, "CashShop");
}
if (this->CheckWindow(CashShop))
{
gInterface.DrawButton(eShop, 439.5f, 449, 0.0, 0.0);
}
if (IsWorkZone(eFriend))
{
this->DrawToolTip(580, 420, "Friends");
}
if (this->CheckWindow(FriendList))
{
gInterface.DrawButton(eFriend, 581, 432, 0.0, 0.0);
}
if (IsWorkZone(eGuild))
{
this->DrawToolTip(580, 444, "Guild");
}
if (this->CheckWindow(Guild))
{
gInterface.DrawButton(eGuild, 581, 454, 0.0, 0.0);
}
if (IsWorkZone(eFastMenu))
{
this->DrawToolTip(13, 420, "System");
}
if (this->CheckWindow(FastMenu))
{
gInterface.DrawButton(eFastMenu, 5, 432, 0.0, 0.0);
}
}
void Interface::EventMenuButton(DWORD Event)
{
DWORD CurrentTick = GetTickCount();
if (this->CheckWindow(ChaosBox))
{
return;
}
if (IsWorkZone(eFastMenu))
{
DWORD Delay = (CurrentTick - this->Data[eFastMenu].EventTick);
if (Event == WM_LBUTTONDOWN) {
this->Data[eFastMenu].OnClick = true;
return;
}
this->Data[eFastMenu].OnClick = false;
if (Delay < 500) {
return;
}
this->Data[eFastMenu].EventTick = GetTickCount();
if (this->CheckWindow(FastMenu)) {
this->CloseWindow(FastMenu);
}
else {
this->OpenWindow(FastMenu);
}
}
else if (IsWorkZone(eParty))
{
DWORD Delay = (CurrentTick - this->Data[eParty].EventTick);
if (Event == WM_LBUTTONDOWN) {
this->Data[eParty].OnClick = true;
return;
}
this->Data[eParty].OnClick = false;
if (Delay < 500) {
return;
}
this->Data[eParty].EventTick = GetTickCount();
if (this->CheckWindow(Party)) {
this->CloseWindow(Party);
}
else {
this->OpenWindow(Party);
}
}
else if (IsWorkZone(eCharacter))
{
DWORD Delay = (CurrentTick - this->Data[eCharacter].EventTick);
if (Event == WM_LBUTTONDOWN) {
this->Data[eCharacter].OnClick = true;
return;
}
this->Data[eCharacter].OnClick = false;
if (Delay < 500) {
return;
}
this->Data[eCharacter].EventTick = GetTickCount();
if (this->CheckWindow(Character)) {
this->CloseWindow(Character);
}
else {
this->OpenWindow(Character);
}
}
else if (IsWorkZone(eInventory))
{
DWORD Delay = (CurrentTick - this->Data[eInventory].EventTick);
if (Event == WM_LBUTTONDOWN) {
this->Data[eInventory].OnClick = true;
return;
}
this->Data[eInventory].OnClick = false;
if (Delay < 500) {
return;
}
this->Data[eInventory].EventTick = GetTickCount();
if (this->CheckWindow(Inventory)) {
this->CloseWindow(Inventory);
}
else {
this->OpenWindow(Inventory);
}
}
else if (IsWorkZone(eShop))
{
DWORD Delay = (CurrentTick - this->Data[eFriend].EventTick);
if (Event == WM_LBUTTONDOWN) {
this->Data[eShop].OnClick = true;
return;
}
this->Data[eShop].OnClick = false;
if (Delay < 500) {
return;
}
this->Data[eShop].EventTick = GetTickCount();
if (this->CheckWindow(CashShop)) {
this->CloseWindow(CashShop);
}
else {
this->OpenWindow(CashShop);
}
}
else if (IsWorkZone(eFriend))
{
DWORD Delay = (CurrentTick - this->Data[eFriend].EventTick);
if (Event == WM_LBUTTONDOWN) {
this->Data[eFriend].OnClick = true;
return;
}
this->Data[eFriend].OnClick = false;
if (Delay < 500) {
return;
}
this->Data[eFriend].EventTick = GetTickCount();
if (this->CheckWindow(FriendList)) {
this->CloseWindow(FriendList);
}
else {
this->OpenWindow(FriendList);
}
}
else if (IsWorkZone(eGuild))
{
DWORD Delay = (CurrentTick - this->Data[eGuild].EventTick);
if (Event == WM_LBUTTONDOWN) {
this->Data[eGuild].OnClick = true;
return;
}
this->Data[eGuild].OnClick = false;
if (Delay < 500) {
return;
}
this->Data[eGuild].EventTick = GetTickCount();
if (this->CheckWindow(Guild)) {
this->CloseWindow(Guild);
}
else {
this->OpenWindow(Guild);
}
}
}