Interface issues

  • #1, z darren-beckettThursday, 09. March 2017, 18:05 hodinky 8 years ago
    I've had issues with trying to show an interface, I tracked it down to the 'Hide All Interfaces' action used in the startup action.

    It seems that using the 'Hide All Interfaces' action would stop me being able to show an interface, b ut by replacing the action to multiple 'Hide Interface' actions resolved the issue.

    Do you know how the hide 'All' interfaces action is different?

    Čestný člen

    384 Posts


  • #2, z afrlmeThursday, 09. March 2017, 18:32 hodinky 8 years ago
    I think "hide all interfaces" action has been buggy for a while. I used it once & noticed it didn't work correctly - forget how & forgot all about it in general until you mentioned it - so I ended up manually hiding interfaces by class or with Lua script instead.
    -- iterate through all game interfaces & hide them
    for i = 1, #(game.Interfaces) do
     game.Interfaces[i].InterfaceVisible = false
    end

    or...
    -- iterate through all interfaces belonging to active character & hide them
    for i = 1, #(game.CurrentCharacter.CharacterInterfaces) do
     game.CurrentCharacter.CharacterInterfaces[i].InterfaceVisible = false
    end

    Imperátor

    7285 Posts

  • #3, z AlexThursday, 09. March 2017, 21:54 hodinky 8 years ago
    "hide all interfaces" always hides all interfaces, independent of the individual interface visibility. Internally it sets the field GameHideInterfaces in the data structure, which is also set when a cutscene is started.

    "hide all interfaces" is not the same as individually hiding interfaces.

    Čestný člen

    378 Posts

  • #4, z sebastianThursday, 09. March 2017, 23:24 hodinky 8 years ago
    "hide all interfaces" always hides all interfaces, independent of the individual interface visibility. Internally it sets the field GameHideInterfaces in the data structure, which is also set when a cutscene is started.

    "hide all interfaces" is not the same as individually hiding interfaces.
    how do you unhide them again after you did "hide all interfaces" ?

    Kapitán

    2346 Posts

  • #5, z AlexFriday, 10. March 2017, 00:43 hodinky 8 years ago
    with the same action part, just select Show instead of Hide wink

    Čestný člen

    378 Posts

  • #6, z sebastianFriday, 10. March 2017, 13:31 hodinky 8 years ago
    with the same action part, just select Show instead of Hide wink
    ah okay. My bad - I was misinterpreting something here^^

    I would suggest to rename this "hide/show all interfaces" to "diasable/enable all interfaces" to make it more clear what the difference is between the normal show/hiding of an individual interface wink

    Kapitán

    2346 Posts

  • #7, z AlexFriday, 10. March 2017, 13:37 hodinky 8 years ago
    makes sense to me, I'll rename the action part

    Čestný člen

    378 Posts

  • #8, z sebastianFriday, 10. March 2017, 16:37 hodinky 8 years ago
    makes sense to me, I'll rename the action part

    https://cdn.meme.am/cache/instances/folder433/61347433.jpg

    Kapitán

    2346 Posts

  • #9, z darren-beckettFriday, 10. March 2017, 17:25 hodinky 8 years ago
    Excellent

    Čestný člen

    384 Posts