mOAR icons

This commit is contained in:
Rodrigo Gómez Maitret 2020-03-03 14:02:51 -06:00
parent c35a7bba28
commit 1ee5232c0d
3 changed files with 12 additions and 4 deletions

View File

@ -48,9 +48,9 @@
| ![](https://github.com/PoshoDev/DexTool/blob/master/Icons/Buttons/icon_button_-.png?raw=true) | Count down (for selected MON). |
| ![](https://github.com/PoshoDev/DexTool/blob/master/Icons/Buttons/icon_button_1.png?raw=true) to ![](https://github.com/PoshoDev/DexTool/blob/master/Icons/Buttons/icon_button_8.png?raw=true) | Jump to box containing first MON of a generation. |
| ![](https://github.com/PoshoDev/DexTool/blob/master/Icons/Buttons/icon_button_0.png?raw=true) and ![](https://github.com/PoshoDev/DexTool/blob/master/Icons/Buttons/icon_button_9.png?raw=true) | Jump to last box. |
| ![](https://github.com/PoshoDev/DexTool/blob/master/Icons/Buttons/icon_button_S.png?raw=true) | Switch between Shiny and Regular dex. |
| ![](https://github.com/PoshoDev/DexTool/blob/master/Icons/Buttons/icon_button_G.png?raw=true) | Switch between National and Galar dex. |
| ![](https://github.com/PoshoDev/DexTool/blob/master/Icons/Buttons/icon_button_I.png?raw=true) | Export progress image.<br>Saved as *C:\Users\USER\AppData\Local\DexTool\dex.png* |
| ![](https://github.com/PoshoDev/DexTool/blob/master/Icons/Buttons/icon_button_I.png?raw=true) | Export progress image.<br/>Saved as *C:\Users\USER\AppData\Local\DexTool\dex.png* |
| ![](https://github.com/PoshoDev/DexTool/blob/master/Icons/Buttons/icon_button_S.png?raw=true) | Switch between Shiny and Regular dex. |
- Added log outputs in case of missing sprites.

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

View File

@ -7,13 +7,19 @@ draw_set_font(global.font)
draw_set_halign(fa_center);
draw_set_valign(fa_middle);
for (var i=1; i<string_length(global.font_str); i++)
var len = string_length(global.font_str);
for (var i=1; i<=len; 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(global.font_str, i), 3, 3, image_angle);
if (i != len)
draw_text_transformed((w/2)+2, (h/2)-2, string_char_at(global.font_str, i), 3, 3, image_angle);
else
draw_text_transformed((w/2)+2, (h/2)-2, "ESC", 2, 2, image_angle);
surface_reset_target();
var spr = sprite_create_from_surface(surf, 0, 0, w, h, false, true, 0, 0);
@ -49,4 +55,6 @@ for (var i=0; i<=4; i++)
draw_set_default();
game_end();