Jump to content
  • 0

Hide button


ReFresh

Question

21 answers to this question

Recommended Posts

  • 0
  • Silver
13 hours ago, z35 said:

easy, just change the max level of getting stat points (the normal max level is 90, you maybe want to go beyond that).

same applies to the skills, edit the max level of skill points or make a quest to remove all the remaining points.

Good idea :D Thank you. But how can I hide skill button when skills are on P? 

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • 0

Do this:

root/constInfo.py Put this:

Spoiler
DISABLE_SKILL_BUTTON = 1

 

root/uiGameButton.py  Search this:

Spoiler
if self.__IsSkillStat():
			skillPlusButton.Show()
		else:
			skillPlusButton.Hide()

Replace with:

Spoiler
import constInfo
		if constInfo.DISABLE_SKILL_BUTTON == 1:
			skillPlusButton.Hide()
		else:
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()

 

[This tutorial was made by VegaS on other forum]

Link to comment
Share on other sites

  • 0
  • Silver
14 minutes ago, alberto2010 said:

Do this:

root/constInfo.py Put this:

  Hide contents

DISABLE_SKILL_BUTTON = 1

 

root/uiGameButton.py  Search this:

  Hide contents

if self.__IsSkillStat():
			skillPlusButton.Show()
		else:
			skillPlusButton.Hide()

Replace with:

  Hide contents


import constInfo
		if constInfo.DISABLE_SKILL_BUTTON == 1:
			skillPlusButton.Hide()
		else:
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()

 

 

Thank you. But I want to hide this button when player get lvl  for example 100.

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • 0
On 03.07.2016 at 6:10 PM, alberto2010 said:

Do this:

root/constInfo.py Put this:

  Reveal hidden contents

DISABLE_SKILL_BUTTON = 1

 

root/uiGameButton.py  Search this:

  Reveal hidden contents

if self.__IsSkillStat():
			skillPlusButton.Show()
		else:
			skillPlusButton.Hide()

Replace with:

  Reveal hidden contents


import constInfo
		if constInfo.DISABLE_SKILL_BUTTON == 1:
			skillPlusButton.Hide()
		else:
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()

 

 

You copied my message from another forum..ohh gg xD

There is much better:

		import constInfo
		if (constInfo.TableSkillButton(1)) == "Enable":
			if player.GetStatus(player.LEVEL) < (constInfo.TableSkillButton(2)) and self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()
		elif (constInfo.TableSkillButton(1)) == "Disable":
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()	

 

def TableSkillButton(o):
	i = {
		1	:	"Enable", # Enable for active function , Disable for dezactivate.
		2	:	100} # The maximum level to which button will be displayed
		
	if i.has_key(o):
		return i[o]

 

 

 

  • Love 4
Link to comment
Share on other sites

  • 0

sorry VegaS , forgot to mention cuz i was in a hurry... i'll edit .

I didn't said this is my own tutorial or something , i just wanted to help others.

11 hours ago, VegaS said:

You copied my message from another forum..ohh gg xD

There is much better:

		import constInfo
		if (constInfo.TableSkillButton(1)) == "Enable":
			if player.GetStatus(player.LEVEL) < (constInfo.TableSkillButton(2)) and self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()
		elif (constInfo.TableSkillButton(1)) == "Disable":
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()	

 

def TableSkillButton(o):
	i = {
		1	:	"Enable", # Enable for active function , Disable for dezactivate.
		2	:	100} # The maximum level to which button will be displayed
		
	if i.has_key(o):
		return i[o]

 

 

 

Yea VegaS is true , is your post from other forum . I was in hurry when i wrote. I'm sorry again , now is edited.

  • Love 1
Link to comment
Share on other sites

  • 0
On 7/3/2016 at 9:33 PM, VegaS said:

You copied my message from another forum..ohh gg xD

There is much better:

		import constInfo
		if (constInfo.TableSkillButton(1)) == "Enable":
			if player.GetStatus(player.LEVEL) < (constInfo.TableSkillButton(2)) and self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()
		elif (constInfo.TableSkillButton(1)) == "Disable":
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()	

 

def TableSkillButton(o):
	i = {
		1	:	"Enable", # Enable for active function , Disable for dezactivate.
		2	:	100} # The maximum level to which button will be displayed
		
	if i.has_key(o):
		return i[o]

Help Plies:

:invalid syntax (uigamebutton.py, line 119)

    def TableSkillButton(o):
        i = {
            1    :    "Enable", # Enable for active function , Disable for dezactivate.
            2    :    100} # The maximum level to which button will be displayed
            
        if i.has_key(o):
            return i[o]

Line 119 is:            2    :    100} # The maximum level to which button will be displayed

Thank you

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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