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!

Item/Skill Image Render in Info

Experienced Elementalist
Joined
Jun 24, 2011
Messages
263
Reaction score
75
Merry Christmas.
This is just only the Image of the Item

Screenshot:
Item
janmaru5555 - Item/Skill Image Render in Info - RaGEZONE Forums


Skill
janmaru5555 - Item/Skill Image Render in Info - RaGEZONE Forums


BasicVarTextBox.cpp
Search:
PHP:
#include "../EngineUIlib/GUInterface/UIDebugSet.h"

Add Below:
PHP:
#include "ItemImage.h"
#include "GLItemMan.h"
#include "GLItem.h"
#include "GLGaeaClient.h"

Search:
PHP:
m_pSelfDummy ( NULL ),

Add below:
PHP:
m_pItemImageRender ( NULL ),

Search:
PHP:
CBasicVarTextBox::~CBasicVarTextBox ()
{
}

Add Below:
PHP:
CItemImage*	CBasicVarTextBox::CreateItemImage ( const char* szControl )
{
	CItemImage* pItemImage = new CItemImage;
	pItemImage->CreateSub ( this, szControl );
	pItemImage->CreateSubControl ();
	pItemImage->SetUseRender ( TRUE );
	pItemImage->SetVisibleSingle ( FALSE );
	RegisterControl ( pItemImage );

	return pItemImage;
}

Search:
PHP:
CBasicTextBox* pTextBox = new CBasicTextBox;
pTextBox->CreateSub ( this, "VAR_TEXT_BOX", UI_FLAG_XSIZE | UI_FLAG_YSIZE );
pTextBox->SetFont ( m_pFont );
pTextBox->SetTextAlign ( TEXT_ALIGN_LEFT );
pTextBox->SetNoUpdate ( true );
RegisterControl ( pTextBox );
m_pTextBox = pTextBox;

Add Below:
PHP:
{
	CItemImage* pItemImage = new CItemImage;
	pItemImage->CreateSub ( this, "ITEM_IMAGE_RENDER" );
	pItemImage->CreateSubControl ();
	pItemImage->SetUseRender ( TRUE );
	pItemImage->SetVisibleSingle ( FALSE );
	RegisterControl ( pItemImage );
	m_pItemImageRender = pItemImage;
}


Search:
PHP:
void CBasicVarTextBox::SetBlockMouseTracking ( bool bBlock )
{
	m_bBLOCK_MOUSETRACKING = bBlock;
}

Add Below:
PHP:
//Item Image Render by NjD :: 07 / 08 / 2014
void CBasicVarTextBox::SetItemRender ( SNATIVEID sICONINDEX, const char* szTexture )
{
	SITEM* pItem = GLItemMan::GetInstance().GetItem ( sICONINDEX );
	if ( !pItem ) m_pItemImageRender->SetVisibleSingle ( FALSE );

	if ( m_pItemImageRender )
	{
		m_pItemImageRender->SetItem( sICONINDEX, szTexture );
		m_pItemImageRender->SetVisibleSingle ( TRUE );
	}
}
//Item Image Render by NjD :: 07 / 08 / 2014
void CBasicVarTextBox::ResetItemRender ()
{
	if ( m_pItemImageRender )
	{
		m_pItemImageRender->ResetItem();
		m_pItemImageRender->SetVisibleSingle ( FALSE );
	}
}

BasicVarTextBox.h
Search:
PHP:
class	CBasicTextBox;

Add Below:
PHP:
struct SNATIVEID;
class GLItem;
class CItemImage;

Search:
PHP:
private:
	CUIControl*			m_pSelfDummy;

Add Below:
PHP:
public:
 //Item Image Render by NjD :: 07 / 08 / 2014
CItemImage*	CreateItemImage ( const char* szControl );
CItemImage*	m_pItemImageRender; 
void	SetItemRender ( SNATIVEID sICONINDEX, const char* szTexture );
void	ResetItemRender ();

InnerInterface.cpp
Add Below:
PHP:
void CInnerInterface::ADDITEM_RENDER ( SNATIVEID sICONINDEX, const char* szTexture )
{
	if ( m_bITEM_INFO_EX_DISPLAY_MODE ){
		m_pInfoDisplayEx->SetItemRender ( sICONINDEX, szTexture );
	}else{
		m_pInfoDisplay->SetItemRender ( sICONINDEX, szTexture );
	}
}
void CInnerInterface::RESETITEM_RENDER ()
{
	if ( m_bITEM_INFO_EX_DISPLAY_MODE ){
		m_pInfoDisplayEx->ResetItemRender ();
	}else{
		m_pInfoDisplay->ResetItemRender ();
	}
}

