Menu
Login
Language
DE EN FR ES IT CZ
Back

How to fade/hide a interface with a script

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

    Key Killer

    618 Posts

  • #2, by afrlme Monday, 01. May 2017, 14:09 9 years ago Quote
    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

    7290 Posts

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

    Thread Captain

    2346 Posts

  • #4, by afrlme Monday, 01. May 2017, 15:40 9 years ago Quote
    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

    7290 Posts

  • #5, by sebastian Monday, 01. May 2017, 15:42 9 years ago Quote
    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 afrlme Monday, 01. May 2017, 16:01 9 years ago Quote
    Working in 4.2.5 & 5.x just fine (windows). Maybe mac player doesn't like it?

    Imperator

    7290 Posts

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

    Thread Captain

    2346 Posts