Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Source - NewUiInterface S2/S3  (Visto 978 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline Juninsj22 Posteado: April 06, 2024, 04:24:43 PM | Modificado: April 10, 2024, 11:12:57 PM by Juninsj22

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 146
  • Gracias recibida: 779
  • pt
 cool2

HOLA PESSOAL BLZ  woot

VENHO TRAZER UMA NOVA INTERFACE TIRADA DA SOURCE @T-LEGENDARY

[SEGUE O TUTORIAL]

Code: [Select]
//==========================================
Select En Main.cpp

#include "NewUiInterface.h"

if (gProtect.m_MainInfo.CustomInterfaceType == 5)
{
NewInterface();
}


Code: [Select]
//==========================================
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);

}
}
Code: [Select]
//====================================
Select Add  En Interface.h

enum ObjectID
{
        eMain,

Class Interface
{

Public:
//NewUiInterface
void DrawInterfaceCustom1();
void DrawInterfaceMenu1();
void DrawCoord1();

Code: [Select]
//======================================
Select En Main.Info

CustomInterfaceType == 5  << (5 = NewUiInterface)
//======================================

//======================================
IMAGE DA NOVA INTERFACE.
//======================================


//======================================
SEGUE O DOWNLOAD DOS ARQUIVOS:
//======================================


magia2  JUNINSJ22  magia2

::[FLIX]-[TEAM]::

Online jonathadll #1 Posteado: April 07, 2024, 04:05:05 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 8
  • Gracias recibida: 2
  • br
Esse tutorial está incompleto, porém vai me ajudar bastante á separar ás source's da interface dos meus projetos !



Offline Juninsj22 #2 Posteado: April 10, 2024, 11:17:11 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 146
  • Gracias recibida: 779
  • pt
Esse tutorial está incompleto, porém vai me ajudar bastante á separar ás source's da interface dos meus projetos !

 nots

NEW UPDATE

en Main.cpp

Disable InterEx (InterfaceS6) Interferencia ao meio corrigido!

#include "InterEx.h" << ERROR

//#include "InterEx.h"  << FIX

gCRenderEx700.Init(); << ERROR

//gCRenderEx700.Init();  << FIX

 magia2

::[FLIX]-[TEAM]::

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1652 Views
Last post September 11, 2018, 12:32:54 PM
by -Rastaa.TSM☢
13 Replies
5687 Views
Last post August 29, 2022, 12:39:11 PM
by binho
36 Replies
8692 Views
Last post February 23, 2024, 01:17:50 PM
by osvaldo1811
4 Replies
1959 Views
Last post August 28, 2022, 02:20:41 PM
by RAGNAR111
2 Replies
243 Views
Last post April 06, 2024, 04:29:10 PM
by Juninsj22