예제 #1
0
    private void OnCalcle(IUIObject obj)
    {
        if (this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ONGOING || this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_COMPLETE)
        {
            MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

            if (msgBoxUI != null)
            {
                msgBoxUI.SetMsg(new YesDelegate(this.CancelQuest), this.m_Quest, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("799"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("126"), eMsgType.MB_OK_CANCEL, 2);
                msgBoxUI.SetButtonOKText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("320"));
                msgBoxUI.SetButtonCancelText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("321"));
            }
        }
        else if (this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE)
        {
            NrTSingleton <NkQuestManager> .Instance.QuestAutoMove(this.m_Quest.GetQuestUnique());

            G_ID          parentFormID  = base.InteractivePanel.parentFormID;
            QuestList_DLG questList_DLG = NrTSingleton <FormsManager> .Instance.GetForm(parentFormID) as QuestList_DLG;

            if (questList_DLG != null)
            {
                questList_DLG.CloseDlg = true;
            }
        }
        else
        {
            this.Close();
        }
    }
예제 #2
0
 public void SetBattleControlSkillTooltip(G_ID eWidowID, int battleSkillUnique, int battleSkillLevel, int KeepTurn, NkSoldierInfo solInfo)
 {
     Tooltip_Dlg.m_eParentWindowID = eWidowID;
     Tooltip_Dlg.BattleControlSkill_Tooltip(this, battleSkillUnique, battleSkillLevel, eWidowID, KeepTurn, solInfo);
     Tooltip_Dlg.Tooltip_Rect(this, Vector3.zero);
     this.Show();
 }
예제 #3
0
    public void SetMallItem(ITEM_MALL_ITEM MallItem, int i32CharKind)
    {
        this.m_DrawTexture_Won.SetTexture(ItemMallItemManager.GetCashTextureName((eITEMMALL_MONEY_TYPE)MallItem.m_nMoneyType));
        this.m_Label_Price.Text        = ItemMallItemManager.GetCashPrice(MallItem);
        this.m_Button_Price.Data       = MallItem;
        this.m_Label_Price.Visible     = true;
        this.m_Button_Price.Visible    = true;
        this.m_DrawTexture_Won.Visible = true;
        byte             b     = 6;
        int              level = 50;
        List <SOL_GUIDE> value = NrTSingleton <NrTableSolGuideManager> .Instance.GetValue();

        foreach (SOL_GUIDE current in value)
        {
            if (current.m_i32CharKind == i32CharKind)
            {
                b = (byte)current.m_iSolGrade;
            }
        }
        NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(i32CharKind);

        if (i32CharKind != 0)
        {
            level = (int)charKindInfo.GetGradeMaxLevel((short)(b - 1));
        }
        this.SetSolKind(i32CharKind, b, level);
        this.m_eParentUI = G_ID.ITEMMALL_DLG;
    }
예제 #4
0
 public void Show(G_ID windowID)
 {
     if (this.formList.ContainsKey((int)windowID))
     {
         this.formList[(int)windowID].Show();
     }
 }
예제 #5
0
 public void SetPos(G_ID Id, int X, int Y)
 {
     if (this.formList.ContainsKey((int)Id))
     {
         this.formList[(int)Id].SetLocation((float)X, (float)Y);
     }
 }
예제 #6
0
        public Form LoadGroupForm(G_ID windowID)
        {
            int num = Guid.NewGuid().GetHashCode();

            if (10501 >= num && 0 <= num)
            {
                num += 10501;
            }
            Form form = MsgHandler.HandleReturn <Form>("CreateForm", new object[]
            {
                windowID
            });

            if (form == null)
            {
                return(null);
            }
            this.formList.Add(num, form);
            form.InitializeForm();
            if (form.InteractivePanel == null)
            {
                return(null);
            }
            form.WindowID   = num;
            form.Orignal_ID = windowID;
            form.OnLoad();
            if (MsgHandler.Handle("IsNPCTalkState", new object[0]))
            {
                this.AddReserveShowForm(num);
                form.Visible = false;
            }
            this.formDepth.Add(num);
            return(form);
        }
