//==========================================
Select En Interface.cpp
#include "NewUiInterface.h"
if (gProtect.m_MainInfo.CustomInterfaceType == 5)
{
this->BindObject(eMain, 31293, 960, 160, 50, 388);
this->BindObject(eParty, iNewParty, 23, 30, 340, 449);
this->BindObject(eCharacter, iNewCharacter, 23, 30, 370, 449);
this->BindObject(eInventory, iNewInventory, 23, 30, 400, 449);
this->BindObject(eGuild, iNewGuild, 40, 18, 523, 461);
}
if (gProtect.m_MainInfo.CustomInterfaceType == 5)
{
gInterface.DrawInterfaceCustom1();
gInterface.DrawInterfaceMenu1();
}
void Interface::LoadImages()
{
if (gProtect.m_MainInfo.CustomInterfaceType == 5)
{
pLoadImage("Custom\\Interfaceold\\none.tga", 51522, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\none.tga", 31292, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\none.tga", 0x7A48, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\none.tga", 31294, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\none.tga", 31295, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\none.tga", 0x7A4A, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Main_Menu_Master.tga", 31293, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Menu_Red.tga", 0x7A42, GL_LINEAR, GL_CLAMP, 1, 0);//replace
pLoadImage("Custom\\Interfaceold\\Menu_Green.tga", 0x7A41, GL_LINEAR, GL_CLAMP, 1, 0);//replace
pLoadImage("Custom\\Interfaceold\\Menu_Blue.tga", 0x7A40, GL_LINEAR, GL_CLAMP, 1, 0);//replace
pLoadImage("Custom\\Interfaceold\\Main_I4.jpg", 31300, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Main_I5.jpg", 31299, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Item_Back01.jpg", 51533, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Menu\\Stats.jpg", 71352, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Menu\\StatsDL.jpg", 71291, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Menu\\Stats2.jpg", 71292, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Menu\\Level_box.jpg", 35353, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Menu\\Level_button.jpg", 51290, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Menu\\ePointback.jpg", 0x700020, 0x2601, 0x2901, 1, 0);
pLoadImage("Custom\\Interfaceold\\Boton\\Menu_Inventory.tga", iNewInventory1, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Boton\\Menu_Character.tga", iNewCharacter1, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Boton\\Menu_Party.tga", iNewParty1, GL_LINEAR, GL_CLAMP, 1, 0);
pLoadImage("Custom\\Interfaceold\\Boton\\Menu_guild.tga", iNewGuild1, GL_LINEAR, GL_CLAMP, 1, 0);
}
void Interface::DrawInterfaceCustom1()
{
gInterface.DrawIMG(eMain, 36, 415, 1.5, 2.0);
}
void Interface::DrawInterfaceMenu1()
{
if (IsWorkZone(eParty))
{
this->DrawToolTip(345, 420, "Party (P)");
}
if (this->CheckWindow(Party))
{
gInterface.DrawButton(eParty, 342, 448, 0.0, 0.0);
}
if (IsWorkZone(eCharacter))
{
this->DrawToolTip(375, 420, "Character (C)");
}
if (this->CheckWindow(Character))
{
gInterface.DrawButton(eCharacter, 371.5f, 448, 0.0, 0.0);
}
if (IsWorkZone(eInventory))
{
this->DrawToolTip(405, 420, "Inventory (I-V)");
}
if (this->CheckWindow(Inventory))
{
gInterface.DrawButton(eInventory, 399, 448, 0.0, 0.0);
}
if (IsWorkZone(eShop))
{
this->DrawToolTip(430, 420, "CashShop");
}
if (this->CheckWindow(CashShop))
{
gInterface.DrawButton(eShop, 442.5f, 450, 0.0, 0.0);
}
if (IsWorkZone(eFriend))
{
this->DrawToolTip(580, 420, "Friends");
}
if (this->CheckWindow(FriendList))
{
gInterface.DrawButton(eFriend, 581, 433, 0.0, 0.0);
}
if (IsWorkZone(eGuild))
{
this->DrawToolTip(580, 444, "Guild (G)");
}
if (this->CheckWindow(Guild))
{
gInterface.DrawButton(eGuild, 529, 460, 0.0, 0.0);
}
}
void Interface::DrawCoord1()
{
gObjUser.Refresh();
if (*(DWORD*)MAIN_SCREEN_STATE == 5)
{
glColor3f(1.0f, 1.0f, 1.0f);
pDrawInterfaceNumBer(86, 466, gObjUser.lpViewPlayer->MapPosX, 0.96);
pDrawInterfaceNumBer(102, 466, gObjUser.lpViewPlayer->MapPosY, 0.96);
}
}
IMAGE DA NOVA INTERFACE.