Beispiel #1
0
        public override void DoAction(PlayerCharacter character, ItemSlot slot)
        {
            ItemData item = slot.GetItem();

            if (item != null)
            {
                ReadPanel.Get().ShowPanel(item.title, item.desc);
            }
        }
        private void OnPressCancel()
        {
            UISlotPanel selected_panel = UISlotPanel.GetFocusedPanel();
            UISlot      selected_slot  = selected_panel?.GetSelectSlot();

            if (selected_slot != null)
            {
                selected_slot.KeyPressCancel();
            }

            if (ReadPanel.Get().IsVisible())
            {
                ReadPanel.Get().Hide();
            }
        }
Beispiel #3
0
 public bool IsBlockingPanelOpened()
 {
     return(StoragePanel.IsAnyVisible() || ReadPanel.IsAnyVisible() || pause_panel.IsVisible() || game_over_panel.IsVisible());
 }