Jump to content

visibilityCondition in the XML Menu


Recommended Posts

I am trying to get the visibilityCondition tag to work in the Witcher 3 menu. Nothing I am doing is affecting it, and I'm going nuts, lol. I have put Log code and the variables ARE updating. I want 5 menu options to appear when enableCustomDmg is true. I have tried the following:

<Var id="enableCustomDmg" displayName="gmConfig_enableCustomDmg" displayType="TOGGLE"/>

This is the option itself. ^

visibilityCondition="enableCustomDmg"/>
visibilityCondition="gmConfig.enableCustomDmg"/>
visibilityCondition="gmConfig().enableCustomDmg"/>
visibilityCondition="gmConfig().enableCustomDmgGet()"/>

gmConfig().enableCustomDmgGet() is the function I use in game to get the value of the variable from the settings. I have added " == true", "= true", and "== 'true'" to them as well. I attached both my config.ws and my XML (I had to rename the .ws to .xml to upload it). PLEASE HELP!

Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...