예제 #7
0
 public void ToggleForm(G_ID windowID, bool bCloseForm)
 {
     if (this.formList.ContainsKey((int)windowID))
     {
         if (this.formList[(int)windowID].visible)
         {
             if (bCloseForm)
             {
                 this.CloseForm(windowID);
             }
             else
             {
                 this.formList[(int)windowID].Hide();
             }
         }
         else
         {
             this.formList[(int)windowID].Show();
         }
     }
     else
     {
         this.ShowForm(windowID);
     }
 }
예제 #8
0
    public void DragDrop(EZDragDropParams a_sDragDropParams)
    {
        if (a_sDragDropParams.evt == EZDragDropEvent.Dropped && a_sDragDropParams.dragObj.DropTarget != null)
        {
            ImageSlot imageSlot = a_sDragDropParams.dragObj.Data as ImageSlot;
            if (imageSlot != null && !(imageSlot.c_oItem is ITEM))
            {
                return;
            }
            UIListItemContainer component = a_sDragDropParams.dragObj.DropTarget.GetComponent <UIListItemContainer>();
            if (component == null)
            {
                return;
            }
            ImageSlot imageSlot2 = component.Data as ImageSlot;
            if (imageSlot2 == null)
            {
                return;
            }
            if (imageSlot2.c_bDisable)
            {
                return;
            }
            G_ID windowID = (G_ID)imageSlot2.WindowID;
            if (windowID == G_ID.INVENTORY_DLG)
            {
                Inventory_Dlg inventory_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.INVENTORY_DLG) as Inventory_Dlg;

                if (inventory_Dlg != null)
                {
                }
            }
        }
    }
예제 #9
0
    public void InputMouseEvent()
    {
        bool flag = false;

        if (TsPlatform.IsEditor)
        {
            if (NkInputManager.GetMouseButtonUp(0) || NkInputManager.GetMouseButtonUp(1))
            {
                flag = true;
                G_ID g_ID = (G_ID)NrTSingleton <FormsManager> .Instance.MouseOverFormID();

                if (NrTSingleton <FormsManager> .Instance.IsMouseOverForm() && g_ID == G_ID.GOOGLEPLAY_DLG)
                {
                    flag = false;
                }
            }
        }
        else if (TsPlatform.IsMobile && Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Ended)
        {
            flag = true;
            G_ID g_ID2 = (G_ID)NrTSingleton <FormsManager> .Instance.MouseOverFormID();

            if (NrTSingleton <FormsManager> .Instance.IsMouseOverForm() && g_ID2 == G_ID.GOOGLEPLAY_DLG)
            {
                flag = false;
            }
        }
        if (flag)
        {
            this.HideMenu(flag);
        }
    }
예제 #10
0
    public override void Update()
    {
        if (this.fTime > Time.realtimeSinceStartup)
        {
            return;
        }
        if (TsPlatform.IsEditor)
        {
            if (NkInputManager.GetMouseButtonUp(0) || NkInputManager.GetMouseButtonUp(1))
            {
                G_ID g_ID = (G_ID)NrTSingleton <FormsManager> .Instance.MouseOverFormID();

                if (!NrTSingleton <FormsManager> .Instance.IsMouseOverForm() || g_ID != G_ID.EMOTICON_DLG)
                {
                    this.Close();
                }
            }
        }
        else if (TsPlatform.IsMobile && Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Ended)
        {
            G_ID g_ID2 = (G_ID)NrTSingleton <FormsManager> .Instance.MouseOverFormID();

            if (!NrTSingleton <FormsManager> .Instance.IsMouseOverForm() || g_ID2 != G_ID.EMOTICON_DLG)
            {
                this.Close();
            }
        }
    }
 public void Set_Tooltip(G_ID eWidowID, ITEM pkItem, ITEM pkEquipedItem)
 {
     this.m_eParentWindowID = eWidowID;
     this.m_cItem           = pkItem;
     this.Item_Tooltip(this, this.m_cItem, pkEquipedItem, eWidowID, false);
     this.Show();
     ItemTooltipDlg_Second.Tooltip_Rect(this, Vector3.zero);
 }
