• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Misaligned Item Grade

Status
Not open for further replies.
Newbie Spellweaver
Joined
Mar 1, 2021
Messages
12
Reaction score
0
Hi Ragezone,

Good Day.

May I request your assistance with my issue. Item grade logo is misaligned on all items. I already tried the item_edge but still show as misaligned.

#ifdef __ITEM_GRADE_EDGE
if (pItemElem->GetProp()->dwItemGrade == (DWORD)200)
{
CTexture* EdgeTexture;
EdgeTexture = m_textureMng.AddTexture(D3DDEVICE, MakePath(DIR_ITEM, "Item_EdgeUnique.dds"), 0xffff00ff);
EdgeTexture->Render(p2DRender, CPoint(x * 35, (y * 35) + 4), 255);
}
else if (pItemElem->GetProp()->dwItemGrade == (DWORD)300)
{
CTexture* EdgeTexture;
EdgeTexture = m_textureMng.AddTexture(D3DDEVICE, MakePath(DIR_ITEM, "Item_EdgeUltimate.dds"), 0xffff00ff);
EdgeTexture->Render(p2DRender, CPoint(x * 35, (y * 35) + 4), 255);
}
else if (pItemElem->GetProp()->dwItemGrade == (DWORD)400)
{
CTexture* EdgeTexture;
EdgeTexture = m_textureMng.AddTexture(D3DDEVICE, MakePath(DIR_ITEM, "Item_EdgeBaruna.dds"), 0xffff00ff);
EdgeTexture->Render(p2DRender, CPoint(x * 35, (y * 35) + 4), 255);
}
#endif //__ITEM_GRADE_EDGE

misaligned edge.PNG - Misaligned Item Grade - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
Hi Ragezone,

Good Day.

May I request your assistance with my issue. Item grade logo is misaligned on all items. I already tried the item_edge but still show as misaligned.

#ifdef __ITEM_GRADE_EDGE
if (pItemElem->GetProp()->dwItemGrade == (DWORD)200)
{
CTexture* EdgeTexture;
EdgeTexture = m_textureMng.AddTexture(D3DDEVICE, MakePath(DIR_ITEM, "Item_EdgeUnique.dds"), 0xffff00ff);
EdgeTexture->Render(p2DRender, CPoint(x * 35, (y * 35) + 4), 255);
}
else if (pItemElem->GetProp()->dwItemGrade == (DWORD)300)
{
CTexture* EdgeTexture;
EdgeTexture = m_textureMng.AddTexture(D3DDEVICE, MakePath(DIR_ITEM, "Item_EdgeUltimate.dds"), 0xffff00ff);
EdgeTexture->Render(p2DRender, CPoint(x * 35, (y * 35) + 4), 255);
}
else if (pItemElem->GetProp()->dwItemGrade == (DWORD)400)
{
CTexture* EdgeTexture;
EdgeTexture = m_textureMng.AddTexture(D3DDEVICE, MakePath(DIR_ITEM, "Item_EdgeBaruna.dds"), 0xffff00ff);
EdgeTexture->Render(p2DRender, CPoint(x * 35, (y * 35) + 4), 255);
}
#endif //__ITEM_GRADE_EDGE

View attachment 169999

__ITEM_GRADE_EDGE has nothing to do with the issue your having.
 
Newbie Spellweaver
Joined
Mar 1, 2021
Messages
12
Reaction score
0
Hi Ketchup,

Ok, so I guess I was wrong. What controls the position of the item_grade edge and where can I find it?
 
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
Hi Ketchup,

Ok, so I guess I was wrong. What controls the position of the item_grade edge and where can I find it?

Again: __ITEM_GRADE_EDGE has nothing to do with the issue.

The issue is most likely in tooltip and it needs to be made wider but this issue has nothing to do with said system.
 
Newbie Spellweaver
Joined
Mar 1, 2021
Messages
12
Reaction score
0
Hi Ketchup,

Apologies, I thought the icon is called item_grade edge.
 
Status
Not open for further replies.
Back
Top