











screen inventoryScreen(howToLeave="return" ):
    zorder 100
    modal True
    add "images/black_background.png"
    add "gui/inventory/inventory_screen.png"


    add "gui/inventory/inventory_money.png"
    vbox:
        xpos 1250
        ypos 750
        vbox:
            text "{font=images/fonts/font_cash.ttf}{size=40}{color=#3e9c35}$[Main_Character.money]"

    fixed:
        style_prefix "inventory"
        style_suffix "main_frame"
        grid Inventory.grid["width"] Inventory.grid["height"]:
            style_suffix "slots_grid"




            for index, item in enumerate( Inventory.getPageItems() ):


                fixed:
                    style_suffix "slot"




                    if Inventory.isEquipped(index):
                        add InventorySettings.equippedHighlightSlot align (0.5, 0.5)

















                    imagebutton:
                        action Function( Inventory.selectToggle , index )
                        align (0.5, 0.5)
                        idle item.image
                        hover item.hover
                        selected Inventory.isSelected(index)
                        hover_sound "sound_effects/buttons/misc_hover_4.mp3"
                        activate_sound "sound_effects/buttons/misc_activate_6.mp3"












































            for x in range( Inventory.getEmptyCells() ):



                button:

                    style_suffix "slot_empty"


                    action Function( Inventory.unselect )







        frame:

            style_prefix "inventory_side_menu"
            style_suffix "frame"




            vbox:

                style_suffix "vbox_equipped"

                if InventorySettings.showEquippedLabel:


                    text "Equipped Item:":

                        style_suffix "vbox_equipped_text"

                if InventorySettings.showEquippedSlot:


                    frame:

                        style_suffix "vbox_equipped_slot"





                        add InventorySettings.equippedHighlight align (0.5, 0.5)

                        if Inventory.getEquippedItem():
                            add Inventory.getEquippedItem().getImage():




                                align (0.5, 0.5)









            if InventorySettings.showInfo:



                vbox:
                    style_suffix "vbox_info"


                    text ( Inventory.getSelectedItem().name if Inventory.getSelectedItem() else "Nothing selected." ):
                        style_suffix "inventory_side_menu_vbox_info_name"


                    text ( Inventory.getSelectedItem().description if Inventory.getSelectedItem() else "Nothing selected." ):
                        style_suffix "vbox_info_description"











            vbox:

                style_suffix "vbox_interaction"





                hbox:

                    style_suffix "vbox_interaction_equip_box"
                    if InventorySettings.showGiftButton:
                        textbutton "Gift":

                            style "inventory_side_menu_vbox_interaction_gift_textbutton"













                            if Inventory.gift_zone == True:
                                sensitive Inventory.canGift()
                                action Function(Inventory.gift)
                                hover_sound "sound_effects/buttons/misc_hover_3.mp3"
                                activate_sound "sound_effects/buttons/misc_activate_5.mp3"
                            else:
                                sensitive Inventory.canGift()
                                clicked Notify("Can't make gift here.")
                                hover_sound "sound_effects/buttons/misc_hover_3.mp3"
                                activate_sound "sound_effects/notify_negative.mp3"

                    if InventorySettings.showEquipButton:



                        if Inventory.canUnequip():
                            textbutton "Unequip":
                                style_suffix "vbox_interaction_unequip_textbutton"
                                action Function(Inventory.unequip)

                        else:

                            textbutton "Equip":

                                style_suffix "vbox_interaction_equip_textbutton"



                                sensitive Inventory.canEquip()
                                action Function(Inventory.equip)
                                hover_sound "sound_effects/buttons/misc_hover_3.mp3"
                                activate_sound "sound_effects/buttons/misc_activate_5.mp3"

                    if InventorySettings.showUseButton:


                        textbutton "Use":

                            style_suffix "vbox_interaction_use_textbutton"



                            sensitive Inventory.canUse()
                            action Function(Inventory.use)
                            hover_sound "sound_effects/buttons/misc_hover_3.mp3"
                            activate_sound "sound_effects/buttons/misc_activate_5.mp3"

                if main_hud_tut_7_2 == False:
                    pass
                else:
                    if InventorySettings.showThrowAwayButton:


                        textbutton "Throw Away":
                            style_suffix "vbox_interaction_throwaway_textbutton"

                            sensitive Inventory.getSelectedItem()
                            action Function(Inventory.remove)
                            hover_sound "sound_effects/buttons/misc_hover_3.mp3"
                            activate_sound "sound_effects/inventory/inventory_drop_item.mp3"


            textbutton "Close":
                style_suffix "return_textbutton"

                if Inventory.gift_zone_alice == True:
                    action [Hide("inventoryScreen"), Jump("a_em_no_gifts")]
                elif Inventory.gift_zone_elena == True:
                    action [Hide("inventoryScreen"), Jump("e_em_no_gifts")]
                elif Inventory.gift_zone_melissa == True:
                    action [Hide("inventoryScreen"), Jump("m_em_no_gifts")]
                elif Inventory.gift_zone_bianca == True:
                    action [Hide("inventoryScreen"), Jump("b_em_no_gifts")]
                elif Inventory.gift_zone_sofia == True:
                    action [Hide("inventoryScreen"), Jump("s_em_no_gifts")]

                elif Inventory.in_the_kitchen == True:
                    action [Hide("inventoryScreen"), Jump("kitchen_cooking_menu_dayoff")]

                elif Inventory.gift_zone_moms_number_one == True:
                    action [Hide("inventoryScreen"), Jump("club_cancel")]

                elif Inventory.gift_zone_moms_number_two == True:
                    action [Hide("inventoryScreen"), Jump("beach_cancel")]

                else:
                    action Hide("inventoryScreen")
                hover_sound "sound_effects/buttons/misc_hover_3.mp3"
                activate_sound "sound_effects/inventory/inventory_close.mp3"












        hbox:

            style_prefix "inventory_pages"
            style_suffix "hbox"


            textbutton "<":

                style_suffix "hbox_left"

                sensitive Inventory.canChangePage( -1 )
                action Function( Inventory.changePage, -1 )
                hover_sound "sound_effects/buttons/misc_hover_3.mp3"
                activate_sound "sound_effects/buttons/misc_activate_5.mp3"





            text "{} / {}".format( *Inventory.getPagesRepr() ):

                style_suffix "hbox_text"


            textbutton ">":

                style_suffix "hbox_right"

                sensitive Inventory.canChangePage( 1 )
                action Function( Inventory.changePage, 1 )
                hover_sound "sound_effects/buttons/misc_hover_3.mp3"
                activate_sound "sound_effects/buttons/misc_activate_5.mp3"
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc
