I asked a lot of people, how to make this icon but no one help me only " florian0 " help me thanks , so i decide to release it here so people can do it , also you can added alot of icon just check my file and you will understand how to make another one :
First you will create new file name in " ClientLib " IFDiscordGuide.h in Header Files , and another one IFDiscordGuide.cpp in Source Files.
Icons.
Code in IFDiscordGuide.h
Code:
#pragma once
#include "IFDecoratedStatic.h"
#define GUIDE_FLORIAN2 13382
class CIFDiscordGuide : public CIFDecoratedStatic
{
GFX_DECLARE_DYNCREATE(CIFDiscordGuide)
public:
bool OnCreate(long ln) override;
int OnMouseLeftUp(int a1, int x, int y) override;
void OnCIFReady() override;
};
IFDiscordGuide.cpp . Code
Code:
#include "../../../DevKit_DLL/src/StdAfx.h"
#include "IFDiscordGuide.h"
#include "GEffSoundBody.h"
#include "GInterface.h"
#include <Windows.h>
#include <string>
#include <iostream>
GFX_IMPLEMENT_DYNCREATE(CIFDiscordGuide, CIFDecoratedStatic)
bool CIFDiscordGuide::OnCreate(long ln)
{
printf("> " __FUNCTION__ "(%d)\n", ln);
CIFDecoratedStatic::OnCreate(ln);
TB_Func_13("icon\\etc\\discord_1.ddj", 0, 0);
sub_634470("icon\\etc\\discord_2.ddj");
set_N00009BD4(2);
set_N00009BD3(500);
CGEffSoundBody::get()->PlaySound(L"snd_quest");
return true;
}
int CIFDiscordGuide::OnMouseLeftUp(int a1, int x, int y)
{
printf("> " __FUNCTION__ "(%d, %d, %d)\n", a1, x, y);
CGEffSoundBody::get()->PlaySound(L"snd_quest");
ShellExecute(NULL, "open", "https://discordapp.com/invite/GOOSXC", NULL, NULL, SW_SHOWNORMAL);
return 0;
}
void CIFDiscordGuide::OnCIFReady()
{
printf("> " __FUNCTION__ "\n");
CIFDecoratedStatic::OnCIFReady();
sub_633990();
}
Next Step go to DevKit_DLL and open DllMain.cpp file then added this
include ,
Code:
#include "IFDiscordGuide.h""
then in // Inject all the new objects added this code
Code:
RegisterObject(&GFX_RUNTIME_CLASS(CIFDiscordGuide));
then go to AlramGuideMgrWnd.cpp in ClientLib , Source Files, added this #include
Code:
#include "IFDiscordGuide.h"
and this in same file
Code:
case GUIDE_FLORIAN2:
pObj = CreateInstance(this, GFX_RUNTIME_CLASS(CIFDiscordGuide), rect, GUIDE_FLORIAN2, 0);
break;
Last thing Ginterface.cpp in ClientLib , Source File
added this #include
Code:
#include "IFDiscordGuide.h"
and this code also
Code:
void CGInterface::CreateDiscordEvent() {
CGWnd *guide = GetAlarmManager()->GetGuide(GUIDE_FLORIAN2);
}
also added this in AfterOnCreate
Code:
CreateDiscordEvent();
also added this in GInterface.h in ClientLib
Code:
void CreateDiscordEvent();
Media.pk2 Edit .media\resinfo/ginterface.text added this code inside this text like screen
Code:
GDR_FLORIAN0:CIFflorian0
{
ClientRect=RECT,"0,0,0,0"
Color=COLOR,"255,8,214,78"
DDJ=STRING,"interface\\frame\\mframe_wnd_"
FontColor=COLOR,"255,255,255,255"
FontIndex=INTEGER,"0"
HAlign=INTEGER,"0"
ID=INTEGER,"1338"
Rect=RECT,"300,200,400,300"
Style=INTEGER,"0"
SubSection=STRING,""
Text=STRING,"UIIT_PAG_FLORIAN0"
UV_LB=POINT,"0,1"
UV_LT=POINT,"0,0"
UV_RB=POINT,"1,1"
UV_RT=POINT,"1,0"
VAlign=INTEGER,"0"
}
Special thanks to: florian0