forked from kanahiron/KanColleListMaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubSource_DrawString.hsp
More file actions
259 lines (237 loc) · 5.51 KB
/
Copy pathSubSource_DrawString.hsp
File metadata and controls
259 lines (237 loc) · 5.51 KB
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
*drawString
nidpush
buffer 12,1000,340
//screen 12,1000,340
redraw 0
font fontnum,fontsizenum,1
mes "1,3,4"
OSOW = ginfo(15)
font fontname,fontsizename,1
mref BMSCR, 67
r = 0.1 * abs(BMSCR.49)
n = int(2.0 * M_PI * r)
mes "ええ!?ぱんつ!!<- 美乳 ->"
OSOWm = ginfo(15)
color :boxf
x = 10
y = 10
if enableFirst = 1{
x = 10
string = FirstFleetName
color 255,255,255
repeat n
rad = 2.0 * M_PI * cnt / n
xt = x + int(r * cos(rad))
yt = y + int(r * sin(rad))
pos xt, yt
mes string
pos xt+220, yt
mes string
loop
color ((fontColorFirstFleet&0x00FF0000)>>16),((fontColorFirstFleet&0x0000FF00)>>8),(fontColorFirstFleet&0x000000FF)
pos x, y
mes string
y += 70
}
if enableSecond = 1{
x = 10
string = SecondFleetName
color 255,255,255
repeat n
rad = 2.0 * M_PI * cnt / n
xt = x + int(r * cos(rad))
yt = y + int(r * sin(rad))
pos xt, yt
mes string
pos xt+220, yt
mes string
loop
color ((fontColorSecondFleet&0x00FF0000)>>16),((fontColorSecondFleet&0x0000FF00)>>8),(fontColorSecondFleet&0x000000FF)
pos x, y
mes string
y += 70
}
if enableThread = 1{
x = 10
string = ThreadFleetName
color 255,255,255
repeat n
rad = 2.0 * M_PI * cnt / n
xt = x + int(r * cos(rad))
yt = y + int(r * sin(rad))
pos xt, yt
mes string
pos xt+220, yt
mes string
loop
color ((fontColorThreadFleet&0x00FF0000)>>16),((fontColorThreadFleet&0x0000FF00)>>8),(fontColorThreadFleet&0x000000FF)
pos x, y
mes string
y += 70
}
if enableFourth = 1{
x = 10
string = FourthFleetName
color 255,255,255
repeat n
rad = 2.0 * M_PI * cnt / n
xt = x + int(r * cos(rad))
yt = y + int(r * sin(rad))
pos xt, yt
mes string
pos xt+220, yt
mes string
loop
color ((fontColorFourthFleet&0x00FF0000)>>16),((fontColorFourthFleet&0x0000FF00)>>8),(fontColorFourthFleet&0x000000FF)
pos x, y
mes string
}
font fontnum,fontsizenum,1
mref BMSCR, 67
r = 0.1 * abs(BMSCR.49)
n = int(2.0 * M_PI * r)
x = 510
if enableFirst = 1{
y = 10
string = "1\n2\n3\n4\n5\n6"
color 255,255,255
repeat n
rad = 2.0 * M_PI * cnt / n
xt = x + int(r * cos(rad))
yt = y + int(r * sin(rad))
pos xt, yt
mes string
pos xt+50, yt
mes string
loop
color ((fontColorFirstFleet&0x00FF0000)>>16),((fontColorFirstFleet&0x0000FF00)>>8),(fontColorFirstFleet&0x000000FF)
pos x, y
mes string
x += 100
}
if enableSecond = 1{
y = 10
string = "1\n2\n3\n4\n5\n6"
color 255,255,255
repeat n
rad = 2.0 * M_PI * cnt / n
xt = x + int(r * cos(rad))
yt = y + int(r * sin(rad))
pos xt, yt
mes string
pos xt+50, yt
mes string
loop
color ((fontColorSecondFleet&0x00FF0000)>>16),((fontColorSecondFleet&0x0000FF00)>>8),(fontColorSecondFleet&0x000000FF)
pos x, y
mes string
x += 100
}
if enableThread = 1{
y = 10
string = "1\n2\n3\n4\n5\n6"
color 255,255,255
repeat n
rad = 2.0 * M_PI * cnt / n
xt = x + int(r * cos(rad))
yt = y + int(r * sin(rad))
pos xt, yt
mes string
pos xt+50, yt
mes string
loop
color ((fontColorThreadFleet&0x00FF0000)>>16),((fontColorThreadFleet&0x0000FF00)>>8),(fontColorThreadFleet&0x000000FF)
pos x, y
mes string
x += 100
}
if enableFourth = 1{
y = 10
string = "1\n2\n3\n4\n5\n6"
color 255,255,255
repeat n
rad = 2.0 * M_PI * cnt / n
xt = x + int(r * cos(rad))
yt = y + int(r * sin(rad))
pos xt, yt
mes string
pos xt+50, yt
mes string
loop
color ((fontColorFourthFleet&0x00FF0000)>>16),((fontColorFourthFleet&0x0000FF00)>>8),(fontColorFourthFleet&0x000000FF)
pos x, y
mes string
}
font "メイリオ",15,1
mref BMSCR, 67
r = 0.1 * abs(BMSCR.49)
n = int(2.0 * M_PI * r)
x = 10
y = 310
string = SOFTNAME
color 255,255,255
repeat n
rad = 2.0 * M_PI * cnt / n
xt = x + int(r * cos(rad))
yt = y + int(r * sin(rad))
pos xt, yt
color 245,240,220
mes string
pos xt+230, yt
color 255,255,255
mes string
loop
color 170,60,70
pos x, y
mes string
redraw 1
nidpop
return
*colorCange1
dialog "",33
if stat = 1{
fontColorFirstFleetStr = strf("%02X%02X%02X",ginfo_r,ginfo_g,ginfo_b)
fontColorFirstFleet = int("$"+fontColorFirstFleetStr)
gosub *drawColor
}
return
*colorCange2
dialog "",33
if stat = 1{
fontColorSecondFleetStr = strf("%02X%02X%02X",ginfo_r,ginfo_g,ginfo_b)
fontColorSecondFleet = int("$"+fontColorSecondFleetStr)
gosub *drawColor
}
return
*colorCange3
dialog "",33
if stat = 1{
fontColorThreadFleetStr = strf("%02X%02X%02X",ginfo_r,ginfo_g,ginfo_b)
fontColorThreadFleet = int("$"+fontColorThreadFleetStr)
gosub *drawColor
}
return
*colorCange4
dialog "",33
if stat = 1{
fontColorFourthFleetStr = strf("%02X%02X%02X",ginfo_r,ginfo_g,ginfo_b)
fontColorFourthFleet = int("$"+fontColorFourthFleetStr)
gosub *drawColor
}
return
*drawColor
if (mode = 2){
nidpush
gosub *drawString
gsel 0
color ((fontColorFirstFleet&0x00FF0000)>>16),((fontColorFirstFleet&0x0000FF00)>>8),(fontColorFirstFleet&0x000000FF)
boxf 210,drawColorPos+2,348,drawColorPos+19
color ((fontColorSecondFleet&0x00FF0000)>>16),((fontColorSecondFleet&0x0000FF00)>>8),(fontColorSecondFleet&0x000000FF)
boxf 210,drawColorPos+2+22,348,drawColorPos+19+22
color ((fontColorThreadFleet&0x00FF0000)>>16),((fontColorThreadFleet&0x0000FF00)>>8),(fontColorThreadFleet&0x000000FF)
boxf 210,drawColorPos+2+44,348,drawColorPos+19+44
color ((fontColorFourthFleet&0x00FF0000)>>16),((fontColorFourthFleet&0x0000FF00)>>8),(fontColorFourthFleet&0x000000FF)
boxf 210,drawColorPos+2+66,348,drawColorPos+19+66
nidpop
}
return