public override void SetComponent() { base.SetComponent(); this.m_DrawTexture_DrawTexture0 = (base.GetControl("DrawTexture_DrawTexture0") as DrawTexture); this.m_DrawTexture_DrawTexture0.AddBoxCollider(); this.m_DrawTexture_DrawTexture0.SetUseBoxCollider(true); this.m_DrawTexture_DrawTexture1 = (base.GetControl("DrawTexture_DrawTexture1") as DrawTexture); this.m_DrawTexture_DrawTexture1.AddBoxCollider(); this.m_DrawTexture_DrawTexture1.SetUseBoxCollider(true); this.m_Button_Button7 = (base.GetControl("Button_Button7") as Button); Button expr_7C = this.m_Button_Button7; expr_7C.Click = (EZValueChangedDelegate)Delegate.Combine(expr_7C.Click, new EZValueChangedDelegate(this.OnButtonClickExit)); this.m_Label_Label2 = (base.GetControl("Label_Label2") as Label); this.m_Label_Label3 = (base.GetControl("Label_Label3") as Label); this.m_FlashLabel_Label1 = (base.GetControl("FlashLabel_Lable1") as FlashLabel); this.m_FlashLabel_Label1.lineSpacing = 1.4f; this.m_Button_Button12 = (base.GetControl("Button_Button12") as Button); Button expr_10B = this.m_Button_Button12; expr_10B.Click = (EZValueChangedDelegate)Delegate.Combine(expr_10B.Click, new EZValueChangedDelegate(this.OnButtonClickPrev)); this.m_Box_Box11 = (base.GetControl("Box_Box11") as Box); this.m_Button_Button13 = (base.GetControl("Button_Button13") as Button); Button expr_15E = this.m_Button_Button13; expr_15E.Click = (EZValueChangedDelegate)Delegate.Combine(expr_15E.Click, new EZValueChangedDelegate(this.OnButtonClickNext)); base.SetSize(base.GetSize().x, base.GetSize().y); base.Draggable = false; base.SetLocation(base.GetLocation().x, GUICamera.height - base.GetSize().y, 100f); }
public override void SetComponent() { this.bgImage = (base.GetControl("DrawTexture_BG") as DrawTexture); this.bgImage.Visible = false; this.nameBack = (base.GetControl("DrawTexture_SolNameBK") as DrawTexture); this.nameBack.Visible = false; this.closeBack = (base.GetControl("DrawTexture_CloseBK01") as DrawTexture); this.closeBack.Visible = false; this.solName = (base.GetControl("FlashLabel_SolName01") as FlashLabel); this.solName.Visible = false; this.closeText = (base.GetControl("FlashLabel_CloseText01") as FlashLabel); this.closeText.Visible = false; this.closeUIButton = (base.GetControl("Button_CloseButton01") as Button); this.closeUIButton.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickCloseButton)); this.closeUIButton.Visible = false; this.skipButton = (base.GetControl("Button_Skip") as Button); this.skipButton.Visible = false; this.solMovietTrans = (base.GetControl("Button_MovieBtn") as Button); this.solMovietTrans.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSolMovie)); this.solMovietTrans.Visible = false; this.solMovie = (base.GetControl("BT_Movie") as Button); this.solMovie.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSolMovie)); this.solMovie.Visible = false; this.solMovieText = (base.GetControl("LB_Movie") as Label); this.solMovieText.Visible = false; this.SetData(); base.DonotDepthChange(360f); }
public override void SetComponent() { this.m_lbTitle = (base.GetControl("Label_title") as Label); this.m_lbClass = (base.GetControl("Label_name") as Label); this.m_lbType = (base.GetControl("Label_kind") as Label); this.m_lbMainOption = (base.GetControl("Label_01") as Label); this.m_lbSubOption = (base.GetControl("Label_02") as FlashLabel); this.m_lbText = (base.GetControl("Label_03") as FlashLabel); this.m_lbItemSkillName = (base.GetControl("Label_04") as FlashLabel); this.m_lbItemSkillText = (base.GetControl("Label_05") as FlashLabel); this.m_lbItemSkillText2 = (base.GetControl("Label_07") as FlashLabel); this.m_flMainValue = (base.GetControl("FlashLabel_01") as FlashLabel); this.m_flSubValue = (base.GetControl("FlashLabel_02") as FlashLabel); this.m_itItemTex = (base.GetControl("ItemTexture_Item") as ItemTexture); this.m_txClass = (base.GetControl("DrawTexture_class") as DrawTexture); this.m_txBG = (base.GetControl("DrawTexture_BG") as DrawTexture); this.m_btnEquip = (base.GetControl("Button_Button01") as Button); this.m_btnUpgrade = (base.GetControl("Button_Button02") as Button); this.m_btnSell = (base.GetControl("Button_Button03") as Button); this.m_btnEquip.Visible = false; this.m_btnUpgrade.Visible = false; this.m_btnSell.Visible = false; this.m_txSetItemView_01 = (base.GetControl("DT_GRA") as DrawTexture); this.m_txSetItemView_02 = (base.GetControl("DT_SETICON") as DrawTexture); this.m_txSetItemView_03 = (base.GetControl("DT_SetText") as DrawTexture); this.m_btnSetItemView = (base.GetControl("BT_SET") as Button); this.m_btnSetItemView.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSetItemView)); this.SetItemView(false); this.m_txLine = (base.GetControl("DrawTexture_MainBorder") as DrawTexture); }
public override void SetComponent() { this.m_dxMainBG = (base.GetControl("DrawTexture_MainBG") as DrawTexture); this.m_dxMainBG.SetSize(GUICamera.width, GUICamera.height); this.m_dxMainBG.SetTextureFromBundle("ui/item/bg_solcompose2"); this.m_lbTitle = (base.GetControl("Label_Title") as Label); this.m_dxTitleLine = (base.GetControl("DrawTexture_TitleLine") as DrawTexture); this.m_btSkip = (base.GetControl("Button_ButtonSkip") as Button); this.m_btSkip.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_Button)); this.m_flCloseText = (base.GetControl("FlashLabel_CloseText") as FlashLabel); this.m_flCloseText.Visible = false; this.m_ShowList1 = (base.GetControl("NewListBox_ItemResult1") as NewListBox); this.m_ShowList1.touchScroll = false; this.m_ShowList1.SelectStyle = "Com_B_Transparent"; this.m_ShowList1.clipContents = false; this.m_ShowList2 = (base.GetControl("NewListBox_ItemResult2") as NewListBox); this.m_ShowList2.touchScroll = false; this.m_ShowList2.SelectStyle = "Com_B_Transparent"; this.m_ShowList2.clipContents = false; this.m_ShowList3 = (base.GetControl("NewListBox_ItemResult3") as NewListBox); this.m_ShowList3.touchScroll = false; this.m_ShowList3.SelectStyle = "Com_B_Transparent"; this.m_ShowList3.clipContents = false; this.m_dxMiddleLine = (base.GetControl("DrawTexture_MiddleLine") as DrawTexture); this.SetPositon(); }
public override void SetComponent() { this.m_NPCTalk_BG = (base.GetControl("NPCTalk_BG") as Box); this.m_NPCTalk_Transbutton = (base.GetControl("NPCTalk_Transbutton") as Button); this.m_DrawTexture_DrawTexture27 = (base.GetControl("DrawTexture_DrawTexture27") as DrawTexture); this.m_NPCTalk_close = (base.GetControl("NPCTalk_close") as Button); this.m_NPCTalk_npcname = (base.GetControl("NPCTalk_npcname") as Label); this.m_NPCTalk_talklabel = (base.GetControl("NPCTalk_talklabel") as FlashLabel); this.m_Button_Button36 = (base.GetControl("Button_Button36") as Button); base.SetSize(GUICamera.width, base.GetSize().y); base.SetLocation(base.GetLocation().x, GUICamera.height - base.GetSize().y); this.m_NPCTalk_BG.SetSize(GUICamera.width, this.m_NPCTalk_BG.GetSize().y); this.m_NPCTalk_Transbutton.SetLocation((float)this.PointX(this.m_NPCTalk_Transbutton.GetLocation().x), this.m_NPCTalk_Transbutton.GetLocationY()); this.m_NPCTalk_Transbutton.SetSize(GUICamera.width, this.m_NPCTalk_Transbutton.GetSize().y); float x = (GUICamera.width - this.m_NPCTalk_npcname.GetSize().x + 512f) / 2f; this.m_NPCTalk_npcname.SetLocation(x, this.m_NPCTalk_npcname.GetLocationY()); x = (GUICamera.width - this.m_DrawTexture_DrawTexture27.GetSize().x + 512f) / 2f; this.m_DrawTexture_DrawTexture27.SetLocation(x, this.m_DrawTexture_DrawTexture27.GetLocationY()); x = (GUICamera.width - this.m_NPCTalk_talklabel.width + 512f) / 2f; this.m_NPCTalk_talklabel.SetLocation(x, this.m_NPCTalk_talklabel.GetLocationY()); this.m_NPCTalk_talklabel.SetFlashLabel(string.Empty); this.m_NPCTalk_close.SetLocation(GUICamera.width - this.m_NPCTalk_close.GetSize().x - 10f, this.m_NPCTalk_close.GetLocationY()); this.m_Button_Button36.SetLocation(GUICamera.width - this.m_Button_Button36.GetSize().x - 10f, this.m_Button_Button36.GetLocationY()); this.m_Face = (base.GetControl("DrawTexture_NPCFace01") as DrawTexture); this.m_Face.SetLocation(this.m_Face.GetLocation().x, -232f); Button expr_2C2 = this.m_NPCTalk_close; expr_2C2.Click = (EZValueChangedDelegate)Delegate.Combine(expr_2C2.Click, new EZValueChangedDelegate(this.CloseTakeTalk)); Button expr_2E9 = this.m_Button_Button36; expr_2E9.Click = (EZValueChangedDelegate)Delegate.Combine(expr_2E9.Click, new EZValueChangedDelegate(this.OnTake)); }
public override void SetComponent() { this.m_lbItemTypeName = (base.GetControl("Label_name") as Label); this.m_itItemTex = (base.GetControl("ItemTexture_Item") as ItemTexture); this.m_lbItemTitle = (base.GetControl("Label_title") as Label); this.m_lbMainOption = (base.GetControl("Label_01") as Label); this.m_flMainValue = (base.GetControl("FlashLabel_01") as FlashLabel); this.m_lbSubOption = (base.GetControl("Label_02") as FlashLabel); this.m_flSubValue = (base.GetControl("FlashLabel_02") as FlashLabel); this.m_lbText = (base.GetControl("Label_03") as FlashLabel); this.m_txLine = (base.GetControl("DrawTexture_MainBorder") as DrawTexture); this.m_txBG = (base.GetControl("DrawTexture_BG") as DrawTexture); this.m_btClose = (base.GetControl("Button_Button01") as Button); this.m_btClose.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickClose)); this.m_btAllUse = (base.GetControl("Button_Button02") as Button); this.m_btAllUse.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickUse)); this.m_ItemOpenValueSlider = (base.GetControl("HSlider_HSlider1") as HorizontalSlider); this.m_ItemOpenValueSliderBG = (base.GetControl("DrawTexture_SliderBG") as DrawTexture); this.m_ItemOpenValue_textBG = (base.GetControl("DrawTexture_Count") as DrawTexture); this.m_ItemOpenValue_Button = (base.GetControl("Button_NumPad") as Button); this.m_ItemOpenValue_Button.AddValueChangedDelegate(new EZValueChangedDelegate(this.BtClickInputOpenItem)); this.m_lbItemOpenValue_Text = (base.GetControl("Label_Count") as Label); this.m_ItemOpenValue_Minus = (base.GetControl("Button_MINUS") as Button); this.m_ItemOpenValue_Minus.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnValueMinus)); this.m_ItemOpenValue_Add = (base.GetControl("Button_PLUS") as Button); this.m_ItemOpenValue_Add.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnValueAdd)); base.SetScreenCenter(); base.SetLocation(base.GetLocationX(), 10f); }
public override void SetComponent() { this.bgImage = (base.GetControl("DrawTexture_BG") as DrawTexture); this.bgImage.Visible = false; this.nameBack = (base.GetControl("DrawTexture_SolNameBK") as DrawTexture); this.nameBack.Visible = false; this.closeBack = (base.GetControl("DrawTexture_CloseBK01") as DrawTexture); this.closeBack.Visible = false; this.solName = (base.GetControl("FlashLabel_SolName01") as FlashLabel); this.solName.Visible = false; this.closeText = (base.GetControl("FlashLabel_CloseText01") as FlashLabel); this.closeText.Visible = false; this.closeUIButton = (base.GetControl("Button_CloseButton01") as Button); this.closeUIButton.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickCloseButton)); this.closeUIButton.Visible = false; this.skipButton = (base.GetControl("Button_Skip") as Button); this.skipButton.Visible = false; this.solMovietTrans = (base.GetControl("Button_MovieBtn") as Button); this.solMovietTrans.Visible = false; this.solMovie = (base.GetControl("BT_Movie") as Button); this.solMovie.Visible = false; this.solMovieText = (base.GetControl("LB_Movie") as Label); this.solMovieText.Visible = false; this.SetLocationData(); base.DonotDepthChange(360f); if (null != base.BLACK_BG) { base.BLACK_BG.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.CloseForm)); base.BLACK_BG.gameObject.transform.localPosition = new Vector3(base.BLACK_BG.gameObject.transform.localPosition.x, base.BLACK_BG.gameObject.transform.localPosition.y, 300f); } }
public void FlashText(FlashLabel labelType, float duration, float interval) { turnAroundTextFlashDuration = duration; turnAroundFlashInterval = interval; Text textLabel = labelType == FlashLabel.Info ? infoText : turnAroundText; textLabel.enabled = true; StartCoroutine(DisplayTurnAroundText(textLabel)); }
public override void SetComponent() { this.m_laBoxTitle = (base.GetControl("Label_Title") as Label); this.m_dtMainBG = (base.GetControl("DrawTexture_ImageBG") as DrawTexture); this.m_dtMainBG.SetTextureFromBundle("UI/Etc/rarebox"); this.m_dtMainBG.Hide(false); this.m_ivMainBoxItem = (base.GetControl("DrawTexture_Item") as DrawTexture); if (this.m_ivMainBoxItem != null) { Transform child = NkUtil.GetChild(this.m_ivMainBoxItem.gameObject.transform, "child_effect"); if (child == null) { NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_UI_BOXOPEN", this.m_ivMainBoxItem, this.m_ivMainBoxItem.GetSize()); this.m_ivMainBoxItem.AddGameObjectDelegate(new EZGameObjectDelegate(this.effectBoxOpen)); } } this.m_btUseBoxItem = (base.GetControl("Button_OK") as Button); this.m_btUseBoxItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickUseBoxItem)); this.m_btUseBoxItem.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("573")); this.m_NlbItemListBox = (base.GetControl("NewListBox_Item") as NewListBox); this.m_NlbItemListBox.Reserve = false; this.m_flToolTip1 = (base.GetControl("FlashLabel_Tooltip1") as FlashLabel); this.m_flToolTip2 = (base.GetControl("FlashLabel_Tooltip2") as FlashLabel); this.m_flToolTip3 = (base.GetControl("FlashLabel_Tooltip3") as FlashLabel); this.m_btSlide1 = (base.GetControl("Button_Slide1") as Button); this.m_btSlide1.SetLocation(this.m_btSlide1.GetLocation().x, this.m_btSlide1.GetLocationY(), this.m_btSlide1.GetLocation().z - 1.1f); this.m_btSlide2 = (base.GetControl("Button_Slide2") as Button); this.m_btSlide2.SetLocation(this.m_btSlide2.GetLocation().x, this.m_btSlide2.GetLocationY(), this.m_btSlide2.GetLocation().z - 1.1f); BoxCollider boxCollider = (BoxCollider)this.m_btSlide1.gameObject.GetComponent(typeof(BoxCollider)); if (boxCollider != null) { boxCollider.size = new Vector3(0f, 0f, 0f); } boxCollider = (BoxCollider)this.m_btSlide2.gameObject.GetComponent(typeof(BoxCollider)); if (boxCollider != null) { boxCollider.size = new Vector3(0f, 0f, 0f); } this.m_dwSlideBG1 = (base.GetControl("DrawTexture_SlideBG1") as DrawTexture); this.m_dwSlideBG2 = (base.GetControl("DrawTexture_SlideBG2") as DrawTexture); this.m_dwSlideBG1.SetLocation(this.m_dwSlideBG1.GetLocation().x, this.m_dwSlideBG1.GetLocationY(), this.m_dwSlideBG1.GetLocation().z - 1f); this.m_dwSlideBG2.SetLocation(this.m_dwSlideBG2.GetLocation().x, this.m_dwSlideBG2.GetLocationY(), this.m_dwSlideBG2.GetLocation().z - 1f); this.m_btSlide1.Hide(true); this.m_dwSlideBG1.Hide(true); this.m_laSelectItemName = (base.GetControl("Label_Item") as Label); this.m_laSelectItemCount = (base.GetControl("Label_Count") as Label); this.m_flToolTip4 = (base.GetControl("FlashLabel_Tooltip4") as FlashLabel); this.m_flToolTip5 = (base.GetControl("FlashLabel_Tooltip5") as FlashLabel); this.m_flToolTip6 = (base.GetControl("FlashLabel_Tooltip6") as FlashLabel); base.SetScreenCenter(); }
public virtual void Add(ListItem item) { if (this.bLabelScroll) { char[] separator = new char[] { '\n' }; string[] array = item.GetColumnStr(0).Split(separator); for (int i = 0; i < array.Length; i++) { GameObject gameObject = new GameObject("ListItem"); FlashLabel flashLabel = gameObject.AddComponent <FlashLabel>(); flashLabel.FontSize = (float)((int)this.m_faFontSize[0]); flashLabel.FontEffect = this.fontEffect; flashLabel.FontColor = string.Empty; flashLabel.anchor = this.columnTextAnchor[0]; flashLabel.width = this.viewableArea.x - 20f; if (null != base.GetItem(this.startIndex)) { base.RemoveItemDonotPositionUpdate(this.startIndex, true); flashLabel.SetFlashLabel(array[i]); base.InsertItemDonotPosionUpdate(flashLabel, this.startIndex, null, true); } else { flashLabel.SetFlashLabel(array[i]); base.InsertItemDonotPosionUpdate(flashLabel, this.startIndex, null, true); } this.startIndex++; } } else if (this.m_bReserve) { if (this.items.Count == 0) { this.MakeContainer(item); } else { this.reserveItems.Enqueue(item); } } else { this.MakeContainer(item); } }
public void _SetComponetBasic() { this._BG = (base.GetControl("Talk_BG") as DrawTexture); this._BG.Visible = false; this._Text = (base.GetControl("Talk_label") as FlashLabel); this.m_HelpTip = (base.GetControl("DrawTexture_Helpicon") as DrawTexture); this.m_HelpBack = (base.GetControl("DrawTexture_HelpText") as DrawTexture); this.m_HelpText = (base.GetControl("Label_HelpText") as Label); this.m_Touch = (base.GetControl("DrawTexture_Point") as Button); this.m_Touch.PlayAni(true); this.m_Touch.renderer.enabled = false; BoxCollider component = this.m_Touch.gameObject.GetComponent <BoxCollider>(); if (null != component) { UnityEngine.Object.Destroy(component); } }
public override void SetComponent() { this.boxBG = (base.GetControl("DramaTalk_BG") as Box); this.lblTalkName = (base.GetControl("Drama_Npcname") as Label); this.lblTalk = (base.GetControl("Drama_Talk") as FlashLabel); this.btDramaSkip = (base.GetControl("Button_DramaPass") as Button); Button expr_5E = this.btDramaSkip; expr_5E.Click = (EZValueChangedDelegate)Delegate.Combine(expr_5E.Click, new EZValueChangedDelegate(this.Event_SkipDrama)); if (this.lblTalkName != null) { this.lblTalkName.SetText(string.Empty); } if (this.lblTalk != null) { this.lblTalk.SetFlashLabel(string.Empty); } this.SetPosition(); }
public override void SetComponent() { this.m_lbCharName = (base.GetControl("CharTalk_Charname") as Label); this.m_lbTalk = (base.GetControl("CharTalk_talklabel") as FlashLabel); this.m_dwCharFace = (base.GetControl("DrawTexture_CharFace01") as DrawTexture); this.m_dwBG = (base.GetControl("CharTalk_BG") as DrawTexture); this.m_dwBGLine1 = (base.GetControl("CharTalk_BG_line") as DrawTexture); this.m_dwBGLine2 = (base.GetControl("CharTalk_BG_line2") as DrawTexture); this.m_btCharTalk = (base.GetControl("Button_TalkSkip") as Button); Button expr_A0 = this.m_btCharTalk; expr_A0.Click = (EZValueChangedDelegate)Delegate.Combine(expr_A0.Click, new EZValueChangedDelegate(this.OnClickSkip)); base.SetSize(GUICamera.width, base.GetSizeY()); base.SetLocation(0f, GUICamera.height - base.GetSizeY()); this.m_dwBG.SetSize(GUICamera.width, this.m_dwBG.GetSize().y); this.m_dwBGLine1.SetSize(GUICamera.width, this.m_dwBGLine1.GetSize().y); this.m_dwBGLine2.SetSize(GUICamera.width, this.m_dwBGLine2.GetSize().y); this.m_btCharTalk.SetSize(GUICamera.width, GUICamera.height); this.Hide(); }
public override void SetComponent() { this.backImage = (base.GetControl("NPCTalk_BG") as DrawTexture); this.m_CenterNpcImage = (base.GetControl("DrawTexture_NPCFace01") as DrawTexture); this.m_CenterNpcImage.SetTexture(eCharImageType.LARGE, 242, -1, string.Empty); this.m_CenterNpcName = (base.GetControl("NPCTalk_npcname") as Label); this.m_CenterNpcName.Text = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(242); this.m_CenterNpcNameBack[0] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_left_line") as DrawTexture); this.m_CenterNpcNameBack[1] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_right_line") as DrawTexture); this.m_CenterNpcNameBack[2] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_left") as DrawTexture); this.m_CenterNpcNameBack[3] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_right") as DrawTexture); this.close = (base.GetControl("NPCTalk_close") as Button); this.close.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickClose)); this.excute = (base.GetControl("Button_Button9") as Button); this.excute.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickType)); this.talkText = (base.GetControl("NPCTalk_talklabel") as FlashLabel); this.talkText.Visible = true; base.SetShowLayer(2, false); this.RepositionControl(); }
public override void SetComponent() { this.m_bttransbutton = (base.GetControl("Button_Transbutton") as Button); this.m_bttransbutton.Click = new EZValueChangedDelegate(this.ClickClose); this.m_bttransbutton.UseDefaultSound = false; this.backImage = (base.GetControl("NPCTalk_BG") as DrawTexture); this.m_CenterNpcImage = (base.GetControl("DrawTexture_NPCFace01") as DrawTexture); this.m_CenterNpcImage.SetTexture(eCharImageType.LARGE, 242, -1, string.Empty); this.m_CenterNpcName = (base.GetControl("NPCTalk_npcname") as Label); this.m_CenterNpcName.Text = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(242); this.m_CenterNpcNameBack[0] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_left_line") as DrawTexture); this.m_CenterNpcNameBack[1] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_right_line") as DrawTexture); this.m_CenterNpcNameBack[2] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_left") as DrawTexture); this.m_CenterNpcNameBack[3] = (base.GetControl("DrawTexture_NPCTalk_npcnameBG_right") as DrawTexture); this.close = (base.GetControl("NPCTalk_close") as Button); this.close.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickClose)); this.excute = (base.GetControl("Button_Button9") as Button); this.excute.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickExcuteGameGuide)); this.talkText = (base.GetControl("NPCTalk_talklabel") as FlashLabel); this.talkText.Visible = true; this.item1 = (base.GetControl("ItemTexture_Item1") as ItemTexture); this.backItem1 = (base.GetControl("DrawTexture_itemtexture1") as DrawTexture); this.item2 = (base.GetControl("ItemTexture_Item2") as ItemTexture); base.SetShowLayer(2, false); this.RepositionControl(); NrTSingleton <NkCharManager> .Instance.ShowHideAll(false, false, false); this.SetTalkText(); if (null != Camera.main) { this.m_WorldCamera = Camera.main.GetComponent <maxCamera>(); if (this.m_WorldCamera != null) { NrTSingleton <NkClientLogic> .Instance.BackMainCameraInfo(); this.m_WorldCamera.StopCameraControl(); } } }
public override void SetComponent() { this.NPCTalk_BG = (base.GetControl("NPCTalk_BG") as Box); this.BGLine1 = (base.GetControl("NPCTalk_BG_line") as DrawTexture); this.BGLine2 = (base.GetControl("NPCTalk_BG_line2") as DrawTexture); this.NPCName = (base.GetControl("NPCTalk_npcname") as Label); this.NPCTalk = (base.GetControl("NPCTalk_talklabel") as FlashLabel); this.MiniDramaSkip = (base.GetControl("Button_CancelBTN") as Button); Button expr_8A = this.MiniDramaSkip; expr_8A.Click = (EZValueChangedDelegate)Delegate.Combine(expr_8A.Click, new EZValueChangedDelegate(this.Event_SkipMiniDrama)); if (this.NPCName != null) { this.NPCName.SetText(string.Empty); } if (this.NPCTalk != null) { this.NPCTalk.SetFlashLabel(string.Empty); } this.Show(); this.ShowBG(this._BGShow); this.SetPosition(); }
public void SetScrollLabel(string text) { this.clipWhenMoving = true; base.ClearList(true); char[] separator = new char[] { '\n' }; string[] array = text.Split(separator); for (int i = 0; i < array.Length; i++) { GameObject gameObject = new GameObject("ScrollLabel" + i); FlashLabel flashLabel = gameObject.AddComponent <FlashLabel>(); flashLabel.FontSize = (float)this.fontSize; flashLabel.FontEffect = this.fontEffect; flashLabel.FontColor = this.colorText; flashLabel.anchor = this.anchorPos; flashLabel.width = this.viewableArea.x - 20f; flashLabel.SetFlashLabel(array[i]); base.InsertItemDonotPosionUpdate(flashLabel, i, null, true); } this.RepositionItems(); this.clipWhenMoving = true; }
public void _SetComponetBasic() { this.m_dtTotalBG = (base.GetControl("Talk_BG") as DrawTexture); this.m_flText = (base.GetControl("Talk_label") as FlashLabel); }
public override void SetComponent() { this.m_lbSetItemInfo = (base.GetControl("FLASHLABEL_SET") as FlashLabel); this.m_lbSetItemName = (base.GetControl("LB_SETNAME") as Label); }