Jump to content
mkhzaleh

UISystemForm optimizing

Recommended Posts

hello there!
this small optimizing for 

_evtGameOptionFormMouseDown


normal code will run every functions in the list even if its same previous value
example:

unknown.png?width=710&height=473

so what we do small optimize to call changed values in system options only " this helpful if you are using  hide effects/apps etc"
unknown.png

the modification:

open UISystemForm.cpp and search for :
void CSystemMgr::_evtGameOptionFormMouseDown(CCompent* pSender, int nMsgType, int x, int y, DWORD dwKey)


for example 
unknown.png

we change it to 

unknown.png

now repeat same steps for the rest options  

 

	pGroup = g_stUISystem.cbxHelpMode;
	if (pGroup)
	{
		bool bHelpMode = pGroup->GetActiveIndex() == 1 ? true : false;
		if (g_stUISystem.m_sysProp.m_gameOption.bHelpMode != bHelpMode)
		{
			g_stUISystem.m_sysProp.m_gameOption.bHelpMode = bHelpMode;

			if (!bHelpMode) g_stUIStart.ShowLevelUpHelpButton(bHelpMode);
			g_stUIStart.ShowInfoCenterButton(bHelpMode);

			::WritePrivateProfileString("gameOption", "helpMode", bHelpMode ? "1" : "0", "./user/system.ini");
		}

	}

 

  • Like 6

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...