2024-01-08 08:10:50 +01:00
|
|
|
#macro draw_set_color draw_set_color_ext
|
|
|
|
#macro __draw_set_color draw_set_color
|
|
|
|
|
2024-07-03 03:31:14 +02:00
|
|
|
#macro draw_clear draw_clear_ext_override
|
2024-01-08 08:10:50 +01:00
|
|
|
#macro __draw_clear draw_clear
|
|
|
|
|
|
|
|
function draw_set_color_ext(col) {
|
|
|
|
INLINE
|
|
|
|
|
|
|
|
__draw_set_color(col);
|
|
|
|
if(is_real(col)) return;
|
|
|
|
|
|
|
|
var a = _color_get_alpha(col);
|
|
|
|
draw_set_alpha(a);
|
|
|
|
}
|
|
|
|
|
2024-07-03 03:31:14 +02:00
|
|
|
function draw_clear_ext_override(col) {
|
2024-01-08 08:10:50 +01:00
|
|
|
if(is_real(col)) {
|
|
|
|
__draw_clear(col);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
var a = _color_get_alpha(col);
|
|
|
|
draw_clear_alpha(col, a);
|
|
|
|
}
|
|
|
|
|
|
|
|
function draw_set_text(font, halign, valign) {
|
|
|
|
INLINE
|
|
|
|
|
|
|
|
if(argument_count > 3) draw_set_color(argument[3]);
|
2024-06-28 07:06:34 +02:00
|
|
|
if(argument_count > 4) draw_set_alpha(argument[4]);
|
2024-01-08 08:10:50 +01:00
|
|
|
|
|
|
|
draw_set_font(font);
|
|
|
|
draw_set_halign(halign);
|
|
|
|
draw_set_valign(valign);
|
2024-08-07 11:48:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function draw_set_align(halign, valign) {
|
|
|
|
INLINE
|
|
|
|
draw_set_halign(halign); draw_set_valign(valign);
|
2024-01-08 08:10:50 +01:00
|
|
|
}
|