예제 #12
0
 public static void Item_Tooltip(Form cThis, ITEM pkItem, G_ID eWidowID, bool bEquiped)
 {
     Tooltip_Dlg.Tooltip_Text_Info[] array = Tooltip_Dlg.Get_Item_Text_Info(pkItem, null, eWidowID, bEquiped);
     if (array != null)
     {
         Tooltip_Dlg.Tooltip_Base(cThis, array, pkItem.m_nRank, eWidowID, 0);
     }
 }
예제 #13
0
 public void Hide(G_ID windowID)
 {
     if (this.formList.ContainsKey((int)windowID))
     {
         Form form = this.formList[(int)windowID];
         form.Hide();
     }
 }
예제 #14
0
 public Form GetForm(G_ID windowID)
 {
     if (this.formList.ContainsKey((int)windowID))
     {
         return(this.formList[(int)windowID]);
     }
     return(null);
 }
 public void Set_Tooltip(G_ID a_eWidowID, ITEM a_cItem, bool bEquiped = false)
 {
     this.m_eParentWindowID = a_eWidowID;
     this.m_cItem           = a_cItem;
     this.Item_Tooltip(this, this.m_cItem, null, this.m_eParentWindowID, bEquiped);
     this.Show();
     ItemTooltipDlg_Second.Tooltip_Rect(this, Vector3.zero);
 }
 public void Set_Tooltip(G_ID a_eWidowID, ITEM a_cItem, bool bEquiped, Vector3 showPosition, long SolID = 0L)
 {
     this.m_eParentWindowID = a_eWidowID;
     this.m_cItem           = a_cItem;
     this.m_SolID           = SolID;
     this.Item_Tooltip(this, this.m_cItem, null, this.m_eParentWindowID, bEquiped);
     this.Show();
     ItemTooltipDlg_Second.Tooltip_Rect(this, showPosition);
 }
 public void Set_Tooltip(G_ID eWidowID, int itemunique)
 {
     this.m_eParentWindowID = eWidowID;
     this.m_cItem.Init();
     this.m_cItem.m_nItemUnique = itemunique;
     this.Item_Tooltip(this, this.m_cItem, null, eWidowID, false);
     this.Show();
     ItemTooltipDlg_Second.Tooltip_Rect(this, Vector3.zero);
 }
예제 #18
0
 public void Set_Tooltip(G_ID eWidowID, int itemunique)
 {
     Tooltip_Dlg.m_eParentWindowID = eWidowID;
     this.m_cItem.Init();
     this.m_cItem.m_nItemUnique = itemunique;
     Tooltip_Dlg.Item_Tooltip(this, this.m_cItem, eWidowID);
     Tooltip_Dlg.Tooltip_Rect(this, Vector3.zero);
     this.Show();
 }
예제 #19
0
 public void Set_TooltipForEquip(G_ID eWidowID, ITEM pkEquipedItem, ITEM pkItem, bool bEquiped)
 {
     base.RemoveChildControl();
     Tooltip_Dlg.m_eParentWindowID = eWidowID;
     this.m_cItem = pkItem;
     Tooltip_Dlg.Item_Tooltip(this, pkEquipedItem, this.m_cItem, eWidowID, bEquiped);
     Tooltip_Dlg.Tooltip_Rect(this, Vector3.zero);
     this.Show();
 }
예제 #20
0
 public void Set_Tooltip(G_ID eWidowID, ITEM pkItem, bool showItemNum)
 {
     base.RemoveChildControl();
     Tooltip_Dlg.m_eParentWindowID = eWidowID;
     this.m_cItem = pkItem;
     Tooltip_Dlg.Item_Tooltip(this, this.m_cItem, eWidowID);
     Tooltip_Dlg.Tooltip_Rect(this, Vector3.zero);
     this.Show();
 }
	public static void ShowItemDetailInfo(ITEM Item, G_ID eGID)
	{
		ITEM iTEM = new ITEM();
		iTEM.Set(Item);
		if (iTEM != null && iTEM.m_nItemUnique > 0)
		{
			ItemTooltipDlg itemTooltipDlg = NrTSingleton<FormsManager>.Instance.LoadForm(G_ID.ITEMTOOLTIP_DLG) as ItemTooltipDlg;
			itemTooltipDlg.Set_Tooltip(eGID, iTEM, null, false);
		}
	}
예제 #22
0
    public void Set_TooltipForEquip(G_ID eWidowID, ITEM pkEquipedItem, ITEM pkItem, bool bEquiped)
    {
        this.m_eParentWindowID = eWidowID;
        this.m_cItem           = pkItem;
        Tooltip_Dlg.Item_Tooltip(this, pkEquipedItem, this.m_cItem, this.m_eParentWindowID, bEquiped);
        Form cForm = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.TOOLTIP_DLG);

        Tooltip_Dlg.Tooltip_Rect(cForm, Vector3.zero);
        this.Show();
    }
예제 #23
0
 public void SetShowExcept(G_ID windowID, bool bShow)
 {
     foreach (KeyValuePair <int, Form> current in this.formList)
     {
         if (current.Value != null && current.Value.WindowID != (int)windowID)
         {
             current.Value.Visible = bShow;
         }
     }
 }
예제 #24
0
        public float GetBattleUIDepth(G_ID GID)
        {
            float result = 800f;

            if (this.m_BattleUIDepthList.ContainsKey(GID))
            {
                return(this.m_BattleUIDepthList[GID]);
            }
            return(result);
        }
    public override bool Verify()
    {
        if (string.IsNullOrEmpty(this._dlgName))
        {
            return(false);
        }
        G_ID windowID = (G_ID)((int)Enum.Parse(typeof(G_ID), this._dlgName));

        return(NrTSingleton <FormsManager> .Instance.IsShow(windowID));
    }
예제 #26
0
    public void Set_Tooltip(G_ID a_eWidowID, ITEM a_cItem, bool bEquiped, Vector3 showPosition)
    {
        this.m_eParentWindowID = a_eWidowID;
        this.m_cItem           = a_cItem;
        Tooltip_Dlg.Item_Tooltip(this, this.m_cItem, this.m_eParentWindowID, bEquiped);
        Form cForm = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.TOOLTIP_DLG);

        Tooltip_Dlg.Tooltip_Rect(cForm, showPosition);
        this.Show();
    }
예제 #27
0
 public Form GetShowFormOrignal(G_ID ID)
 {
     foreach (Form current in this.formList.Values)
     {
         if (current.Orignal_ID == ID)
         {
             return(current);
         }
     }
     return(null);
 }
예제 #28
0
 public void ShowOrClose(G_ID eWindowID)
 {
     if (this.IsShow(eWindowID))
     {
         this.CloseForm(eWindowID);
     }
     else
     {
         this.ShowForm(eWindowID);
     }
 }
예제 #29
0
 public void Set_Tooltip(G_ID eWidowID, ITEM pkItem, ITEM pkEquipedItem)
 {
     if (!TsPlatform.IsMobile)
     {
         base.RemoveChildControl();
     }
     Tooltip_Dlg.m_eParentWindowID = eWidowID;
     this.m_cItem = pkItem;
     Tooltip_Dlg.Item_Tooltip(this, this.m_cItem, pkEquipedItem, eWidowID);
     Tooltip_Dlg.Tooltip_Rect(this, Vector3.zero);
     this.Show();
 }
예제 #30
0
 public void Set_Tooltip(G_ID eWidowID, string strText)
 {
     Tooltip_Dlg.m_eParentWindowID = eWidowID;
     this.m_strText = strText;
     if (this.m_strText == null)
     {
         return;
     }
     Tooltip_Dlg.Item_Tooltip(this, this.m_strText);
     Tooltip_Dlg.Tooltip_Rect(this, Vector3.zero);
     this.Show();
 }