|
You last visited: Today at 08:01
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.
12/22/2015, 14:23
|
#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?
|
|
|
12/22/2015, 15:32
|
#2
|
elite*gold: 30
Join Date: Sep 2012
Posts: 426
Received Thanks: 1,021
|
PHP Code:
CTexture::Render(2dRender, position)
|
|
|
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));
|
|
|
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(CItemElem* pItemElem, CEditString* pEdit) { CItemBase* pItemBase; C2DRender* p2DRender; int x = 10; int y = 5;
if (pItemElem->nGetGrade() != 0) { CString str; int nDst, nAdj; str.Format("\n%s", prj.GetText(TID_PRIMARY_STAT)); pEdit->AddString(str, dwItemColor[g_Option.m_nToolTipText].dwName5, ESSTY_BOLD);
ItemGrade::GetInstance()->GetPrimaryStat(pItemElem->GetPrimaryStat(), &nDst, &nAdj);
CTexture* m_pPrimaryStatTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDevice, MakePath(DIR_ICON, "primary.png"), 0xffff00ff); m_pPrimaryStatTexture->Render(p2DRender, CPoint(x, y));
str.Format("\n%s%s %c%d","--", FindDstString(nDst), (nAdj >= 0 ? '+' : '-'), ::abs(nAdj)); DWORD dwStyle = 0; pEdit->AddString(str, dwItemColor[g_Option.m_nToolTipText].dwName2, dwStyle); } }
|
|
|
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
|
|
|
12/22/2015, 19:03
|
#6
|
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
|
Quote:
Originally Posted by jayjei14
-> CItemBase* pItemBase; XDDDD
|
That one is under development. Was part of an other code i had first.
atm its no use haha
|
|
|
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.
|
|