<undefined>
0
-1
0
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
optext = "";
textoffset = 160;
editing = 0;
enabled = 1;
sel = 0;
1
603
7
0
0
-1
2
self
0
0
1
draw_set_font(fontGUI2);
draw_set_color(c_black);
w = string_width(optext);
if (w < 80) w = 80;
draw_set_alpha(1);
draw_set_font(fontGUI2);
draw_set_color(c_black);
draw_set_alpha(0.4);
if (global.curropt == optionid) draw_set_color(c_gray);
draw_rectangle(x - 2, y - 1, x + textoffset - 8, y + 8, false);
//if (editing) draw_set_color(c_green);
if (optext != "") draw_rectangle(x + textoffset - 2, y - 1, x + textoffset + w + 1, y + 8, false);
draw_set_alpha(1);
draw_set_color(c_black);
draw_text(x + 1, y - 3, label);
//draw_text(x + textoffset + 1, y - 3, optext);
var voff = 0;
for (var i = 0; i < string_length(optext); i++) {
var str = string_char_at(optext, i + 1);
draw_text(x + textoffset + (i * 7) - (4 * voff) + 1, y - 3, str);
if (str == "1") voff += 1; // special case to make 1 not be super awkward
}
draw_set_color(c_white);
if (enabled == 0) {
draw_set_alpha(0.5);
} else draw_set_alpha(1);
draw_text(x, y - 4, label);
//draw_text(x + textoffset, y - 4, optext);
var voff = 0;
for (var e = 0; e < string_length(optext); e++) {
if (editing) {
if (e == sel) {
draw_set_color(make_color_rgb(3, 187, 25));
}
}
var str = string_char_at(optext, e + 1);
draw_text(x + textoffset + (e * 7) - (4 * voff), y - 4, str);
if (str == "1") voff += 1; // special case to make 1 not be super awkward
draw_set_color(c_white);
}
draw_set_alpha(1);
/*draw_set_alpha(0.4);
if (global.curropt == optionid) draw_set_color(c_gray);
//draw_text(x + 1, y - 3, seed);
//draw_text(x, y - 4, label);
/*draw_rectangle(x - 2, y - 1, x + textoffset - 8, y + 8, false);
draw_rectangle(x + textoffset - 1, y - 1, x + textoffset + w + 1, y + 8, false);
draw_set_alpha(0.8);
draw_set_color(c_green);
draw_rectangle(x + textoffset, y, x + textoffset + slwidth, y + 7, false);
draw_set_alpha(1);
draw_set_color(c_black);
draw_text(x + 1, y - 3, label);
draw_set_color(c_white);
draw_set_alpha(1);
draw_text(x, y - 4, label);
draw_set_alpha(1);
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
0