Adding an Image to str.Format

12/22/2015 14:23 raventh1984#1
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

[Only registered and activated users can see links. Click Here To Register...]

Is this even possible? or do i need to change some more code?
12/22/2015 15:32 Мentus#2
PHP Code:
CTexture::Render(2dRenderposition
12/22/2015 15:43 alfredico#3
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));
12/22/2015 16:00 raventh1984#4
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);
    }

12/22/2015 18:36 Rhyder`#5
what if you put the icon in this function?
Code:
void CToolTip::Paint(C2DRender* p2DRender)

-> CItemBase* pItemBase; XDDDD
12/22/2015 19:03 raventh1984#6
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