| 1 |
var ch = "n"; |
| 2 |
var spacing = 14; |
| 3 |
var xstart_top = 431; |
| 4 |
var ystart_top = 82; |
| 5 |
var limit_top = 13; |
| 6 |
var xstart_right = room_width - 6; |
| 7 |
var ystart_right = 116; |
| 8 |
var limit_right = 20; |
| 9 |
var xstart_bottom = room_width - 40; |
| 10 |
var ystart_bottom = room_height - 20; |
| 11 |
var limit_bottom = 32; |
| 12 |
var xstart_left = 0; |
| 13 |
var ystart_left = 0; |
| 14 |
if (global.language == "ja") |
| 15 |
{ |
| 16 |
ch = "ン"; |
| 17 |
spacing = 28; |
| 18 |
xstart_top = 317; |
| 19 |
ystart_top = 97; |
| 20 |
limit_top = floor((room_width - 6 - xstart_top) / spacing); |
| 21 |
xstart_right = room_width - 6; |
| 22 |
ystart_right = ystart_top + 30; |
| 23 |
limit_right = floor((room_height - 16 - ystart_right) / spacing); |
| 24 |
xstart_bottom = room_width - 34; |
| 25 |
ystart_bottom = room_height - 16; |
| 26 |
limit_bottom = floor((6 - xstart_bottom) / -spacing); |
| 27 |
xstart_left = 6; |
| 28 |
ystart_left = room_height - 46; |
| 29 |
} |
| 30 |
var count = obj_questionasker.mettamt; |
| 31 |
var count_top = count; |
| 32 |
if (count > limit_top) |
| 33 |
count_top = limit_top; |
| 34 |
count -= count_top; |
| 35 |
var count_right = count; |
| 36 |
if (count > limit_right) |
| 37 |
count_right = limit_right; |
| 38 |
count -= count_right; |
| 39 |
var count_bottom = count; |
| 40 |
if (count > limit_bottom) |
| 41 |
count_bottom = limit_bottom; |
| 42 |
count -= count_bottom; |
| 43 |
var count_left = count; |
| 44 |
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); |
| 45 |
draw_set_color(c_white); |
| 46 |
var xx = xstart_top; |
| 47 |
var yy = ystart_top; |
| 48 |
for (var i = 0; i < count_top; i++) |
| 49 |
{ |
| 50 |
draw_text(xx + round(random(1)), yy + round(random(1)), ch); |
| 51 |
xx += spacing; |
| 52 |
} |
| 53 |
if (global.language != "ja") |
| 54 |
spacing += 2; |
| 55 |
xx = xstart_right; |
| 56 |
yy = ystart_right; |
| 57 |
for (var i = 0; i < count_right; i++) |
| 58 |
{ |
| 59 |
draw_text_transformed(xx + round(random(1)), yy + round(random(1)), ch, 1, 1, 270); |
| 60 |
yy += spacing; |
| 61 |
} |
| 62 |
xx = xstart_bottom; |
| 63 |
yy = ystart_bottom; |
| 64 |
for (var i = 0; i < count_bottom; i++) |
| 65 |
{ |
| 66 |
draw_text_transformed(xx + round(random(1)), yy + round(random(1)), ch, 1, 1, 180); |
| 67 |
xx -= spacing; |
| 68 |
} |
| 69 |
xx = xstart_left; |
| 70 |
yy = ystart_left; |
| 71 |
for (var i = 0; i < count_left; i++) |
| 72 |
{ |
| 73 |
draw_text_transformed(xx + round(random(1)), yy + round(random(1)), ch, 1, 1, 90); |
| 74 |
yy -= spacing; |
| 75 |
} |