Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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