Jump to content

How can I remove Help window in client


Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

root/uiGameButton.py:

//Search:

		if 0 == player.GetPlayTime():
			helpButton.Show()
		else:
			helpButton.Hide()

//Replace with:

		import constInfo
		if (constInfo.TableFunc(1)) == "Enable":
			if player.GetPlayTime() == (constInfo.TableFunc(2)):
				helpButton.Show()
			else:
				helpButton.Hide()	
		elif (constInfo.TableFunc(1)) == "Disable":
			helpButton.Hide()

root/constInfo.py:

def TableFunc(o):
	i = {
		1	:	"Disable", # Enable or Disable for check function
		2	:	0} # The time for check if u have time 0 show you button
		
	if i.has_key(o):
		return i[o]

 

I hope this is what you wanted, or did not understand well. My English is shit, sorry.

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.