forked from smbx/smbx-legacy-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmWorld.frm
219 lines (217 loc) · 6.45 KB
/
frmWorld.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
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
208
209
210
211
212
213
214
215
216
217
218
219
VERSION 5.00
Begin VB.Form frmWorld
BorderStyle = 1 'Fixed Single
Caption = "World Options"
ClientHeight = 3225
ClientLeft = 45
ClientTop = 330
ClientWidth = 6225
Icon = "frmWorld.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 3225
ScaleWidth = 6225
Begin VB.Frame Frame3
Caption = "Block Characters"
Height = 855
Left = 1800
TabIndex = 15
Top = 2280
Width = 2655
Begin VB.CheckBox chkChar
Caption = "Link"
Height = 255
Index = 5
Left = 1920
TabIndex = 20
Top = 240
Width = 615
End
Begin VB.CheckBox chkChar
Caption = "Toad"
Height = 255
Index = 4
Left = 1080
TabIndex = 19
Top = 480
Width = 735
End
Begin VB.CheckBox chkChar
Caption = "Peach"
Height = 255
Index = 3
Left = 1080
TabIndex = 18
Top = 240
Width = 855
End
Begin VB.CheckBox chkChar
Caption = "Luigi"
Height = 255
Index = 2
Left = 120
TabIndex = 17
Top = 480
Width = 735
End
Begin VB.CheckBox chkChar
Caption = "Mario"
Height = 255
Index = 1
Left = 120
TabIndex = 16
Top = 240
Width = 735
End
End
Begin VB.Frame Frame2
Caption = "Number of Stars"
Height = 615
Left = 120
TabIndex = 13
Top = 2280
Width = 1575
Begin VB.TextBox txtStars
Height = 285
Left = 120
TabIndex = 14
Top = 240
Width = 1335
End
End
Begin VB.Frame Frame1
Caption = "Credits"
Height = 2055
Left = 3480
TabIndex = 7
Top = 120
Width = 2655
Begin VB.TextBox txtCredits
Height = 285
Index = 5
Left = 120
TabIndex = 12
Top = 1680
Width = 2415
End
Begin VB.TextBox txtCredits
Height = 285
Index = 4
Left = 120
TabIndex = 11
Top = 1320
Width = 2415
End
Begin VB.TextBox txtCredits
Height = 285
Index = 3
Left = 120
TabIndex = 10
Top = 960
Width = 2415
End
Begin VB.TextBox txtCredits
Height = 285
Index = 2
Left = 120
TabIndex = 9
Top = 600
Width = 2415
End
Begin VB.TextBox txtCredits
Height = 285
Index = 1
Left = 120
TabIndex = 8
Top = 240
Width = 2415
End
End
Begin VB.PictureBox FocusNinja
Height = 375
Left = 3240
ScaleHeight = 315
ScaleWidth = 315
TabIndex = 6
Top = 4080
Width = 375
End
Begin VB.Frame Frame
Caption = "Auto Start Level"
Height = 1335
Index = 1
Left = 120
TabIndex = 2
Top = 840
Width = 3255
Begin VB.CheckBox chkRestartLevel
Caption = "Restart Last Level on Death"
Height = 255
Left = 120
TabIndex = 5
Top = 960
Width = 2295
End
Begin VB.CheckBox chkNoMap
Caption = "No World Map"
Height = 255
Left = 120
TabIndex = 4
Top = 600
Width = 1455
End
Begin VB.TextBox txtStartLevel
Height = 285
Left = 120
TabIndex = 3
Top = 240
Width = 3015
End
End
Begin VB.Frame Frame
Caption = "World Name"
Height = 615
Index = 0
Left = 120
TabIndex = 0
Top = 120
Width = 3255
Begin VB.TextBox txtWorldName
Height = 285
Left = 120
TabIndex = 1
Top = 240
Width = 3015
End
End
End
Attribute VB_Name = "frmWorld"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub chkChar_Click(Index As Integer)
Dim A As Integer
Dim B As Integer
If chkChar(Index).Value = 1 Then
blockCharacter(Index) = True
Else
blockCharacter(Index) = False
End If
For A = 1 To numCharacters
If blockCharacter(A) = False Then B = B + 1
Next A
If B <= 0 Then
blockCharacter(Index) = False
chkChar(Index).Value = 0
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
Cancel = 1
Me.Hide
End Sub
Private Sub txtStars_Change()
txtStars.Text = Int(Val(txtStars.Text))
MaxWorldStars = Int(Val(txtStars.Text))
End Sub