Arrow key font and greener progress bar.

This commit is contained in:
Rodrigo Gómez Maitret
2020-03-03 12:52:21 -06:00
parent a2f83fcfbb
commit aaead8dcff
78 changed files with 117 additions and 8 deletions

View File

@@ -7,21 +7,19 @@ draw_set_font(global.font)
draw_set_halign(fa_center);
draw_set_valign(fa_middle);
var charstr = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZéÉ#-'!?():@_.% /♂♀+äöü";
for (var i=0; i<string_length(charstr); i++)
for (var i=1; i<string_length(global.font_str); i++)
{
var surf = surface_create(w, h);
surface_set_target(surf);
draw_sprite_stretched(spr_source, src.black, 0, 0, w, h);
draw_text_transformed((w/2)+2, (h/2)-2, string_char_at(charstr, i), 3, 3, image_angle);
draw_text_transformed((w/2)+2, (h/2)-2, string_char_at(global.font_str, i), 3, 3, image_angle);
surface_reset_target();
var spr = sprite_create_from_surface(surf, 0, 0, w, h, false, true, 0, 0);
surface_free(surf);
sprite_save(spr, 0, working_directory+"Export/icon_button_"+string_char_at(charstr, i)+".png");
sprite_save(spr, 0, working_directory+"Export/icon_button_"+string_char_at(global.font_str, i)+".png");
}

View File

@@ -12,7 +12,7 @@ draw_sprite_stretched(spr_source, src.flip,
x_s, align_y(region.bot_left, 0 - 0.5),
w, h);
draw_sprite_stretched(spr_source, src.green,
draw_sprite_stretched(spr_source, src.progress,
x_s, align_y(region.bot_left, 0 - 0.5),
w*percent/100, h);

View File

@@ -11,7 +11,8 @@ global.window_height = window_get_height();
global.box_len = global.window_width/2/7;
global.icon_scale = 2;
global.font = font_add_sprite_ext(spr_font,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZéÉ#-'!?():@_.% /♂♀+äöü", true, 1);
global.font_str = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZéÉ#-'!?():@_.% /♂♀+äöü↑↓←→";
global.font = font_add_sprite_ext(spr_font, global.font_str, true, 1);
global.dex_len = array_height_2d(global.dexdata);