Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Share] Twitter Icon Source Code

Experienced Elementalist
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
NOTIFY_TWITTER, //add notify

After that, go into InnerInterfaceSimple.cpp

Then search code "CdmRankingDisplay.h"
then put this in the text below
#include "../RanClientUILib/Interface/NotifyTwitter.h"
after that found this code
CWeaponDisplay* pWeaponDisplay = new CWeaponDisplay;
pWeaponDisplay->Create ( WEAPON_DISPLAY, "WEAPON_DISPLAY" );
pWeaponDisplay->CreateSubControl ();
RegisterControl ( pWeaponDisplay );
ShowGroupBottom ( WEAPON_DISPLAY );
}

}
then add this code
{
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
#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 add new code named "NotifyTwitter.h"
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:
*Retired
Joined
Mar 23, 2012
Messages
609
Reaction score
77
SHOW_COMMON_LINEINFO( "Ur Twitter or Fb Link Etc.", NS_UITEXTCOLOR::The Color U want ); .
 
Newbie Spellweaver
Joined
Oct 13, 2012
Messages
22
Reaction score
12
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. :thumbup:
 
Experienced Elementalist
Joined
Jun 8, 2012
Messages
223
Reaction score
2
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 found this code

then add this code


after that, create new .cpp file named "NotifyTwitter.cpp"
put this code

than add new code named "NotifyTwitter.h"
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
can you please share official chat
 
Initiate Mage
Joined
Dec 15, 2011
Messages
4
Reaction score
0
Then the file NotifyTwitter.cpp. Kept that

Ask Source Code twitter.cpp twitter.h I would be very grateful.
 
zZzZzZz
Loyal Member
Joined
Jun 30, 2013
Messages
1,035
Reaction score
92
you can add your own NotifyTwitter.cpp and NotifyTwitter.h just read the guide LoL
 
Newbie Spellweaver
Joined
Apr 29, 2013
Messages
46
Reaction score
1
how to add Itemmix button in game? sir please post the code. thank you..
 
Newbie Spellweaver
Joined
Apr 29, 2013
Messages
46
Reaction score
1
why i can't add successfully. complie successfully. but in game not have any TWITTER icon. maybe modify the xml files to deal? sir
 
zZzZzZz
Loyal Member
Joined
Jun 30, 2013
Messages
1,035
Reaction score
92
yes you nid to edit it on .xml file reffer to development section theres complete guide for adding twitter / facebook icon !
 
Newbie Spellweaver
Joined
Apr 29, 2013
Messages
46
Reaction score
1
QQ图片20130831002043 - [Share] Twitter Icon Source Code - RaGEZONE Forums
why not i change anywhere code .can cause these error begin.but i did'nt chang thest files in pictures. if i reciver to initial. can 100% complie...
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
May 30, 2013
Messages
114
Reaction score
3
put 2 file notify at RanClientUIlib . right click RanClientUILib in VS . add class . select 2 file notify . build
 
Newbie Spellweaver
Joined
Apr 5, 2014
Messages
39
Reaction score
1
Where and How we can add the NotifyTwitter.cpp and NotifyTwitter.h ?? Please Help .. Thnx in advance!~
 
Back
Top