• 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.

Buff Icon Space

Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
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