[Share] Twitter Icon Source Code

Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    Salad CharlesCode is offline
    True MemberRank
    Jun 2010 Join Date
    chrlz@rootLocation
    287Posts

    [Share] Twitter Icon Source Code

    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 by CharlesCode; 12-06-13 at 10:21 PM.


  2. #2
    You'll Never See it Comin ghostyTrickster is offline
    True MemberRank
    Mar 2012 Join Date
    oChinChin~Location
    600Posts

    Re: [Share] Twitter Icon Source Code

    SHOW_COMMON_LINEINFO( "Ur Twitter or Fb Link Etc.", NS_UITEXTCOLOR::The Color U want ); .

  3. #3
    Registered Hibari Kyoya is offline
    MemberRank
    Oct 2012 Join Date
    Bangkok ThailanLocation
    22Posts

    Re: [Share] Twitter Icon Source Code

    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.

  4. #4
    Account Upgraded | Title Enabled! cz360 is offline
    True MemberRank
    Jun 2012 Join Date
    232Posts

    Re: [Share] Twitter Icon Source Code

    Quote Originally Posted by ackbar View Post
    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

  5. #5
    Ultimate Member Hyouka is offline
    MemberRank
    May 2013 Join Date
    Visual C/C++Location
    186Posts

    Re: [Share] Twitter Icon Source Code

    How to add Facebook icon?
    RAN Online [Ninth Class Project]-Ongoing
    New Class Update. The SHAPER Class


    Want to earn money? "click here"


  6. #6
    Salad CharlesCode is offline
    True MemberRank
    Jun 2010 Join Date
    chrlz@rootLocation
    287Posts

    Re: [Share] Twitter Icon Source Code

    Quote Originally Posted by Hyouka View Post
    How to add Facebook icon?
    Same with this
    just replace the word "twitter" to "facebook" or anything you want
    Try and Error :)

  7. #7
    Account Inactive samgointer is offline
    InactiveRank
    Dec 2011 Join Date
    4Posts

    Re: [Share] Twitter Icon Source Code

    Then the file NotifyTwitter.cpp. Kept that

    Ask Source Code twitter.cpp twitter.h I would be very grateful.

  8. #8
    zZzZzZz zHadesVII is offline
    True MemberRank
    Jun 2013 Join Date
    PhilippinesLocation
    1,038Posts

    Re: [Share] Twitter Icon Source Code

    you can add your own NotifyTwitter.cpp and NotifyTwitter.h just read the guide LoL

  9. #9
    Account Inactive anquanbao2 is offline
    InactiveRank
    Apr 2013 Join Date
    46Posts

    Re: [Share] Twitter Icon Source Code

    how to add Itemmix button in game? sir please post the code. thank you..

  10. #10
    Account Inactive anquanbao2 is offline
    InactiveRank
    Apr 2013 Join Date
    46Posts

    Re: [Share] Twitter Icon Source Code

    why i can't add successfully. complie successfully. but in game not have any TWITTER icon. maybe modify the xml files to deal? sir

  11. #11
    zZzZzZz zHadesVII is offline
    True MemberRank
    Jun 2013 Join Date
    PhilippinesLocation
    1,038Posts

    Re: [Share] Twitter Icon Source Code

    yes you nid to edit it on .xml file reffer to development section theres complete guide for adding twitter / facebook icon !

  12. #12
    Account Inactive anquanbao2 is offline
    InactiveRank
    Apr 2013 Join Date
    46Posts

    Re: [Share] Twitter Icon Source Code

    Click image for larger version. 

Name:	QQ图片20130831002043.jpg 
Views:	76 
Size:	94.2 KB 
ID:	136376
    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...

  13. #13
    zZzZzZz zHadesVII is offline
    True MemberRank
    Jun 2013 Join Date
    PhilippinesLocation
    1,038Posts

    Re: [Share] Twitter Icon Source Code

    i can't understand the error O.o !

  14. #14
    Account Upgraded | Title Enabled! flyhigh1 is offline
    True MemberRank
    Dec 2011 Join Date
    489Posts

    Re: [Share] Twitter Icon Source Code

    not working on i-bugz source...:(

  15. #15
    Hardcore Member looklike is offline
    MemberRank
    May 2013 Join Date
    114Posts

    Re: [Share] Twitter Icon Source Code

    @flyhigh1 it working on i-bugz source :)



Page 1 of 2 12 LastLast

Advertisement