1 |
draw_set_color(c_white); |
2 |
scr_setfontscr_setfontvar newfont = argument0;
if (global.language == "ja")
{
if (newfont == fnt_main)
newfont = fnt_ja_main;
if (newfont == fnt_maintext)
newfont = fnt_ja_maintext;
if (newfont == fnt_plain)
newfont = fnt_ja_plain;
}
draw_set_font(newfont); (fnt_main); |
3 |
stringo = ""; |
4 |
if (global.flag[66 flirted_papyrus_fight] == 1) |
5 |
stringo = "DATE POWER"; |
6 |
if (global.flag[66 flirted_papyrus_fight] == 0) |
7 |
stringo = "FRIENDSHIP"; |
8 |
draw_text(x, y - 36, stringo); |
9 |
ossafe_fill_rectangle(x - 3, y - 3, x + maxlength + 3, y + 27); |
10 |
draw_set_color(c_black); |
11 |
ossafe_fill_rectangle(x - 1, y - 1, x + maxlength + 1, y + 25); |
12 |
draw_set_color(c_gray); |
13 |
ossafe_fill_rectangle(x, y, x + maxlength, y + 24); |
14 |
siner += 1; |
15 |
value = 200 + (sin((siner * ((10 * length) / maxlength)) / 10) * (20 + (35 * (length / maxlength)))); |
16 |
if (value > 255) |
17 |
value = 255; |
18 |
if (value < 180) |
19 |
value = 180; |
20 |
draw_set_color(make_color_hsv(160, 255, value)); |
21 |
ossafe_fill_rectangle(x, y, x + length, y + 24); |
22 |
if (ideallength > length) |
23 |
length += 1; |
24 |
if (ideallength < length) |
25 |
length -= 1; |