Active Member ReFresh 2340 Posted May 20, 2016 Active Member Share Posted May 20, 2016 Hi guys, can somebody tell me, how can I hide status and skill buttons when I get max status points and all skills P? So when I don't have enough points to spend, skill or status buttons will be hidden. Thanks for your answers! Sincerely, ReFresh I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted May 20, 2016 Author Active Member Share Posted May 20, 2016 1 hour ago, arves100 said: You are saying about the all interface or just the + buttons? Only + buttons. I'll be always helpful! Link to comment Share on other sites More sharing options...
z35 170 Posted May 20, 2016 Share Posted May 20, 2016 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. Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted May 20, 2016 Author Active Member Share Posted May 20, 2016 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 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 More sharing options...
Active Member ReFresh 2340 Posted May 22, 2016 Author Active Member Share Posted May 22, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted May 23, 2016 Author Active Member Share Posted May 23, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted May 25, 2016 Author Active Member Share Posted May 25, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted May 28, 2016 Author Active Member Share Posted May 28, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted June 1, 2016 Author Active Member Share Posted June 1, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted June 11, 2016 Author Active Member Share Posted June 11, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted June 13, 2016 Author Active Member Share Posted June 13, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted June 15, 2016 Author Active Member Share Posted June 15, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted June 20, 2016 Author Active Member Share Posted June 20, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted June 22, 2016 Author Active Member Share Posted June 22, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted June 24, 2016 Author Active Member Share Posted June 24, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted July 3, 2016 Author Active Member Share Posted July 3, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
alberto2010 142 Posted July 3, 2016 Share Posted July 3, 2016 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 More sharing options...
Active Member ReFresh 2340 Posted July 3, 2016 Author Active Member Share Posted July 3, 2016 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 More sharing options...
Former Staff flygun 304 Posted July 3, 2016 Former Staff Share Posted July 3, 2016 root/uiGameButton.py import player if player.GetLevel()==100: skillPlusButton.Hide() else: if self.__IsSkillStat(): skillPlusButton.Show() else: skillPlusButton.Hide() 1 Link to comment Share on other sites More sharing options...
VegaS 1087 Posted July 4, 2016 Share Posted July 4, 2016 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] 1 4 Link to comment Share on other sites More sharing options...
alberto2010 142 Posted July 4, 2016 Share Posted July 4, 2016 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. 1 Link to comment Share on other sites More sharing options...
Marcos_tlc 5 Posted August 9, 2018 Share Posted August 9, 2018 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now