Jump to content

Skill slot size


Go to solution Solved by sfavi,

Recommended Posts

Hello,
Does anyone know how to modify the position (x, y) of the skill icons? I am modifying the skill window, and my new slots have a size of 38x38.

To help you understand better what I mean, I am attaching a screenshot.

Thank you all.

Screenshot

 

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Active Member
1 hour ago, sfavi said:

Hello,
Does anyone know how to modify the position (x, y) of the skill icons? I am modifying the skill window, and my new slots have a size of 38x38.

To help you understand better what I mean, I am attaching a screenshot.

Thank you all.

Screenshot

 

Hello sorry if i don't give u right answer but from what i understand u want to change(Resize) the skill icons and not to Move,relocate them correct me if i'm wrong but if is the first version i think u first should try to change them
u can find all the required texture.dd and .sub files to modify them
tip u have to decompile etc.eix/epk
Good luck and hope i helped u 🙃 

Link to comment
Share on other sites

  • Solution

Hi, actually I just wanted to move the skill icons (if you look at the screenshot, you can easily understand).

Anyway, I have already solved it.

For those who want to know:

on PythonSlotWindow.cpp, function  on the function --> void CSlotWindow::OnRender()

I added:

 

if (rSlot.pInstance)
		{
			int xOffset = 0;
			int yOffset = 0;
			
			
			if (rSlot.ixCellSize == 38 && rSlot.iyCellSize == 38) 
			{
				xOffset = (rSlot.ixCellSize - 32) / 2; 
				yOffset = (rSlot.iyCellSize - 32) / 2;
			}

			rSlot.pInstance->SetPosition(m_rect.left + rSlot.ixPosition + xOffset, m_rect.top + rSlot.iyPosition + yOffset);
			rSlot.pInstance->Render();
		}

PS Obviously, "CoverButtonSlot" must be adjusted

 

 

Edited by sfavi
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.