-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodVariable.bas
207 lines (166 loc) · 4.98 KB
/
modVariable.bas
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
Attribute VB_Name = "modVariable"
Option Explicit
Public Type tagPointS
X As Single
Y As Single
End Type
Public Type tagPointI
Col As Integer
Row As Integer
End Type
Public Type tagWindowInfo
Show As Boolean
Center As Boolean
Left As Single
Top As Single
Width As Single
Height As Single
DockStyle As eDockStyle
DockPosition As Single
End Type
Public Type tagUserInfo
UserName As String
Password As String
UserClass As String
Email As String
Face As Long
Name As String
Sex As Long
Age As Long
Country As String
State As String
City As String
Win As Long
Lose As Long
Draw As Long
GameTimes As Long
Score As Long
End Type
Public Type tagTableInfo
TableName As String
Creator As String ' 用户名
CreatorName As String ' 昵称
Visitor As String
VisitorName As String
TableType As Long
Timer As Long
UpLevel As Boolean
LastTime As Date
ip As String
LANIP As String
Port As Long
End Type
Public SoundBuffer() As Byte
' 应用程序路径
Public gstrAppPath As String
' 服务器端安全检查
Public gstrSecurity1 As String
Public gstrSecurity2 As String
Public gstrLocalPassword As String ' *本地口令字
Public gstrAzDGPrivateKey As String ' *与服务器通信的密钥
Public TablePos As tagPointS ' 棋盘图片显示坐标
Public Current As tagPointI ' 当前棋盘位置
Public LastDown As tagPointI
Public LastMan As Byte
Public gsngCaptionHeight As Single
Public gsngBorderX As Single
Public gsngBorderY As Single
''' 图像对象
Public BlackMan As StdPicture
Public WhiteMan As StdPicture
Public SelBlackMan As StdPicture
Public SelWhiteMan As StdPicture
Public DefaultCursor As StdPicture
Public HandCursor As StdPicture
Public BlackCursor As StdPicture
Public WhiteCursor As StdPicture
Public HandUpCursor As StdPicture
Public HandDownCursor As StdPicture
Public TipsBitmap As StdPicture
Public ChessBoard As StdPicture
Public GameTitle As StdPicture
Public NoFocusTitle As StdPicture
Public SelectIcon As StdPicture
Public SelectDown As StdPicture
Public objLightOn As StdPicture
Public objLightOff As StdPicture
Public objLightYellow As StdPicture
Public objSoundPlay As StdPicture
Public objSoundStop As StdPicture
Public objOpenFile As StdPicture
' 全局配置变量,用于暂时保存配置数据
Public gblnSave_OfflineMode As Boolean
Public glngSave_Level As Long
Public glngSave_OfflineFace As Long
Public gstrSave_UserList(MAX_USER_LIST) As String
Public gblnSave_AutoLogin As Boolean
Public gblnSave_SavePassword As Boolean
Public gstrSave_UserName As String
Public gstrSave_Password As String
Public gwifSave_MainWindow As tagWindowInfo
Public gwifSave_OnlineWindow As tagWindowInfo
Public gwifSave_TableWindow As tagWindowInfo
Public gwifSave_ChatWindow As tagWindowInfo
Public gwifSave_PublicChatWindow As tagWindowInfo
Public gsngSave_TableItemWidth(MAX_TABLE_ITEM) As Single
Public glngSave_TableSort As Long
Public glngSave_TableSortKey As Long
Public glngSave_TableAutoReloadTime As Long
Public gblnSave_TableAutoReload As Boolean
Public gsngSave_OnlineItemWidth(MAX_ONLINE_ITEM) As Single
Public glngSave_OnlineSort As Long
Public glngSave_OnlineSortKey As Long
Public glngSave_OnlineAutoReloadTime As Long
Public gblnSave_OnlineAutoReload As Boolean
Public glngSave_PublicChatWindowState As Long
Public gstrSave_FacePath As String
Public glngSave_FaceNumber As Long
Public gblnSave_DownTip As Boolean
Public gstrSave_PlayListPath As String
Public glngSave_PlayListNumber As Long
Public glngSave_PlayListPosition As Long
Public gstrSave_PlayListName(MAX_PLAY_LIST) As String
Public gstrSave_SoundPath As String
Public gstrSave_SoundName(MAX_SOUND) As String
Public gstrSave_SoundValue(MAX_SOUND) As String
Public gstrSave_ServerUrl As String
Public glngSave_GamePort As Long
Public gblnSave_UseProxy As Boolean
Public gstrSave_HttpProxyIP As String
Public glngSave_HttpProxyPort As Long
Public gstrSave_Socks5ProxyIP As String
Public glngSave_Socks5ProxyPort As Long
Public gstrSave_Socks5Username As String
Public gstrSave_Socks5Password As String
' 保存创建棋局信息
Public glngSave_TableType As Long
Public glngSave_TableTimer As Long
Public glngSave_TableUpLevel As Long
' 保存最后使用的选项页
Public glngSave_OptionPage As Long
' 保存其它窗体的位置
Public gptsSave_ViewUserInfo As tagPointS
Public gptsSave_EditUserInfo As tagPointS
Public gptsSave_TableInfo As tagPointS
' 用户信息变量
Public gMyUserInfo As tagUserInfo
Public gYourUserInfo As tagUserInfo
' 棋局信息变量
Public gMainTableInfo As tagTableInfo
Public gblnSndCard As Boolean
Public gBackgroundMusic As Mmedia
Public gSoundEffects As Mmedia
Public WindowWidth As Single
Public WindowHeight As Single
' 连接、登陆等全局 Bool 变量
Public gblnConnect As Boolean
Public gblnLogin As Boolean
Public gblnCreator As Boolean
Public gblnGameStart As Boolean
Public glngRetryTimes As Long
Public gstrLocalIP As String
Public gstrIP As String
'Public glngReSendTimes As Long
Public gblnMenuDisplay As Boolean
' 单机模式
Public gblnOfflineMode As Boolean