Jump to content
mkhzaleh

Close Forms while walking toggle

Recommended Posts

this small tick to keep forms opened if character moving, 

 

open UIGlobalVar.cpp
search for :
void CUIInterface::MainChaMove()
add your toggle option there example :

 


void CUIInterface::MainChaMove()
{
	if (!g_stUISystem.m_sysProp.m_gameOption.IsCloseForms) return;	
	for (allmgr::iterator it = all.begin(); it != all.end(); it++)
		(*it)->CloseForm();
}

 :build client and done:

" use on your own risk ," 

default code:
28052f01aed34673c964ea1340099540.gif

toggle code:
81b8218aa92c99177e495779376372ae.gif?wid


 

Share this post


Link to post
Share on other sites
On 9/25/2021 at 11:47 PM, mkhzaleh said:

this small tick to keep forms opened if character moving, 

 

open UIGlobalVar.cpp
search for :
void CUIInterface::MainChaMove()
add your toggle option there example :

 



void CUIInterface::MainChaMove()
{
	if (!g_stUISystem.m_sysProp.m_gameOption.IsCloseForms) return;	
	for (allmgr::iterator it = all.begin(); it != all.end(); it++)
		(*it)->CloseForm();
}

 :build client and done:

" use on your own risk ," 

default code:
28052f01aed34673c964ea1340099540.gif

toggle code:
81b8218aa92c99177e495779376372ae.gif?wid


 

 

What if you want this just on HelpInfo GUIs?

Share this post


Link to post
Share on other sites
43 minutes ago, cpworkerz said:

 

What if you want this just on HelpInfo GUIs?

(*it) its pointer for form itself so you can get form name and compare to which one you want etc

(*it)->_FindForm("frmname")

Edited by mkhzaleh

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