mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-11 20:26:13 -05:00
Arrow key font and greener progress bar.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user