-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfrmNPC.frm
180 lines (175 loc) · 5.19 KB
/
frmNPC.frm
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
VERSION 5.00
Begin VB.Form frmNPC
BorderStyle = 0 'None
Caption = "NPC List"
ClientHeight = 4065
ClientLeft = 0
ClientTop = 0
ClientWidth = 4830
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 4065
ScaleWidth = 4830
ShowInTaskbar = 0 'False
Begin VB.ListBox lstNPC
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Height = 3150
IntegralHeight = 0 'False
ItemData = "frmNPC.frx":0000
Left = 0
List = "frmNPC.frx":0002
TabIndex = 0
Top = 240
Width = 4200
End
Begin VB.Image imgclose
Height = 135
Left = 3980
Picture = "frmNPC.frx":0004
Top = 60
Width = 135
End
Begin VB.Image imgReSize
Height = 180
Left = 2040
MousePointer = 8 'Size NW SE
Picture = "frmNPC.frx":0139
Top = 3480
Width = 180
End
Begin VB.Image Image5
Height = 135
Left = 50
Picture = "frmNPC.frx":0285
Top = 60
Width = 135
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "NPC List"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 240
TabIndex = 1
Top = 15
Width = 600
End
Begin VB.Image imgMidbar
Height = 255
Left = 170
Picture = "frmNPC.frx":03BA
Stretch = -1 'True
Top = 0
Width = 180
End
Begin VB.Image Image1
Height = 255
Left = 0
Picture = "frmNPC.frx":0492
Top = 0
Width = 180
End
Begin VB.Image imgbleft
Height = 420
Left = 0
Picture = "frmNPC.frx":0600
Top = 3480
Width = 150
End
Begin VB.Image imgbright
Height = 420
Left = 1560
Picture = "frmNPC.frx":067F
Top = 3480
Width = 120
End
Begin VB.Image imgbmid
Height = 420
Left = 120
Picture = "frmNPC.frx":06F4
Stretch = -1 'True
Top = 3480
Width = 120
End
Begin VB.Image imgRightbar
Height = 255
Left = 1560
Picture = "frmNPC.frx":074C
Top = 0
Width = 180
End
End
Attribute VB_Name = "frmNPC"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Me.height = 4500
Me.width = 4300
imgRightbar.Left = Me.width - 200
imgMidbar.width = Me.width - 350
LoadFormPos Me
lstNPC.height = Me.height - 880
lstNPC.width = Me.width
imgbleft.Top = lstNPC.height + 200
imgbmid.Top = lstNPC.height + 200
imgbright.Top = lstNPC.height + 200
imgbright.Left = Me.width - 300
imgbmid.width = Me.width - 400
imgReSize.Top = lstNPC.height + 320
imgReSize.Left = Me.width - 270
Me.height = lstNPC.height + 880
'If UBound(NPCList) > 0 Then
' frmMain.UpdateNPC
'End If
End Sub
Private Sub Form_Resize()
If (Me.width < 2000 Or Me.height < 2000) Then
Form_Load
Else
imgRightbar.Left = Me.width - 180
imgMidbar.width = Me.width - 320
lstNPC.height = Me.height - 650
lstNPC.width = Me.width
imgbleft.Top = lstNPC.height + 240
imgbmid.Top = lstNPC.height + 240
imgclose.Left = Me.width - 200
imgbright.Top = lstNPC.height + 240
imgbright.Left = Me.width - 100
imgbmid.width = Me.width - 200
imgReSize.Top = lstNPC.height + 480
imgReSize.Left = Me.width - 182
If (Me.height + 650) < MDIfrmMain.height Then Me.height = lstNPC.height + 650
End If
If frmMain.Visible Then
If UBound(NPCList) > 0 Then UpdateNPC
End If
End Sub
Private Sub imgclose_Click()
SaveFormPos Me
Unload Me
End Sub
Private Sub imgMidbar_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call ReleaseCapture
Call SendMessage(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&)
SaveFormPos Me
End Sub
Private Sub imgReSize_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call ReleaseCapture
Call SendMessage(hWnd, WM_NCLBUTTONDOWN, 17, 0)
SaveFormPos Me
End Sub
Private Sub lstNPC_DblClick()
frmMain.Send_Talk NPCList(lstNPC.ListIndex).ID
End Sub