1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using FairyGUI;
- using UI.BlindBox;
- using System.Collections;
- using System.Collections.Generic;
- using ET;
- namespace GFGGame
- {
- public class BlindBoxRuleView : BaseWindow
- {
- private UI_RuleTipsUI _ui;
- public override void Dispose()
- {
- if (_ui != null)
- {
- _ui.Dispose();
- _ui = null;
- }
- base.Dispose();
- }
- protected override void OnInit()
- {
- base.OnInit();
- packageName = UI_RuleTipsUI.PACKAGE_NAME;
- _ui = UI_RuleTipsUI.Create();
- this.viewCom = _ui.target;
- modal = true;
- this.viewCom.Center();
- viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
- }
- protected override void OnShown()
- {
- base.OnShown();
- int id = (int)this.viewData;
- string content = TextDescCfgArray.Instance.GetCfg(id).text;
- _ui.m_desc.text = content;
- }
- protected override void OnHide()
- {
- base.OnHide();
- }
- }
- }
|