- Joined
- Jun 11, 2010
- Messages
- 277
- Reaction score
- 25
This is just for you who cannot modified source code
i just modified Notify Post in JuverSource
If you dont know how to do it, dont ask it here, this is not Help Section.
First, go to InnerInterfaceGuid.h
Then search code "CDM_RANKING_DISPLAY"
After that, add this in the text below
After that, go into InnerInterfaceSimple.cpp
Then search code "CdmRankingDisplay.h"
then put this in the text below
after that, create new .cpp file named "NotifyTwitter.cpp"
put this code
than put this code
Than Compile it.
Update :
Tested using EP7 6Class Source Code & Ep8 Juver Source Code
WORK
Credits
Juver Source (Sharing the Source)
PatPayatot (Helping me if i got error)
RaGEZONER
i just modified Notify Post in JuverSource
If you dont know how to do it, dont ask it here, this is not Help Section.
First, go to InnerInterfaceGuid.h
Then search code "CDM_RANKING_DISPLAY"
After that, add this in the text below
NOTIFY_TWITTER, //add notify
After that, go into InnerInterfaceSimple.cpp
Then search code "CdmRankingDisplay.h"
then put this in the text below
after that found this code#include "../RanClientUILib/Interface/NotifyTwitter.h"
then add this codeCWeaponDisplay* pWeaponDisplay = new CWeaponDisplay;
pWeaponDisplay->Create ( WEAPON_DISPLAY, "WEAPON_DISPLAY" );
pWeaponDisplay->CreateSubControl ();
RegisterControl ( pWeaponDisplay );
ShowGroupBottom ( WEAPON_DISPLAY );
}
}
{
CNotifyTwitter* pNotifyTwitter = new CNotifyTwitter;
pNotifyTwitter->Create ( NOTIFY_TWITTER, "TWITTER_NOTIFY_BUTTON", UI_FLAG_RIGHT | UI_FLAG_BOTTOM );
pNotifyTwitter->CreateSubControl ();
RegisterControl ( pNotifyTwitter );
ShowGroupBottom ( NOTIFY_TWITTER );
}
after that, create new .cpp file named "NotifyTwitter.cpp"
put this code
than add new code named "NotifyTwitter.h"#include "StdAfx.h"
#include "../EngineUILib/GUInterface/BasicButton.h"
#include "GLGaeaClient.h"
#include "GLCharacter.h"
#include "InnerInterface.h"
#include ".\notifytwitter.h"
#include "../RanClientUILib/Interface/GameTextControl.h"
#include "../RanClientUILib/Interface/UITextControl.h"
#include "../RanClientUILib/Interface/CharacterEnum.h"
CNotifyTwitter::CNotifyTwitter(void)
{
}
CNotifyTwitter::~CNotifyTwitter(void)
{
}
void CNotifyTwitter::CreateSubControl ()
{
m_pNotifyButton = new CBasicButton;
m_pNotifyButton->CreateSub ( this,"TWITTERNOTIFY_BUTTON_IMAGE_DEFAULT", UI_FLAG_DEFAULT, NOTIFY_BUTTON );
m_pNotifyButton->SetUseGlobalAction ( TRUE );
m_pNotifyButton->SetVisibleSingle ( FALSE );
RegisterControl ( m_pNotifyButton );
}
void CNotifyTwitter::Update ( int x, int y, BYTE LB, BYTE MB, BYTE RB, int nScroll, float fElapsedTime, BOOL bFirstControl )
{
if ( !IsVisible () ) return ;
CUIGroup::Update ( x, y, LB, MB, RB, nScroll, fElapsedTime, bFirstControl );
m_pNotifyButton->SetVisibleSingle ( TRUE );
}
void CNotifyTwitter::TranslateUIMessage ( UIGUID ControlID, DWORD dwMsg )
{
switch ( ControlID )
{
case NOTIFY_BUTTON:
{
if ( CHECK_MOUSE_IN ( dwMsg ) )
{
CInnerInterface::GetInstance().SHOW_COMMON_LINEINFO( "Twitter", NS_UITEXTCOLOR::WHITE );
}
if ( CHECK_MOUSEIN_LBUPLIKE ( dwMsg ) )
{
}
}
break;
}
}
than put this code
#pragma once
#include "../EngineUILib/GUInterface/UIGroup.h"
class CBasicButton;
class CNotifyTwitter : public CUIGroup
{
public:
CNotifyTwitter(void);
~CNotifyTwitter(void);
public:
enum
{
NOTIFY_BUTTON = NO_ID + 1,
};
public:
void CreateSubControl ();
public:
virtual void TranslateUIMessage ( UIGUID ControlID, DWORD dwMsg );
virtual void Update ( int x, int y, BYTE LB, BYTE MB, BYTE RB, int nScroll, float fElapsedTime, BOOL bFirstControl );
private:
CBasicButton* m_pNotifyButton;
LPDIRECT3DDEVICEQ m_pd3dDevice;
};
Than Compile it.
Update :
By Hibari Kyoya
Also, you can declare a variable like this SHOW_COMMON_LINEINFO( ID2GAMEWORD("Your ID",.....)
ID2GAMEWORD = gameword.xml
or you can use
ID2GAMEEXTEXT("ID" ),
ID2GAMEEXTEXT = gameextext.xml you need to declare in that files as well.
Tested using EP7 6Class Source Code & Ep8 Juver Source Code
WORK
Credits
Juver Source (Sharing the Source)
PatPayatot (Helping me if i got error)
RaGEZONER
Last edited: