Example #1
0
 public override void SetComponent()
 {
     this.m_Quest_Info_List_Option_Ongoing = (base.GetControl("Quest_Info_List_Option_Ongoing") as DropDownList);
     this.m_Quest_Info_List_TreeView = (base.GetControl("Quest_Info_List_TreeView") as TreeView);
     this.m_Quest_Info_ToolBar = (base.GetControl("Quest_Info_ToolBar") as Toolbar);
     this.m_Quest_Info_completeTreeview = (base.GetControl("Quest_Info_completeTreeview") as TreeView);
     this.m_Quest_Info_progressBar = (base.GetControl("Quest_Info_progressBar") as ProgressBar);
     this.m_Quest_StoryView = (base.GetControl("Quest_StoryView") as Button);
     this.m_Quest_StoryView.Visible = false;
     this.m_Quest_DramaView = (base.GetControl("Quest_DramaView") as Button);
     this.m_Quest_DramaView.Visible = false;
     this.m_Quest_Info_progressPercent = (base.GetControl("Quest_Info_progressPercent") as Label);
     Button expr_CE = this.m_Quest_StoryView;
     expr_CE.Click = (EZValueChangedDelegate)Delegate.Combine(expr_CE.Click, new EZValueChangedDelegate(this.OnStoryView));
     this.m_Quest_Info_ToolBar.Control_Tab[0].Text = NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("1227");
     this.m_Quest_Info_ToolBar.Control_Tab[1].Text = NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("1228");
     this.m_Quest_Info_ToolBar.FirstSetting();
     UIPanelTab expr_149 = this.m_Quest_Info_ToolBar.Control_Tab[0];
     expr_149.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_149.ButtonClick, new EZValueChangedDelegate(this.OnTabClick));
     UIPanelTab expr_177 = this.m_Quest_Info_ToolBar.Control_Tab[1];
     expr_177.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_177.ButtonClick, new EZValueChangedDelegate(this.OnTabClick));
     this.m_Quest_Info_List_TreeView.LineHeight = 28f;
     this.m_Quest_Info_List_TreeView.ChildStartX = 16f;
     this.m_Quest_Info_List_TreeView.InitTreeData();
     this.m_Quest_Info_List_TreeView.SetValueChangedDelegate(new EZValueChangedDelegate(this.BtnClickQuestList));
     this.m_Quest_Info_List_TreeView.ParentAlignment = SpriteText.Alignment_Type.Left;
     this.m_Quest_Info_List_TreeView.ChildAlignment = SpriteText.Alignment_Type.Left;
     this.m_Quest_Info_List_TreeView.UseDepthCount = true;
     this.m_Quest_Info_List_TreeView.SetChildDepthOption(0, 15, SpriteText.Font_Effect.Black_Shadow_Small, 0, 0, 0, 0, 0, 0);
     this.m_Quest_Info_List_TreeView.SetChildDepthOption(1, 15, SpriteText.Font_Effect.Black_Shadow_Small, 43, 257, 315, 202, 47, 120);
     this.m_Quest_Info_List_TreeView.SetChildrenAlignment(SpriteText.Alignment_Type.Left, SpriteText.Alignment_Type.Center, SpriteText.Alignment_Type.Center);
     this.m_str1202 = NrTSingleton<CTextParser>.Instance.GetTextColor("1101");
     this.m_str1205 = NrTSingleton<CTextParser>.Instance.GetTextColor("1205");
     this.m_str1206 = NrTSingleton<CTextParser>.Instance.GetTextColor("1206");
     this.m_str1102 = NrTSingleton<CTextParser>.Instance.GetTextColor("1102");
     this.m_Quest_Info_completeTreeview.LineHeight = 28f;
     this.m_Quest_Info_completeTreeview.InitTreeData();
     this.m_Quest_Info_completeTreeview.SetValueChangedDelegate(new EZValueChangedDelegate(this.BtnClickQuestList));
     this.m_Quest_Info_completeTreeview.UseDepthCount = true;
     this.m_Quest_Info_completeTreeview.SetChildDepthOption(0, 18, SpriteText.Font_Effect.Black_Shadow_Small, 0, 0, 0, 0, 0, 0);
     this.m_Quest_Info_completeTreeview.SetChildDepthOption(1, 18, SpriteText.Font_Effect.Black_Shadow_Small, 0, 0, 0, 0, 0, 0);
     this.m_Quest_Info_completeTreeview.SetChildDepthOption(2, 18, SpriteText.Font_Effect.Black_Shadow_Small, 0, 0, 0, 0, 0, 0);
     Dictionary<int, CQuestGroup> hashQuestGroup = NrTSingleton<NkQuestManager>.Instance.GetHashQuestGroup();
     foreach (CQuestGroup current in hashQuestGroup.Values)
     {
         this.m_QuesGroupList.Add(current);
     }
     this.m_QuesGroupList.Sort(new Comparison<CQuestGroup>(QuestList_DLG.AscendingNum));
     ListItem listItem = new ListItem();
     listItem.SetColumnStr(0, NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("787"));
     listItem.Key = QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_MAIN;
     ListItem listItem2 = new ListItem();
     listItem2.SetColumnStr(0, NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("783"));
     listItem2.Key = QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_SUB;
     ListItem listItem3 = new ListItem();
     listItem3.SetColumnStr(0, NrTSingleton<NrTextMgr>.Instance.GetTextFromInterface("1635"));
     listItem3.Key = QUEST_CONST.E_QUEST_TYPE.E_QUEST_TYPE_DAY;
     this.m_Quest_Info_List_Option_Ongoing.SetViewArea(3);
     this.m_Quest_Info_List_Option_Ongoing.Clear();
     this.m_Quest_Info_List_Option_Ongoing.Add(listItem);
     this.m_Quest_Info_List_Option_Ongoing.Add(listItem2);
     this.m_Quest_Info_List_Option_Ongoing.Add(listItem3);
     this.m_Quest_Info_List_Option_Ongoing.RepositionItems();
     this.m_Quest_Info_List_Option_Ongoing.SetFirstItem();
     this.m_Quest_Info_List_Option_Ongoing.AddValueChangedDelegate(new EZValueChangedDelegate(this.DropDownList_OptionChange));
     this.SetOnGoing();
     this.m_Quest_Info_List_TreeView.SetSelectedItem(0);
     this.m_Quest_Info_List_TreeView.ClickButton(null);
     this.m_Quest_Info_List_TreeView.ExpandNode(this.m_OngoingNode, 0);
     this.SetTotal();
     this.ShowOnGoing();
     NrTSingleton<NkQuestManager>.Instance.IncreaseQuestParamVal(140, 0L, 1L);
 }
    public override void SetComponent()
    {
        this.m_Tap = (base.GetControl("ToolBar") as Toolbar);
        string[] array = new string[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("477"),
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("478"),
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3259"),
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("816"),
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("556")
        };
        for (int i = 0; i < array.Length; i++)
        {
            this.m_Tap.Control_Tab[i].Text = NrTSingleton <UIDataManager> .Instance.GetString(NrTSingleton <CTextParser> .Instance.GetTextColor("1002"), array[i]);

            UIPanelTab expr_B9 = this.m_Tap.Control_Tab[i];
            expr_B9.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_B9.ButtonClick, new EZValueChangedDelegate(this.ClickToolBar));
        }
        for (int j = array.Length; j < this.m_Tap.Control_Tab.Length; j++)
        {
            this.m_Tap.Control_Tab[j].Visible = false;
        }
        this.m_Tap.FirstSetting();
        this.m_Quality[0] = (base.GetControl("Toggle_RadioBtn1") as Toggle);
        this.m_Quality[0].SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickQuality));
        this.m_Quality[0].Data = TsQualityManager.Level.HIGHEST;
        this.m_Quality[1]      = (base.GetControl("Toggle_RadioBtn3") as Toggle);
        this.m_Quality[1].SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickQuality));
        this.m_Quality[1].Data = TsQualityManager.Level.MEDIUM;
        this.m_Quality[2]      = (base.GetControl("Toggle_RadioBtn5") as Toggle);
        this.m_Quality[2].SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickQuality));
        this.m_Quality[2].Data = TsQualityManager.Level.LOWEST;
        this.m_Save            = (base.GetControl("ok_button") as Button);
        this.m_Save.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickSave));
        this.m_AutoQuality = (base.GetControl("reset_button") as Button);
        this.m_AutoQuality.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickAutoQuality));
        this.m_txRating1 = (base.GetControl("DrawTexture_Rating01") as DrawTexture);
        this.m_lbRating1 = (base.GetControl("Label_Rating01") as Label);
        this.m_lbRating2 = (base.GetControl("Label_Rating05") as Label);
        eSERVICE_AREA currentServiceArea = NrTSingleton <NrGlobalReference> .Instance.GetCurrentServiceArea();

        if (currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_KORTSTORE || currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_BANDNAVER || currentServiceArea == eSERVICE_AREA.SERVICE_ANDROID_KORNAVER)
        {
            this.m_txRating1.SetTexture("Win_I_Deliberation04");
            this.m_lbRating1.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2863"));
            this.m_lbRating2.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2864"));
        }
        else
        {
            this.m_txRating1.SetTexture("Win_I_Deliberation01");
            this.m_lbRating1.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1560"));
            this.m_lbRating2.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1611"));
        }
        this.m_Credit  = (base.GetControl("Button_Credit") as Button);
        this.m_Opening = (base.GetControl("Button_Opening") as Button);
        this.m_Credit.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickCredit));
        this.m_Opening.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickOpening));
        this.m_EffectSound = (base.GetControl("eftsound_HSlider") as HorizontalSlider);
        this.m_EffectSound.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickEffectSound));
        this.m_BgmSound = (base.GetControl("bgm_HSlider") as HorizontalSlider);
        this.m_BgmSound.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickBgmSound));
        this.m_MuteEffect = (base.GetControl("check_button1") as CheckBox);
        this.m_MuteEffect.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickMuteEffect));
        this.m_MuteBgm = (base.GetControl("check_button2") as CheckBox);
        this.m_MuteBgm.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickMuteBgm));
        this.m_LocalPush_Activity = (base.GetControl("CheckBox_Push01") as CheckBox);
        this.m_LocalPush_Activity.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickLocalPush_Activity));
        this.m_LocalPush_Injury = (base.GetControl("CheckBox_Push02") as CheckBox);
        this.m_LocalPush_Injury.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickLocalPush_Injury));
        this.m_LocalPush_BattleMatchOpen = (base.GetControl("CheckBox_Push03") as CheckBox);
        this.m_LocalPush_BattleMatchOpen.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickLocalPush_BattleMatch));
        this.m_cbColosseumInvite = (base.GetControl("CheckBox_Colosseum") as CheckBox);
        this.m_cbColosseumInvite.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickColosseumInvite));
        this.m_btBack = (base.GetControl("BT_back") as Button);
        this.m_btBack.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickBack));
        this.m_MobileRotate  = (base.GetControl("Camera_HSlider") as HorizontalSlider);
        this.m_Fps           = (base.GetControl("HSlider_FPS") as HorizontalSlider);
        this.m_PushBlocks    = new CheckBox[3];
        this.m_PushBlocks[0] = (base.GetControl("CheckBox_NoticePush") as CheckBox);
        this.m_PushBlocks[0].SetCheckState(0);
        this.m_PushBlocks[0].data = 0;
        this.m_PushBlocks[0].SetValueChangedDelegate(new EZValueChangedDelegate(this.PushCheckClick));
        this.m_PushBlocks[1]      = (base.GetControl("CheckBox_GuildPush") as CheckBox);
        this.m_PushBlocks[1].data = 1;
        this.m_PushBlocks[1].SetCheckState(0);
        this.m_PushBlocks[1].SetValueChangedDelegate(new EZValueChangedDelegate(this.PushCheckClick));
        this.m_PushBlocks[2]      = (base.GetControl("CheckBox_FriendPush") as CheckBox);
        this.m_PushBlocks[2].data = 2;
        this.m_PushBlocks[2].SetCheckState(0);
        this.m_PushBlocks[2].SetValueChangedDelegate(new EZValueChangedDelegate(this.PushCheckClick));
        this.m_cbVibeAlarm = (base.GetControl("CheckBox_VibePush") as CheckBox);
        this.m_cbVibeAlarm.SetCheckState(0);
        this.SetCameraRotate();
        this.SetFps();
        this.m_ReservedWord = (base.GetControl("CheckBox_Slang") as CheckBox);
        if (!PlayerPrefs.HasKey(NrPrefsKey.RESERVED_WORD))
        {
            PlayerPrefs.SetInt(NrPrefsKey.RESERVED_WORD, 1);
            this.m_ReservedWord.SetCheckState(1);
            NrTSingleton <ReservedWordManager> .Instance.SetUse(true);
        }
        else if (PlayerPrefs.GetInt(NrPrefsKey.RESERVED_WORD) == 0)
        {
            this.m_ReservedWord.SetCheckState(0);
            NrTSingleton <ReservedWordManager> .Instance.SetUse(false);
        }
        else if (PlayerPrefs.GetInt(NrPrefsKey.RESERVED_WORD) == 1)
        {
            this.m_ReservedWord.SetCheckState(1);
            NrTSingleton <ReservedWordManager> .Instance.SetUse(true);
        }
        this.m_ReservedWord.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickReservedWord));
        this.m_BuffSkillText = (base.GetControl("CheckBox_SkillText") as CheckBox);
        if (!PlayerPrefs.HasKey(NrPrefsKey.SKILL_TEXT))
        {
            PlayerPrefs.SetInt(NrPrefsKey.SKILL_TEXT, 1);
            this.m_BuffSkillText.SetCheckState(1);
            NrTSingleton <BattleSkill_Manager> .Instance.SetBuffSkillTextUse(true);
        }
        else if (PlayerPrefs.GetInt(NrPrefsKey.SKILL_TEXT) == 0)
        {
            this.m_BuffSkillText.SetCheckState(0);
            NrTSingleton <BattleSkill_Manager> .Instance.SetBuffSkillTextUse(false);
        }
        else if (PlayerPrefs.GetInt(NrPrefsKey.SKILL_TEXT) == 1)
        {
            this.m_BuffSkillText.SetCheckState(1);
            NrTSingleton <BattleSkill_Manager> .Instance.SetBuffSkillTextUse(true);
        }
        this.m_BuffSkillText.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickSkillText));
        this.m_HideBookmark = (base.GetControl("CheckBox_HideBookmark") as CheckBox);
        if (!PlayerPrefs.HasKey(NrPrefsKey.HIDE_BOOKMARK))
        {
            PlayerPrefs.SetInt(NrPrefsKey.HIDE_BOOKMARK, 0);
            this.m_HideBookmark.SetCheckState(0);
        }
        else if (PlayerPrefs.GetInt(NrPrefsKey.HIDE_BOOKMARK) == 0)
        {
            this.m_HideBookmark.SetCheckState(0);
        }
        else if (PlayerPrefs.GetInt(NrPrefsKey.HIDE_BOOKMARK) == 1)
        {
            this.m_HideBookmark.SetCheckState(1);
        }
        this.m_HideBookmark.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHideBookmark));
        this.m_lbEffect1 = (base.GetControl("Lable_Effect1") as Label);
        this.m_lbEffect2 = (base.GetControl("Lable_Effect2") as Label);
        this.m_lbEffect1.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2742"));
        this.m_lbEffect2.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2743"));
        this.m_ckEffect = (base.GetControl("CheckBox_Effect") as CheckBox);
        this.m_ckEffect.SetCheckState(NrTSingleton <NrUserDeviceInfo> .Instance.GetHotKey());
        this.m_ckEffect.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickEffect));
        base.ShowLayer(1);
        this.LoadOption();
        base.SetScreenCenter();
        if (Scene.CurScene == Scene.Type.WORLD)
        {
            TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "SYSTEM", "OPEN", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
        }
        if (Scene.CurScene >= Scene.Type.WORLD)
        {
            GS_PUSH_BLOCK_GET_REQ gS_PUSH_BLOCK_GET_REQ = default(GS_PUSH_BLOCK_GET_REQ);
            SendPacket.GetInstance().SendObject(147, gS_PUSH_BLOCK_GET_REQ);
        }
    }
Example #3
0
    public override void SetComponent()
    {
        this._lChatChannel      = (base.GetControl("Label_channel1") as Label);
        this._tfInput           = (base.GetControl("TextField_InputText") as TextField);
        this._tfInput.multiline = false;
        this._tfInput.AddCommitDelegate(new EZKeyboardCommitDelegate(this.OnInputText));
        this._tfInput.AddFocusDelegate(new UITextField.FocusDelegate(this.OnFocusText));
        if (NrGlobalReference.strLangType.Equals("eng"))
        {
            this._tfInput.maxLength = 100;
        }
        else
        {
            this._tfInput.maxLength = 50;
        }
        this._tfInput.MaxWidth = 0f;
        this._tfInput.SetDefaultText(string.Empty);
        if (null != this._tfInput.spriteText)
        {
            this._tfInput.spriteText.parseColorTags = false;
            if (null != this._tfInput.spriteTextShadow)
            {
                this._tfInput.spriteTextShadow.parseColorTags = false;
            }
        }
        this.chatTab = (base.GetControl("TabBtn") as Toolbar);
        this.SetToolBarText();
        for (int i = 0; i < this.chatTab.Count; i++)
        {
            UIPanelTab expr_137 = this.chatTab.Control_Tab[i];
            expr_137.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_137.ButtonClick, new EZValueChangedDelegate(this.OnClickTab));
        }
        this.chatTab.FirstSetting();
        this.chatTab.SetSelectTabIndex(0);
        this._btSend = (base.GetControl("Button_Enter") as Button);
        this._btSend.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickSend));
        this._btEmoticon = (base.GetControl("Button_ChatEmo") as Button);
        this._btEmoticon.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickEmoticon));
        this._btChangeChannel = (base.GetControl("Button_channel") as Button);
        this._btChangeChannel.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickChangeChannel));
        this._lChatType      = (base.GetControl("Label_Chatkind") as Label);
        this._lChatType.Text = NrTSingleton <CTextParser> .Instance.GetTextColor(ChatManager.GetChatColorKey(CHAT_TYPE.NORMAL)) + NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2138");

        this._btChangeType1 = (base.GetControl("Button_ChatChange1") as Button);
        this._btChangeType2 = (base.GetControl("Button_ChatChange2") as Button);
        this._btChangeType1.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickChangeType1));
        this._btChangeType2.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickChangeType2));
        this.SetChatType();
        this._dtChatBG = (base.GetControl("DrawTexture_ChatBG") as DrawTexture);
        base.SetLocation(0f, GUICamera.height - base.GetSize().y);
        Vector2 vPos = new Vector2(this._dtChatBG.GetSize().x, 0f);

        this._clChat              = ChatManager.MakeChatLabel(this, "ChatLabel_AllChat", vPos);
        this._clChatGuild         = ChatManager.MakeChatLabel(this, "ChatLabel_Guild", vPos);
        this._clChatGuild.Visible = false;
        this._Default             = (base.GetControl("Label_chat") as Label);
        base.ShowLayer(1);
        this.m_MainChat = (NrTSingleton <FormsManager> .Instance.GetForm(G_ID.CHAT_MAIN_DLG) as ChatMobileDlg);
        base.SetScreenCenter();
        this.ChatStart();
        this.m_nChatTap = PlayerPrefs.GetInt(NrPrefsKey.CHAT_SUB_TAP, 0);
        CHAT_TYPE changeTap = (CHAT_TYPE)this.m_nChatTap;

        this.SetChangeTap(changeTap);
    }
Example #4
0
    public override void SetComponent()
    {
        this.m_Toolbar = (base.GetControl("ToolBar_ToolBar28") as Toolbar);
        this.m_Toolbar.Control_Tab[0].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1648");

        UIPanelTab expr_44 = this.m_Toolbar.Control_Tab[0];

        expr_44.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_44.ButtonClick, new EZValueChangedDelegate(this.ClickToolbar));
        this.m_Toolbar.Control_Tab[2].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1645");

        UIPanelTab expr_93 = this.m_Toolbar.Control_Tab[2];

        expr_93.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_93.ButtonClick, new EZValueChangedDelegate(this.ClickToolbar));
        this.m_Toolbar.Control_Tab[1].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2852");

        UIPanelTab expr_E2 = this.m_Toolbar.Control_Tab[1];

        expr_E2.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_E2.ButtonClick, new EZValueChangedDelegate(this.ClickToolbar));
        this.m_Toolbar.Control_Tab[1].Visible           = false;
        this.m_SolInterfaceTool.m_Label_Character_Name  = (base.GetControl("Label_character_name") as Label);
        this.m_SolInterfaceTool.m_Label_SeasonNum       = (base.GetControl("Label_SeasonNum") as Label);
        this.m_SolInterfaceTool.m_DrawTexture_rank      = (base.GetControl("DrawTexture_rank") as DrawTexture);
        this.m_SolInterfaceTool.m_Label_Rank2           = (base.GetControl("Label_rank2") as Label);
        this.m_SolInterfaceTool.m_DrawTexture_Character = (base.GetControl("DrawTexture_character") as DrawTexture);
        this.m_Button_MovieBtn = (base.GetControl("Button_MovieBtn") as Button);
        this.m_Button_MovieBtn.AddValueChangedDelegate(new EZValueChangedDelegate(this.Click_PreViewHero));
        this.m_SolInterfaceTool.m_DrawTexture_Event = (base.GetControl("DrawTexture_Event") as DrawTexture);
        this.m_SolInterfaceTool.m_Label_EventDate   = (base.GetControl("Label_EventDate") as Label);
        for (int i = 0; i < 2; i++)
        {
            this.m_SolInterfaceTool.m_Lebel_EventHero[i] = (base.GetControl(NrTSingleton <UIDataManager> .Instance.GetString("Label_EventStat", (i + 1).ToString())) as Label);
        }
        this.m_SolInterfaceTool.m_DrawTextureWeapon    = (base.GetControl("DT_WEAPON") as DrawTexture);
        this.m_SolInterfaceTool.m_DrawTextureSkillIcon = (base.GetControl("DT_SKILLICON") as DrawTexture);
        this.m_ButtonSkillIcon = (base.GetControl("DT_SKILLBUTTON") as Button);
        this.m_ButtonSkillIcon.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickSkillIcon));
        this.m_Label_Stats_str2 = (base.GetControl("Label_stats_str2") as Label);
        this.m_Label_Stats_dex2 = (base.GetControl("Label_stats_dex2") as Label);
        this.m_Label_Stats_vit2 = (base.GetControl("Label_stats_vit2") as Label);
        this.m_Label_Stats_int2 = (base.GetControl("Label_stats_int2") as Label);
        this.m_ScrollLabel_info = (base.GetControl("ScrollLabel_info") as ScrollLabel);
        this.m_Button_ok        = (base.GetControl("btn_ok") as Button);
        this.m_Button_ok.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickOK));
        this.m_Button_Help = (base.GetControl("Button_Help") as Button);
        this.m_Button_Help.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickHelp));
        this.m_NewListBox_Reincarnate             = (base.GetControl("NewListBox_Reincarnate") as NewListBox);
        this.m_NewListBox_Reincarnate.touchScroll = false;
        this.m_Button_Reincarnate = (base.GetControl("btn_Reincarnate") as Button);
        this.m_Button_Reincarnate.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickReincarnate));
        this.m_Button_Reincarnate.SetEnabled(false);
        this.m_Label_Gold   = (base.GetControl("Label_Gold2") as Label);
        this.m_Label_Notice = (base.GetControl("Label_Label38") as Label);
        this.m_Toolbar.SetSelectTabIndex(0);
        this.m_btClose = (base.GetControl("Close_Button") as Button);
        this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm));
        this.m_Button_Costume = (base.GetControl("Btn_Costume") as Button);
        this.m_Button_Costume.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickCostume));
        this.m_Label_Costume     = (base.GetControl("LB_Costume") as Label);
        this.m_cMythSkillControl = new SolDetail_Info_Dlg.SolMythSkillSlotControl();
        this.m_cMythSkillControl.SetComponent(this);
        base.SetShowLayer(1, true);
        base.SetShowLayer(2, false);
        base.SetShowLayer(3, false);
        base.SetShowLayer(4, false);
        this.m_bLayer3Show = false;
        base.Draggable     = false;
        base.SetScreenCenter();
        base.ShowBlackBG(0.5f);
    }
    public override void SetComponent()
    {
        this.m_lbTitle = (base.GetControl("Label_Title") as Label);
        this.m_TB      = (base.GetControl("ToolBar_ToolBar") as Toolbar);
        if (null != this.m_TB)
        {
            UIPanelTab expr_4A = this.m_TB.Control_Tab[0];
            expr_4A.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_4A.ButtonClick, new EZValueChangedDelegate(this.OnClickToolBar));
            UIPanelTab expr_78 = this.m_TB.Control_Tab[1];
            expr_78.ButtonClick           = (EZValueChangedDelegate)Delegate.Combine(expr_78.ButtonClick, new EZValueChangedDelegate(this.OnClickToolBar));
            this.m_TB.Control_Tab[0].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1657");

            this.m_TB.Control_Tab[1].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1656");

            this.m_TB.FirstSetting();
        }
        string name = string.Empty;

        for (int i = 0; i < 2; i++)
        {
            this.m_dtSlot[i] = new ItemTexture[6];
            this.m_btSlot[i] = new Button[6];
            for (int j = 0; j < 6; j++)
            {
                name = string.Format("ItemTexture_SolIcn{0}{1}", i, j + 1);
                this.m_dtSlot[i][j] = (base.GetControl(name) as ItemTexture);
                name = string.Format("Button_SolBtn{0}{1}", i, j + 1);
                this.m_btSlot[i][j]          = (base.GetControl(name) as Button);
                this.m_btSlot[i][j].TabIndex = j;
            }
            this.SolLeader[i]   = (base.GetControl(string.Format("DrawTexture_SolLeaderSelect{0}", i)) as DrawTexture);
            this.SolSelect[i]   = (base.GetControl(string.Format("DrawTexture_SolLeader{0}", i)) as DrawTexture);
            this.m_lbIntro[i]   = (base.GetControl(string.Format("Label_Introduce{0}", i)) as Label);
            this.m_lbChaName[i] = (base.GetControl(string.Format("Label_CharName{0}", i)) as Label);
        }
        this.m_btAddFriend = (base.GetControl("Button_AddFriend") as Button);
        Button expr_242 = this.m_btAddFriend;

        expr_242.Click = (EZValueChangedDelegate)Delegate.Combine(expr_242.Click, new EZValueChangedDelegate(this.OnAddFriend));
        this.m_lxList  = (base.GetControl("NLB_connection") as NewListBox);
        if (null != this.m_lxList)
        {
            this.m_lxList.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtnClickListBox));
        }
        this.m_bxCurrentPage = (base.GetControl("Box_Page") as Box);
        this.m_btPagePre     = (base.GetControl("Button_Pagepre") as Button);
        Button expr_2D3 = this.m_btPagePre;

        expr_2D3.Click    = (EZValueChangedDelegate)Delegate.Combine(expr_2D3.Click, new EZValueChangedDelegate(this.OnPrePage));
        this.m_btPageNext = (base.GetControl("Button_Pagenext") as Button);
        Button expr_310 = this.m_btPageNext;

        expr_310.Click = (EZValueChangedDelegate)Delegate.Combine(expr_310.Click, new EZValueChangedDelegate(this.OnNextPage));
        for (int k = 0; k < 6; k++)
        {
            this.m_DrawTexture_Slot[k]  = (base.GetControl(string.Format("DrawTexture_Slot{0}", 11 + k)) as DrawTexture);
            this.m_DrawTexture_Slot2[k] = (base.GetControl(string.Format("DrawTexture_Slot{0:00}", 1 + k)) as DrawTexture);
        }
        this.m_lbFriend_DetailInfo = (base.GetControl("NLB_Info") as NewListBox);
        this.m_dtFriendFaceBookImg = (base.GetControl("DrawTexture_fb02") as DrawTexture);
        this.m_dtFriendFaceBookImg.Hide(true);
        this.m_laFriendFaceBookID = (base.GetControl("LB_fbname02") as Label);
        this.m_laFriendFaceBookID.SetText(string.Empty);
        this.m_btClose = (base.GetControl("Button_Close") as Button);
        this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm));
        this.m_Page = new NrPage(this.m_btPagePre, this.m_btPageNext, new REFRESH_VOIDFUC(this.OnPageList));
        base.SetScreenCenter();
        base.ShowBlackBG(0.5f);
        this.OnClickToolBar(this.m_TB.Control_Tab[0]);
    }
    public override void SetComponent()
    {
        this.m_ToolBar = (base.GetControl("ToolBar_01") as Toolbar);
        this.m_ToolBar.Control_Tab[0].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3437");

        UIPanelTab expr_44 = this.m_ToolBar.Control_Tab[0];

        expr_44.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_44.ButtonClick, new EZValueChangedDelegate(this.ClickToolbar));
        this.m_ToolBar.Control_Tab[1].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3438");

        UIPanelTab expr_93 = this.m_ToolBar.Control_Tab[1];

        expr_93.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_93.ButtonClick, new EZValueChangedDelegate(this.ClickToolbar));
        if (NrTSingleton <ContentsLimitManager> .Instance.IsMythEvolutionLimit())
        {
            this.m_ToolBar.Control_Tab[1].Visible = false;
        }
        this.m_DropDownList_Season = (base.GetControl("DDL_Season") as DropDownList);
        this.m_DropDownList_Season.AddValueChangedDelegate(new EZValueChangedDelegate(this.Change_Season));
        this.m_Label_Gold    = (base.GetControl("Label_Gold") as Label);
        this.m_Label_Essence = (base.GetControl("Label_Essence") as Label);
        this.m_NewListBox    = (base.GetControl("NLB_SolList") as NewListBox);
        this.m_Label_MythEvolution_Essence_Num      = (base.GetControl("Label_MythEvolution_Essence_Num") as Label);
        this.m_Label_MythEvolution_DragonHeart_Num  = (base.GetControl("Label_MythEvolution_DragonHeart_Num") as Label);
        this.m_Label_MythEvolution_Descent_Num      = (base.GetControl("Label_MythEvolution_Descent_Num") as Label);
        this.m_Label_MythEvolution_Essence_Num2     = (base.GetControl("Label_MythEvolution_Essence_Num2") as Label);
        this.m_Label_MythEvolution_DragonHeart_Num2 = (base.GetControl("Label_MythEvolution_DragonHeart_Num2") as Label);
        this.m_LB_MythEvolution_Help2 = (base.GetControl("LB_MythEvolution_Help2") as Label);
        this.m_LB_MythEvolution_Help3 = (base.GetControl("LB_MythEvolution_Help3") as Label);
        this.m_BTN_MythEvolutionStart = (base.GetControl("BTN_MythEvolutionStart") as Button);
        this.m_BTN_MythEvolutionStart.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickMythEvolution));
        this.m_DT_BaseSolRank     = (base.GetControl("DT_BaseSolRank") as DrawTexture);
        this.m_DT_ResultSolRank   = (base.GetControl("DT_ResultSolRank") as DrawTexture);
        this.m_DT_BaseSolimg      = (base.GetControl("DT_BaseSolimg") as DrawTexture);
        this.m_DT_ResultSolimg    = (base.GetControl("DT_ResultSolimg") as DrawTexture);
        this.m_Label_BaseSeason   = (base.GetControl("Label_BaseSeason") as Label);
        this.m_Label_ResultSeason = (base.GetControl("Label_ResultSeason") as Label);
        this.m_LB_BaseSolName     = (base.GetControl("LB_BaseSolName") as Label);
        this.m_LB_ResultSolName   = (base.GetControl("LB_ResultSolName") as Label);
        this.m_LB_MythSkillname1  = (base.GetControl("LB_MythSkillname1") as Label);
        this.m_LB_MythSkillLevel1 = (base.GetControl("LB_MythSkillLevel1") as Label);
        this.m_LB_MythSkillname2  = (base.GetControl("LB_MythSkillname2") as Label);
        this.m_LB_MythSkillLevel2 = (base.GetControl("LB_MythSkillLevel2") as Label);
        this.m_Button_BaseSol01   = (base.GetControl("Button_BaseSol01") as Button);
        this.m_Button_BaseSol01.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickMythBaseSol));
        this.m_Button_BaseSol02 = (base.GetControl("Button_BaseSol02") as Button);
        this.m_Button_BaseSol02.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickMythBaseSol));
        this.m_BTN_MythSkill_Info1 = (base.GetControl("BTN_MythSkill_Info1") as Button);
        this.m_BTN_MythSkill_Info1.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickMythSkillDetail));
        this.m_BTN_MythSkill_Info2 = (base.GetControl("BTN_MythSkill_Info2") as Button);
        this.m_BTN_MythSkill_Info2.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickMythSkillDetail));
        this.m_DT_MythSkillIcon1_1 = (base.GetControl("DT_MythSkillIcon1_1") as DrawTexture);
        this.m_DT_MythSkillIcon1_2 = (base.GetControl("DT_MythSkillIcon1_2") as DrawTexture);
        this.m_DT_MythSkill_BG1    = (base.GetControl("DT_MythSkill_BG1") as DrawTexture);
        this.m_DT_MythSkillIcon2_1 = (base.GetControl("DT_MythSkillIcon2_1") as DrawTexture);
        this.m_DT_MythSkillIcon2_2 = (base.GetControl("DT_MythSkillIcon2_2") as DrawTexture);
        this.m_DT_MythSkill_BG2    = (base.GetControl("DT_MythSkill_BG2") as DrawTexture);
        this.m_DT_MythSkillLock    = (base.GetControl("DT_MythSkillLock") as DrawTexture);
        this.m_LB_MythTime         = (base.GetControl("LB_MythTime") as Label);
        this.m_BTN_MythTime        = (base.GetControl("BTN_MythTime") as Button);
        this.m_BTN_MythTime.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickMythTime));
        base.SetScreenCenter();
        base.ShowBlackBG(0.5f);
        if (null != base.BLACK_BG)
        {
            base.BLACK_BG.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm));
        }
    }
Example #7
0
    public override void SetComponent()
    {
        this.m_strText = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1368");

        string text = string.Empty;

        this.m_dtCostIcon1 = (base.GetControl("Icn_Money01") as DrawTexture);
        this.m_dtCostIcon2 = (base.GetControl("Icn_Money02") as DrawTexture);
        this.m_tbTab       = (base.GetControl("ToolBar") as Toolbar);
        this.m_tbTab.Control_Tab[0].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("451");

        this.m_tbTab.Control_Tab[1].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1490");

        UIPanelTab expr_AE = this.m_tbTab.Control_Tab[0];

        expr_AE.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_AE.ButtonClick, new EZValueChangedDelegate(this.OnClickTab));
        UIPanelTab expr_DC = this.m_tbTab.Control_Tab[1];

        expr_DC.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_DC.ButtonClick, new EZValueChangedDelegate(this.OnClickTab));
        this.m_btCost       = (base.GetControl("Button_AuctionCost") as Button);
        this.m_btCost.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickCost));
        this.m_lbCost       = (base.GetControl("Label_AuctionCost") as Label);
        this.m_btDirectCost = (base.GetControl("Button_DirectCost") as Button);
        this.m_btDirectCost.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickDirectCost));
        this.m_lbDirectCost = (base.GetControl("Label_DirectCost") as Label);
        this.m_cbHearts     = (base.GetControl("Toggle_MoneyKind01") as CheckBox);
        this.m_cbHearts.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickPayTypeHearts));
        this.m_cbHearts.SetCheckState(1);
        this.m_cbMoney = (base.GetControl("Toggle_MoneyKind02") as CheckBox);
        this.m_cbMoney.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickPayTypeMoney));
        this.m_cbMoney.SetCheckState(1);
        this.m_btSearch = (base.GetControl("Button_OK") as Button);
        this.m_btSearch.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSearch));
        this.m_dtCostIconHearts = (base.GetControl("Icon_MoneyKindHearts") as DrawTexture);
        this.m_dtCostIconMoney  = (base.GetControl("Icon_MoneyKind_Gold") as DrawTexture);
        this.m_lbCostKind       = (base.GetControl("Label_MoneyKind") as Label);
        this.m_dlItemType       = (base.GetControl("DropDownList_Base01") as DropDownList);
        this.m_dlItemType.AddItem(this.m_strText, eITEM_TYPE.ITEMTYPE_NONE);
        this.m_ItemTypeInfo.Clear();
        for (int i = 1; i <= 20; i++)
        {
            ITEMTYPE_INFO itemTypeInfo = NrTSingleton <NrBaseTableManager> .Instance.GetItemTypeInfo(i.ToString());

            if (itemTypeInfo != null)
            {
                if (0 < itemTypeInfo.AuctionSearch)
                {
                    this.m_ItemTypeInfo.Add(itemTypeInfo.AuctionSearch, itemTypeInfo);
                }
            }
        }
        foreach (ITEMTYPE_INFO current in this.m_ItemTypeInfo.Values)
        {
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromItem(current.TEXTKEY);

            if (!(string.Empty == text))
            {
                this.m_dlItemType.AddItem(text, current);
            }
        }
        this.m_dlItemType.SetViewArea(this.m_dlItemType.Count);
        this.m_dlItemType.RepositionItems();
        this.m_dlItemType.SetFirstItem();
        this.m_dlItemType.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnChangeItemType));
        this.m_btUseMinLevel = (base.GetControl("Button_EquipLv01") as Button);
        this.m_btUseMinLevel.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickUseMinLevel));
        this.m_lbUseMinLevel = (base.GetControl("Label_EquipLv01") as Label);
        this.m_btUseMaxLevel = (base.GetControl("Button_EquipLv02") as Button);
        this.m_btUseMaxLevel.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickUseMaxLevel));
        this.m_lbUseMaxLevel = (base.GetControl("Label_EquipLv02") as Label);
        this.m_dlItemOption  = (base.GetControl("DropDownList_Option01") as DropDownList);
        this.m_dlItemOption.SetViewArea(this.m_dlItemOption.Count);
        this.m_dlItemOption.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnChangeItemOption));
        this.m_btItemSkillLevel = (base.GetControl("Button_Option01") as Button);
        this.m_btItemSkillLevel.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickItemSkillLevel));
        this.m_lbItemSkillLevel = (base.GetControl("Label_Option01") as Label);
        this.m_btItemTradeCount = (base.GetControl("Button_TradeCount") as Button);
        this.m_btItemTradeCount.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickItemTradeCount));
        this.m_lbItemTradeCount = (base.GetControl("Label_TradeCount") as Label);
        this.m_dlSolSeason      = (base.GetControl("DropDownList_Base02") as DropDownList);
        this.m_dlSolSeason.AddItem(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1317"), 0);
        this.m_SeasonData.Add(0);
        List <SOL_GUIDE> valueAllSeason = NrTSingleton <NrTableSolGuideManager> .Instance.GetValueAllSeason();

        for (int i = 0; i < valueAllSeason.Count; i++)
        {
            if (0 < valueAllSeason[i].m_bSeason)
            {
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1208"),
                    "count",
                    valueAllSeason[i].m_bSeason
                });

                this.m_dlSolSeason.AddItem(text, valueAllSeason[i].m_bSeason);
                this.m_SeasonData.Add(valueAllSeason[i].m_bSeason);
            }
        }
        this.m_dlSolSeason.SetViewArea(this.m_dlSolSeason.Count);
        this.m_dlSolSeason.RepositionItems();
        this.m_dlSolSeason.SetFirstItem();
        this.m_dlSolSeason.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnChangeSolSeason));
        this.m_btSolLevel = (base.GetControl("Button_EquipLv03") as Button);
        this.m_btSolLevel.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSolLevel));
        this.m_lbSolLevel      = (base.GetControl("Label_EquipLv03") as Label);
        this.m_tfSolName       = (base.GetControl("TextField_SearchName") as TextField);
        this.m_btSolTradeCount = (base.GetControl("Button_TradeCount01") as Button);
        this.m_btSolTradeCount.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSolTradeCount));
        this.m_lbSolTradeCount = (base.GetControl("Label_TradeCount1") as Label);
        if (!AuctionMainDlg.IsPayTypeHearts())
        {
            this.m_cbHearts.Hide(true);
            this.m_dtCostIconHearts.Hide(true);
            this.m_cbMoney.SetCheckState(1);
            AuctionMainDlg.SetChangePayTexture(this.m_dtCostIcon1, this.m_dtCostIcon2, AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD);
        }
        if (!AuctionMainDlg.IsPayTypeMoney())
        {
            this.m_cbMoney.Hide(true);
            this.m_dtCostIconMoney.Hide(true);
            this.m_cbHearts.SetCheckState(1);
            AuctionMainDlg.SetChangePayTexture(this.m_dtCostIcon1, this.m_dtCostIcon2, AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS);
        }
        if (!AuctionMainDlg.IsPayTypeHearts() || !AuctionMainDlg.IsPayTypeMoney())
        {
            this.m_lbCostKind.Hide(true);
            this.m_cbHearts.Hide(true);
            this.m_cbMoney.Hide(true);
            this.m_dtCostIconHearts.Hide(true);
            this.m_dtCostIconMoney.Hide(true);
        }
        base.SetScreenCenter();
        base.ShowBlackBG(0.5f);
    }