Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 20:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Rendering icon in inventory

Discussion on Rendering icon in inventory within the Flyff Private Server forum part of the Flyff category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Rendering icon in inventory

Hi Guys/Girls.

Its been an long time since i was active but due to boring problems i am starting again.

The problem i encounter is in the image below



i have changed WndField.cpp so it will show the icon based on Sex.

This is what i have done.

Code:
if( pItemBase && pItemBase->GetTexture() )
		{
			if( ((CItemElem*)pItemBase)->IsFlag( CItemElem::expired ) )
			{
				pItemBase->GetTexture()->Render2(p2DRender, DrawRect.TopLeft()+cpAdd, D3DCOLOR_XRGB( 255, 100, 100 ), sx, sy );
			}
			else
			{
				ItemProp* pItemProp = pItemBase->GetProp();
				CString strIcon = pItemProp->szIcon;
				switch (pItemProp->dwItemKind3)
				{
				case IK3_HELMET:
				case IK3_SUIT:
				case IK3_GAUNTLET:
				case IK3_BOOTS:
					switch (g_pPlayer->GetSex())
					{
					case SEX_MALE:
						m_pTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDevice, MakePath(DIR_ITEM, strIcon), 0xffff00ff);
						m_pTexture->Render2(p2DRender, DrawRect.TopLeft() + cpAdd, D3DCOLOR_ARGB(dwAlpha, 255, 255, 255), sx, sy);
						break;
					case SEX_FEMALE:
						strIcon.MakeLower();
						strIcon.Replace("itm_m", "itm_f");
						m_pTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDevice, MakePath(DIR_ITEM, strIcon), 0xffff00ff);
						m_pTexture->Render2(p2DRender, DrawRect.TopLeft() + cpAdd, D3DCOLOR_ARGB(dwAlpha, 255, 255, 255), sx, sy);
						break;
					}
					break;
				default:
					pItemBase->GetTexture()->Render2(p2DRender, DrawRect.TopLeft() + cpAdd, D3DCOLOR_ARGB(dwAlpha, 255, 255, 255), sx, sy);
					break;
				}
				
			}

			CItemElem *pItemElem = (CItemElem *)pItemBase;
			if( pItemElem->GetProp()->dwPackMax > 1 )		// ¹*À½ ¾ÆÀÌÅÛÀ̳Ä?
			{
				short nItemNum	= pItemElem->m_nItemNum;

				TCHAR szTemp[ 32 ];
				_stprintf( szTemp, "%d", nItemNum );
				CSize size = m_p2DRender->m_pFont->GetTextExtent( szTemp );
				int x = DrawRect.left;	
				int y = DrawRect.top;
				m_p2DRender->TextOut( x + 42 - size.cx, y + 42 - size.cy, szTemp, 0xff0000ff );
				m_p2DRender->TextOut( x + 41 - size.cx, y + 41 - size.cy, szTemp, 0xffb0b0f0 );
			}
		} 
	}
The problem only is there with the suits helmet gaunts and boots.
Any help will be appriciated.

With kind regards.


FIXED
raventh1984 is offline  
Old 06/11/2019, 18:36   #2
Administrator
 
lordsill's Avatar
 
elite*gold: 25736
Join Date: May 2011
Posts: 20,759
Received Thanks: 2,291
#closed
lordsill is offline  
Closed Thread


Similar Threads Similar Threads
[Buying] Buying Beta Tester Icon (Grandmaster Icon (Rammus Icon)
06/22/2016 - League of Legends Trading - 3 Replies
http://avatar.leagueoflegends.com/na/ELO%20PUPPET. png Buying an Account with Icon like This! I can pay up to 150€ Skype: chaoscomputerclub
[Rendering Service]Cheap rendering service ^^
08/16/2010 - elite*gold Trading - 17 Replies
Hello e*pvpers! Today I want to start a rendering service. *+ What is that? If you liked screenshot from a game and there's a character on it,for example you've made screenshot of an Altair from Assassin's Creed murdering someone and you want your character without background,just Altair. That's render. Examples:
Sony Vegas 9.0 Rendering Problem.. :S
08/29/2009 - Off Topic - 0 Replies
Hi alle miteinander ! Ich hab ein Problem beim Rendern von Videos bei Sony Vegas 9.0 ... Wenn ich es rendern will, bleibt der Ladebalken immer bei 0% und die dauer wird immer größer o.ô habe schon viele Formate ausprobiert aber bei allem kommt das gleiche.. Hat jemand vllt. die Lösung? :S Wäre echt geil.. Ich will nämlich mein erstes Video gleich bei Youtube reinstellen.. Gibt natürlich auch ein Thx.. :) MfG dermetinsuchtii



All times are GMT +2. The time now is 20:00.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.