Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Interface issues

  • #1, by darren-beckett 10 years ago Zitieren
    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?
  • #2, by afrlme 10 years ago Zitieren
    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

  • #3, by Alex 10 years ago Zitieren
    "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.
  • #4, by sebastian 10 years ago Zitieren
    "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" ?

  • #5, by Alex 10 years ago Zitieren
    with the same action part, just select Show instead of Hide wink
  • #6, by sebastian 10 years ago Zitieren
    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

  • #7, by Alex 10 years ago Zitieren
    makes sense to me, I'll rename the action part
  • #8, by sebastian 10 years ago Zitieren
    makes sense to me, I'll rename the action part

    https://cdn.meme.am/cache/instances/folder433/61347433.jpg
  • #9, by darren-beckett 10 years ago Zitieren
    Excellent