How to fade/hide a interface with a script

  • #1, by marvelMonday, 01. May 2017, 13:58 8 years ago
    Does anybody have a script that fades and finally hides a specific interface? smile

    Key Killer

    599 Posts


  • #2, by afrlmeMonday, 01. May 2017, 14:09 8 years ago
    execute a script action part >
    Interfaces["example"]:to(1000, {InterfaceVisibility = 0})

    pause for 1000ms (action part)
    execute a script action part >
    Interfaces["example"].InterfaceVisible = false


    Quick note: you will have to use Lua to unhide it & probably fade interface visibility back up to 100% to make it visible - as needed.

    P.S: hiding specific interfaces is only possible with Lua script. The action part method only allows you to hide/show all interfaces belonging to the specified interface class.

    Imperator

    7285 Posts

  • #3, by sebastianMonday, 01. May 2017, 15:38 8 years ago
    It has to be
    Interfaces["example"]:to(1000, {VInterfaceVisibility = 0})

    Thread Captain

    2346 Posts

  • #4, by afrlmeMonday, 01. May 2017, 15:40 8 years ago
    It has to be
    Interfaces["example"]:to(1000, {VInterfaceVisibility = 0})
    What you talking about mate? I'm using shorthand not longhand. Even "Visibility" will work on its own.

    Imperator

    7285 Posts

  • #5, by sebastianMonday, 01. May 2017, 15:42 8 years ago
    Interfaces["example"]:to(1000, {InterfaceVisibility = 0})

    will not work because the "V" is missing . Just used it right now. Without the V nothing happens ...

    Thread Captain

    2346 Posts

  • #6, by afrlmeMonday, 01. May 2017, 16:01 8 years ago
    Working in 4.2.5 & 5.x just fine (windows). Maybe mac player doesn't like it?

    Imperator

    7285 Posts

  • #7, by sebastianMonday, 01. May 2017, 16:20 8 years ago
    Working in 4.2.5 & 5.x just fine (windows). Maybe mac player doesn't like it?
    could be...

    Thread Captain

    2346 Posts