Inventory Problem|Hide Inventory button when inventory is open

  • #1, by irinahuw_Sunday, 03. June 2018, 22:01 6 years ago
    Hello!

    I have encountered a problem concerning the inventory.
    I attached 2 screenshots of my current inventory.

    i do not know how to solve the following:

    i want to hide the inventory button which looks like a closed bag (screenshot) when the inventory is open (brown omelette in screenshot).
    my current solution looks like this:
    when the inventory is opened, the image of the omelette appears right over the closed bag image and fully covers the closed bag image, so as if the closed bag turned into an opened bag. but i think this is a bad solution, because then there are 2 button things overlapping. i tried to play around with conditions but i always landed in a dead end and condition chaos roll

    kind regards

    irina


    Newbie

    49 Posts


  • #2, by afrlmeMonday, 04. June 2018, 00:01 6 years ago
    Hide the interface.

    Interfaces["inventar off"].Visible = false

    You can unhide with the same line of code, but change false to true.

    Imperator

    7278 Posts

  • #3, by irinahuw_Monday, 04. June 2018, 07:46 6 years ago
    Hide the interface.

    Interfaces["inventar off"].Visible = false

    You can unhide with the same line of code, but change false to true.

    That was easy, thank you very much!

    Newbie

    49 Posts