How to fade/hide a interface with a script

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

    Zabiják klíčů

    599 Posts


  • #2, z afrlmeMonday, 01. May 2017, 14:09 hodinky 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.

    Imperátor

    7285 Posts

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

    Kapitán

    2346 Posts

  • #4, z afrlmeMonday, 01. May 2017, 15:40 hodinky 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.

    Imperátor

    7285 Posts

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

    Kapitán

    2346 Posts

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

    Imperátor

    7285 Posts

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

    Kapitán

    2346 Posts