You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
708 B
30 lines
708 B
draw_set_font(global.fontGUI2)
|
|
if (hide == 0 && global.curropt == optionid && can_highlight == 1)
|
|
{
|
|
w = string_width(label)
|
|
draw_background_ext(bgOptionLine, ((x - w) - 2), (y - 1), (w + 4), 1, 0, make_color_rgb(160, 160, 160), 0.4)
|
|
}
|
|
draw_set_halign(fa_right)
|
|
draw_set_color(c_black)
|
|
draw_text((x + 1), (y - 3), label)
|
|
if (hide == 0)
|
|
{
|
|
draw_set_color(c_white)
|
|
if (can_highlight == 0)
|
|
draw_set_color(c_gray)
|
|
if (enabled == 0)
|
|
draw_set_alpha(0.5)
|
|
else
|
|
draw_set_alpha(1)
|
|
}
|
|
else
|
|
{
|
|
draw_set_color(c_gray)
|
|
draw_set_alpha(1)
|
|
}
|
|
if (global.curropt != optionid)
|
|
draw_set_color(c_gray)
|
|
draw_text(x, (y - 4), label)
|
|
draw_set_halign(fa_left)
|
|
draw_set_alpha(1)
|