Interface issues

  • #1, by darren-beckettThursday, 09. March 2017, 18:05 3 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?

    Great Poster

    351 Posts


  • #2, by afrlmeThursday, 09. March 2017, 18:32 3 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
    1
    2
    3
    4

    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
    1
    2
    3
    4

    Imperator

    6842 Posts

  • #3, by AlexThursday, 09. March 2017, 21:54 3 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.

    Great Poster

    378 Posts

  • #4, by sebastianThursday, 09. March 2017, 23:24 3 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" ?

    Thread Captain

    2337 Posts

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

    Great Poster

    378 Posts

  • #6, by sebastianFriday, 10. March 2017, 13:31 3 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

    Thread Captain

    2337 Posts

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

    Great Poster

    378 Posts

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

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

    Thread Captain

    2337 Posts

  • #9, by darren-beckettFriday, 10. March 2017, 17:25 3 years ago
    Excellent

    Great Poster

    351 Posts

Write post