Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 08:01

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

Advertisement



Adding an Image to str.Format

Discussion on Adding an Image to str.Format within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Adding an Image to str.Format

Hey elitepvpers,

I am trying to put in small image in front of an DST parameter.

Example
str.Format("\n%s %c%d", FindDstString(nDst), (nAdj >= 0 ? '+' : '-'), ::abs(nAdj));

Above will output STA+21

Now i whant some sort of an list image that you have in html.

Code:
CTexture* m_pPrimaryStatTexture;

		m_pPrimaryStatTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDevice, MakePath(DIR_ICON, "primary.png"), 0xffff00ff);
		str.Format("\n%s%s %c%d", m_pPrimaryStatTexture, FindDstString(nDst), (nAdj >= 0 ? '+' : '-'), ::abs(nAdj));
Above code will output



Is this even possible? or do i need to change some more code?
raventh1984 is offline  
Old 12/22/2015, 15:32   #2
 
Мentus's Avatar
 
elite*gold: 30
Join Date: Sep 2012
Posts: 426
Received Thanks: 1,021
PHP Code:
CTexture::Render(2dRenderposition
Мentus is offline  
Old 12/22/2015, 15:43   #3
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
You can't load an image using a string as output.
CTexture* m_pPrimaryStatTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDev ice, MakePath(DIR_ICON, "primary.png"), 0xffff00ff);
m_pPrimaryStatTexture->Render(p2DRender, CPoint(x, y));
alfredico is offline  
Old 12/22/2015, 16:00   #4
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Thnx.

But neuz is crashing on this error 2Drender.cpp
m_pd3dDevice->SetSamplerState( 0, D3DSAMP_ADDRESSU, 1 );

Code
PHP Code:
void CWndMgr::GetPrimaryStat(CItemElempItemElemCEditStringpEdit)
{
    
CItemBasepItemBase;
    
C2DRenderp2DRender;
    
int x 10;
    
int y 5;

    if (
pItemElem->nGetGrade() != 0)
    {
        
CString str;
        
int nDstnAdj;
        
str.Format("\n%s"prj.GetText(TID_PRIMARY_STAT));
        
pEdit->AddString(strdwItemColor[g_Option.m_nToolTipText].dwName5ESSTY_BOLD);

        
ItemGrade::GetInstance()->GetPrimaryStat(pItemElem->GetPrimaryStat(), &nDst, &nAdj);

        
CTexturem_pPrimaryStatTexture CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDeviceMakePath(DIR_ICON"primary.png"), 0xffff00ff);
        
m_pPrimaryStatTexture->Render(p2DRenderCPoint(xy));

        
str.Format("\n%s%s %c%d","--"FindDstString(nDst), (nAdj >= '+' '-'), ::abs(nAdj));
        
DWORD dwStyle 0;
        
        
pEdit->AddString(strdwItemColor[g_Option.m_nToolTipText].dwName2dwStyle);
    }

raventh1984 is offline  
Old 12/22/2015, 18:36   #5
 
elite*gold: 115
Join Date: Jan 2012
Posts: 1,156
Received Thanks: 894
what if you put the icon in this function?
Code:
void CToolTip::Paint(C2DRender* p2DRender)

-> CItemBase* pItemBase; XDDDD
Rhyder` is offline  
Old 12/22/2015, 19:03   #6
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Quote:
Originally Posted by jayjei14 View Post
-> CItemBase* pItemBase; XDDDD
That one is under development. Was part of an other code i had first.
atm its no use haha
raventh1984 is offline  
Reply


Similar Threads Similar Threads
Dibiase - New Sig/Full Size Image - [GIANT IMAGE WARNING]
10/26/2011 - General Art - 1 Replies
WARNING - SOME OF THESE IMAGES ARE MASSIVE(OVER 2000 PIXELS WIDE/1000 PIXELS HIGH). This is my latest signature collection, the full size images show the detail. Full-Size: http://img339.imageshack.us/img339/971/dibiaseful l.png Super-Sized:



All times are GMT +1. The time now is 08:01.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.