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!

Buff Icon Space

Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,831
Price: 0

Adds spacing between buff icons.

WndField.cpp
Code:
	void CWndBuffStatus::SetBuffIconInfo()
	{
		BUFFICON_INFO buffinfo;
		int x = 0;
		int y = 0;
		int i;
		CRect rect;
		rect = GetWindowRect(TRUE);

		if (!m_pBuffIconInfo.empty())
			m_pBuffIconInfo.clear();

#ifdef __BUFF_ICON_SPACE
		if (m_BuffIconViewOpt == 0)
		{
			for (i = 0; i < MAX_SKILLBUFF_COUNT; i++)
			{
				buffinfo.pt = CPoint(x, y);
				m_pBuffIconInfo.push_back(buffinfo);
				x += 38;
				if (((i + 1) % 7) == 0)
				{
					x = 0;
					y += 38;
				}
			}
			//widht 238, heigth = 68
			rect.bottom = 152 + rect.top;
			rect.right = 266 + rect.left;
		}
		else if (m_BuffIconViewOpt == 1)
		{
			for (i = 0; i < MAX_SKILLBUFF_COUNT; i++)
			{
				buffinfo.pt = CPoint(x, y);
				m_pBuffIconInfo.push_back(buffinfo);
				y += 38;
				if (((i + 1) % 7) == 0)
				{
					y = 0;
					x += 38;
				}
			}
			//widht 54, heigth = 238
			rect.bottom = 266 + rect.top;
			rect.right = 152 + rect.left;
		}
#else
		if (m_BuffIconViewOpt == 0)
		{
			for (i = 0; i < MAX_SKILLBUFF_COUNT; i++)
			{
				buffinfo.pt = CPoint(x, y);
				m_pBuffIconInfo.push_back(buffinfo);
				x += 34;
				if (((i + 1) % 7) == 0)
				{
					x = 0;
					y += 34;
				}
			}
			//widht 238, heigth = 68
			rect.bottom = 136 + rect.top;
			rect.right = 238 + rect.left;
		}
		else if (m_BuffIconViewOpt == 1)
		{
			for (i = 0; i<MAX_SKILLBUFF_COUNT; i++)
			{
				buffinfo.pt = CPoint(x, y);
				m_pBuffIconInfo.push_back(buffinfo);
				y += 34;
				if (((i + 1) % 7) == 0)
				{
					y = 0;
					x += 34;
				}
			}
			//widht 54, heigth = 238
			rect.bottom = 238 + rect.top;
			rect.right = 136 + rect.left;
		}
#endif

		SetWndRect(rect);
		AdjustWndBase();
	}

You'll need to add the option yourself or perhaps someone will post it below.

And define...
Code:
#define   __BUFF_ICON_SPACE
 
Back
Top