1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
using System;
using System.Collections.Generic;
using UILib;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient.UI
{
internal class XGuildBoonView : DlgBase<XGuildBoonView, XGuildBoonBehaviour>
{
public override string fileName
{
get
{
return "Guild/GuildSystem/GuildBoonDlg";
}
}
public override int layer
{
get
{
return 1;
}
}
public override bool pushstack
{
get
{
return true;
}
}
public override bool hideMainMenu
{
get
{
return true;
}
}
public override bool autoload
{
get
{
return true;
}
}
private static Dictionary<XSysDefine, string> _BoonBg = new Dictionary<XSysDefine, string>(default(XFastEnumIntEqualityComparer<XSysDefine>));
private XSubSysRedPointMgr redpointMgr = new XSubSysRedPointMgr();
static XGuildBoonView()
{
XGuildBoonView._BoonBg.Add(XSysDefine.XSys_GuildBoon_RedPacket, "gh_btn_ghhb");
XGuildBoonView._BoonBg.Add(XSysDefine.XSys_GuildBoon_Shop, "gh_btn_ghsd");
XGuildBoonView._BoonBg.Add(XSysDefine.XSys_GuildBoon_Salay, "gh_btn_ghhyd");
}
protected override void Init()
{
}
protected override void OnUnload()
{
base.OnUnload();
}
protected override void OnShow()
{
base.OnShow();
this.Refresh();
base.uiBehaviour.m_ScrollView.ResetPosition();
}
public override void RegisterEvent()
{
base.RegisterEvent();
base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick));
}
public override void StackRefresh()
{
base.StackRefresh();
this.Refresh();
}
private bool OnCloseClick(IXUIButton button)
{
this.SetVisibleWithAnimation(false, null);
return true;
}
public void Refresh()
{
}
public void RefreshRedPoints()
{
this.redpointMgr.UpdateRedPointUI();
}
private void OnBoonClick(IXUITexture sp)
{
switch ((int)sp.ID)
{
case 830:
DlgBase<XGuildSignRedPackageView, XGuildSignRedPackageBehaviour>.singleton.SetVisibleWithAnimation(true, null);
break;
case 831:
DlgBase<MallSystemDlg, MallSystemBehaviour>.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Guild, 0UL);
break;
case 833:
DlgBase<GuildSalayDlg, GuildSalayBehavior>.singleton.SetVisibleWithAnimation(true, null);
break;
}
}
}
}
|