InnerInterface.h
Add Below:
PHP:
public:
void ADDITEM_RENDER ( SNATIVEID sICONINDEX, const char* szTexture );
void RESETITEM_RENDER ();

UIItemInfoLoader.cpp
Add Inside namespace NS_ITEMINFO {

PHP:
void AddItemRender ( SNATIVEID sICONINDEX, const char* szTexture )
{
	CInnerInterface::GetInstance().ADDITEM_RENDER ( sICONINDEX, szTexture );
}
void ResetItemRender ()
{
	CInnerInterface::GetInstance().RESETITEM_RENDER ();	
}

Add at the bottom of void LOAD ( const SITEMCUSTOM &sItemCustom, const BOOL bShopOpen, const BOOL bInMarket, const BOOL bInPrivateMarket, const BOOL bIsWEAR_ITEM, WORD wPosX, WORD wPosY, SNATIVEID sNpcNativeID )

PHP:
if ( sNpcNativeID != sItemCustom.sNativeID ) 
			{
				sNpcNativeID = sItemCustom.sNativeID;
		
				if ( sNpcNativeID.IsValidNativeID() )
				{
					SITEM* pItem = GLItemMan::GetInstance().GetItem ( sNpcNativeID );
					if ( !pItem )
					{
						GASSERT ( 0 && " " );
						return ;
						ResetItemRender ();
					}	
						ResetItemRender ();	
						AddItemRender ( pItem->sBasicOp.sICONID, pItem->GetInventoryFile() );
				}
			}

UISkillInfoLoader.cpp

Search:
PHP:
namespace NS_SKILLINFO
{
	SNATIVEID	m_sNativeIDBack;
	BOOL		m_bNextLevel_BEFORE_FRAME = FALSE;

Add below:
PHP:
void AddItemRender ( SNATIVEID sICONINDEX, const char* szTexture )
{
	CInnerInterface::GetInstance().ADDITEM_RENDER ( sICONINDEX, szTexture );
}

void ResetItemRender ()
{
	CInnerInterface::GetInstance().RESETITEM_RENDER ();	
}

Search:
PHP:
void LOAD ( GLSKILL* const pSkill, SCHARSKILL* const pCharSkill, BOOL bNextLevel )
	{
		CString	strText;

		//	?? ?? ??

		WORD wDispLevel = 0;			
		if ( pCharSkill )	//	?? ??
		{
			wDispLevel = pCharSkill->wLevel + 1;				
		}

Add Below:
PHP:
if ( !pSkill )
		{	
			return ;
			ResetItemRender ();
		}

		AddItemRender ( pSkill->m_sEXT_DATA.sICONINDEX, pSkill->m_sEXT_DATA.strICONFILE.c_str() );

uiinnercfg01.xml

PHP:
<CONTROL Local="Common" Id="ITEM_IMAGE_RENDER">
		<WINDOW_POS X="7" Y="8" W="35" H="35" />
	</CONTROL>

Fix for Price bug:


Since my files have been leaked. Here's another update in your item info
Note: don't copy paste all, just copy what's needed.
You can have the following:
Big font for your item name
inside item icons of a box type item both Gift Box and Random Box
Resistance icon(if you can align then congratulations :) )
Download Link in attachment
Credits: To me
Enjoy.
 

Attachments

You must be registered for see attachments list
Last edited:
Junior Spellweaver
Joined
Jan 2, 2014
Messages
166
Reaction score
29
Thank you and Merry Christmas :thumbup:
Btw how to fix name item position (SOLVED) :lol:
REMOVED
 
Last edited:
Newbie Spellweaver
Joined
Sep 28, 2011
Messages
81
Reaction score
44
Nice Share!! Thank you. janmaru5555
already hit like :thumbup:

janmaru5555 /TS
i add the code correctly.
but the item/skill image appearing in other mouse target info. :?:

does anyone encounter this?
janmaru5555 - Item/Skill Image Render in Info - RaGEZONE Forums
 
Last edited:
Junior Spellweaver
Joined
Jan 2, 2014
Messages
166
Reaction score
29
Nice Share!! Thank you. janmaru5555
already hit like :thumbup:

@janmaru5555 /TS
i add the code correctly.
but the item/skill image appearing in other mouse target info. :?:

does anyone encounter this?
janmaru5555 - Item/Skill Image Render in Info - RaGEZONE Forums

yup same face hahahhaa
 
Last edited:
Experienced Elementalist
Joined
Jun 24, 2011
Messages
263
Reaction score
75
in UIItemInfoLoader.cpp

Search:
PHP:
void	RESET ()
	{
		m_sItemCustomBACK.sNativeID = NATIVEID_NULL ();
		m_bShopOpenBACK = FALSE;
		m_bInMarketBACK = FALSE;
		m_bInPrivateMarketBACK = FALSE;
		m_bIsWEAR_ITEMBACK = FALSE;
	}

Replace:
PHP:
void	RESET ()
	{
		m_sItemCustomBACK.sNativeID = NATIVEID_NULL ();
		m_bShopOpenBACK = FALSE;
		m_bInMarketBACK = FALSE;
		m_bInPrivateMarketBACK = FALSE;
		m_bIsWEAR_ITEMBACK = FALSE;
		ResetItemRender ();
}
 
Newbie Spellweaver
Joined
Sep 22, 2014
Messages
9
Reaction score
0
@janmaru5555 sir how to fix the item character name? because the icon cover the item name. Sorry for my bad english



SIR HOW TO ADJUST THE ITEM NAME INTO THE RIGHT SIDE? BECAUSE THE ICON. COVER THE ITEM NAME LIKE CLASS FIGHTER ROBE +9 AND CAMPUSES/BRAWLER HOW TO ADJUST SIR? THANKS

HERE'S THE SCREENSHOT
janmaru5555 - Item/Skill Image Render in Info - RaGEZONE Forums
 
Newbie Spellweaver
Joined
Apr 5, 2014
Messages
39
Reaction score
1
IDOL How To Fix po This ?
DHv60ux - Item/Skill Image Render in Info - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Experienced Elementalist
Joined
Jun 24, 2011
Messages
263
Reaction score
75
In your UIItemInfoLoader.cpp

if you're familiar with C++ codes
find something like this:

PHP:
strText.Format ( "%s",pItemData->GetName() );
AddTextNoSplit ( strText, NS_UITEXTCOLOR::WHITE );

Add spaces before %s
like this:

PHP:
strText.Format ( "        %s", pItemData->GetName());

you can find it after this codes:

PHP:
void LOAD ( const SITEMCUSTOM &sItemCustom, const BOOL bShopOpen, const BOOL bInMarket, const BOOL bInPrivateMarket, const BOOL bIsWEAR_ITEM, WORD wPosX, WORD wPosY, SNATIVEID sNpcNativeID )
	{	
		if ( m_sItemCustomBACK == sItemCustom && m_bShopOpenBACK == bShopOpen
			&& m_bInMarketBACK == bInMarket && m_bInPrivateMarketBACK == bInPrivateMarket
			&& m_bIsWEAR_ITEMBACK == bIsWEAR_ITEM && m_wPosXBACK == wPosX && m_wPosYBACK == wPosY)	return ;

		m_sItemCustomBACK = sItemCustom;
		m_bShopOpenBACK = bShopOpen;
		m_bInMarketBACK = bInMarket;
		m_bInPrivateMarketBACK = bInPrivateMarket;
		m_bIsWEAR_ITEMBACK = bIsWEAR_ITEM;
		m_wPosXBACK = wPosX;
		m_wPosYBACK = wPosY;
 
Junior Spellweaver
Joined
Jan 2, 2014
Messages
166
Reaction score
29
in UIItemInfoLoader.cpp

Search:
PHP:
void    RESET ()
    {
        m_sItemCustomBACK.sNativeID = NATIVEID_NULL ();
        m_bShopOpenBACK = FALSE;
        m_bInMarketBACK = FALSE;
        m_bInPrivateMarketBACK = FALSE;
        m_bIsWEAR_ITEMBACK = FALSE;
    }

Replace:
PHP:
void    RESET ()
    {
        m_sItemCustomBACK.sNativeID = NATIVEID_NULL ();
        m_bShopOpenBACK = FALSE;
        m_bInMarketBACK = FALSE;
        m_bInPrivateMarketBACK = FALSE;
        m_bIsWEAR_ITEMBACK = FALSE;
        ResetItemRender ();
}

@janmaru5555

ResetItemRender (); << indentifier not found (SOLVED):lol:
REMOVED
 
Last edited:
Newbie Spellweaver
Joined
Apr 5, 2014
Messages
39
Reaction score
1
Can you send me your UIItemInfoLoader.cpp And UIskillInfoLoader.cpp Please cause i can't Fixed It . :mad:
 
Newbie Spellweaver
Joined
Sep 22, 2014
Messages
9
Reaction score
0
[B janmaru5555[/B]

ResetItemRender (); << indentifier not found (SOLVED):lol:
REMOVED

Bro wrong input code. Just add the code

void RESET ()
{
m_sItemCustomBACK.sNativeID = NATIVEID_NULL ();
m_bShopOpenBACK = FALSE;
m_bInMarketBACK = FALSE;
m_bInPrivateMarketBACK = FALSE;
m_bIsWEAR_ITEMBACK = FALSE;
ResetItemRender ();
}

UNDER THE " CInnerInterface::GetInstance().RESETITEM_RENDER (); "

LIKE THIS:
janmaru5555 - Item/Skill Image Render in Info - RaGEZONE Forums


I HOPE IT WILL WORK TO YOU MERRY CHRISTMAS AND OFCOURSE THANKS FOR THE SHARING THIS CODE SIR janmaru5555
 
Newbie Spellweaver
Joined
Apr 5, 2014
Messages
39
Reaction score
1
Nice Share LoooL Solve (y)
 
Last edited:
Joined
Jun 25, 2013
Messages
597
Reaction score
115
Merry Christmas.
This is just only the Image of the Item

Screenshot:
Item
janmaru5555 - Item/Skill Image Render in Info - RaGEZONE Forums


Skill
janmaru5555 - Item/Skill Image Render in Info - RaGEZONE Forums


BasicVarTextBox.cpp
Search:
PHP:
#include "../EngineUIlib/GUInterface/UIDebugSet.h"

Add Below:
PHP:
#include "ItemImage.h"
#include "GLItemMan.h"
#include "GLItem.h"
#include "GLGaeaClient.h"

Search:
PHP:
m_pSelfDummy ( NULL ),

Add below:
PHP:
m_pItemImageRender ( NULL ),

Search:
PHP:
CBasicVarTextBox::~CBasicVarTextBox ()
{
}

Add Below:
PHP:
CItemImage*    CBasicVarTextBox::CreateItemImage ( const char* szControl )
{
    CItemImage* pItemImage = new CItemImage;
    pItemImage->CreateSub ( this, szControl );
    pItemImage->CreateSubControl ();
    pItemImage->SetUseRender ( TRUE );
    pItemImage->SetVisibleSingle ( FALSE );
    RegisterControl ( pItemImage );

    return pItemImage;
}

Search:
PHP:
CBasicTextBox* pTextBox = new CBasicTextBox;
pTextBox->CreateSub ( this, "VAR_TEXT_BOX", UI_FLAG_XSIZE | UI_FLAG_YSIZE );
pTextBox->SetFont ( m_pFont );
pTextBox->SetTextAlign ( TEXT_ALIGN_LEFT );
pTextBox->SetNoUpdate ( true );
RegisterControl ( pTextBox );
m_pTextBox = pTextBox;

Add Below:
PHP:
{
    CItemImage* pItemImage = new CItemImage;
    pItemImage->CreateSub ( this, "ITEM_IMAGE_RENDER" );
    pItemImage->CreateSubControl ();
    pItemImage->SetUseRender ( TRUE );
    pItemImage->SetVisibleSingle ( FALSE );
    RegisterControl ( pItemImage );
    m_pItemImageRender = pItemImage;
}


Search:
PHP:
void CBasicVarTextBox::SetBlockMouseTracking ( bool bBlock )
{
    m_bBLOCK_MOUSETRACKING = bBlock;
}

Add Below:
PHP:
//Item Image Render by NjD :: 07 / 08 / 2014
void CBasicVarTextBox::SetItemRender ( SNATIVEID sICONINDEX, const char* szTexture )
{
    SITEM* pItem = GLItemMan::GetInstance().GetItem ( sICONINDEX );
    if ( !pItem ) m_pItemImageRender->SetVisibleSingle ( FALSE );

    if ( m_pItemImageRender )
    {
        m_pItemImageRender->SetItem( sICONINDEX, szTexture );
        m_pItemImageRender->SetVisibleSingle ( TRUE );
    }
}
//Item Image Render by NjD :: 07 / 08 / 2014
void CBasicVarTextBox::ResetItemRender ()
{
    if ( m_pItemImageRender )
    {
        m_pItemImageRender->ResetItem();
        m_pItemImageRender->SetVisibleSingle ( FALSE );
    }
}

BasicVarTextBox.h
Search:
PHP:
class    CBasicTextBox;

Add Below:
PHP:
struct SNATIVEID;
class GLItem;
class CItemImage;

Search:
PHP:
private:
    CUIControl*            m_pSelfDummy;

Add Below:
PHP:
public:
 //Item Image Render by NjD :: 07 / 08 / 2014
CItemImage*    CreateItemImage ( const char* szControl );
CItemImage*    m_pItemImageRender; 
void    SetItemRender ( SNATIVEID sICONINDEX, const char* szTexture );
void    ResetItemRender ();

InnerInterface.cpp
Add Below:
PHP:
void CInnerInterface::ADDITEM_RENDER ( SNATIVEID sICONINDEX, const char* szTexture )
{
    if ( m_bITEM_INFO_EX_DISPLAY_MODE ){
        m_pInfoDisplayEx->SetItemRender ( sICONINDEX, szTexture );
    }else{
        m_pInfoDisplay->SetItemRender ( sICONINDEX, szTexture );
    }
}
void CInnerInterface::RESETITEM_RENDER ()
{
    if ( m_bITEM_INFO_EX_DISPLAY_MODE ){
        m_pInfoDisplayEx->ResetItemRender ();
    }else{
        m_pInfoDisplay->ResetItemRender ();
    }
}

InnerInterface.h
Add Below:
PHP:
public:
void ADDITEM_RENDER ( SNATIVEID sICONINDEX, const char* szTexture );
void RESETITEM_RENDER ();

UIItemInfoLoader.cpp
Add Inside namespace NS_ITEMINFO {

PHP:
void AddItemRender ( SNATIVEID sICONINDEX, const char* szTexture )
{
    CInnerInterface::GetInstance().ADDITEM_RENDER ( sICONINDEX, szTexture );
}
void ResetItemRender ()
{
    CInnerInterface::GetInstance().RESETITEM_RENDER ();    
}

Add at the bottom of void LOAD ( const SITEMCUSTOM &sItemCustom, const BOOL bShopOpen, const BOOL bInMarket, const BOOL bInPrivateMarket, const BOOL bIsWEAR_ITEM, WORD wPosX, WORD wPosY, SNATIVEID sNpcNativeID )

PHP:
if ( sNpcNativeID != sItemCustom.sNativeID ) 
            {
                sNpcNativeID = sItemCustom.sNativeID;
        
                if ( sNpcNativeID.IsValidNativeID() )
                {
                    SITEM* pItem = GLItemMan::GetInstance().GetItem ( sNpcNativeID );
                    if ( !pItem )
                    {
                        GASSERT ( 0 && " " );
                        return ;
                        ResetItemRender ();
                    }    
                        ResetItemRender ();    
                        AddItemRender ( pItem->sBasicOp.sICONID, pItem->GetInventoryFile() );
                }
            }

UISkillInfoLoader.cpp

Search:
PHP:
namespace NS_SKILLINFO
{
    SNATIVEID    m_sNativeIDBack;
    BOOL        m_bNextLevel_BEFORE_FRAME = FALSE;

Add below:
PHP:
void AddItemRender ( SNATIVEID sICONINDEX, const char* szTexture )
{
    CInnerInterface::GetInstance().ADDITEM_RENDER ( sICONINDEX, szTexture );
}

void ResetItemRender ()
{
    CInnerInterface::GetInstance().RESETITEM_RENDER ();    
}

Search:
PHP:
void LOAD ( GLSKILL* const pSkill, SCHARSKILL* const pCharSkill, BOOL bNextLevel )
    {
        CString    strText;

        //    ?? ?? ??

        WORD wDispLevel = 0;            
        if ( pCharSkill )    //    ?? ??
        {
            wDispLevel = pCharSkill->wLevel + 1;                
        }

Add Below:
PHP:
if ( !pSkill )
        {    
            return ;
            ResetItemRender ();
        }

        AddItemRender ( pSkill->m_sEXT_DATA.sICONINDEX, pSkill->m_sEXT_DATA.strICONFILE.c_str() );

uiinnercfg01.xml

PHP:
<CONTROL Local="Common" Id="ITEM_IMAGE_RENDER">
        <WINDOW_POS X="7" Y="8" W="35" H="35" />
    </CONTROL>

Credits: To me
Enjoy.
can you share your cpp?
 
Back
Top