How to fade/hide a interface with a script

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

    Key Killer

    598 Posts


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

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


    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

    6817 Posts

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

    Thread Captain

    2336 Posts

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

    Imperator

    6817 Posts

  • #5, by sebastianMonday, 01. May 2017, 15:42 3 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

    2336 Posts

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

    Imperator

    6817 Posts

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

    Thread Captain

    2336 Posts

Write post