mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-04-23 08:57:47 -05:00
More screenshot changes.
This commit is contained in:
parent
26c1512cd7
commit
29612d7faa
|
|
@ -14,43 +14,62 @@ var surf = surface_create(size_w, size_h);
|
|||
surface_set_target(surf);
|
||||
draw_clear(c_white);
|
||||
|
||||
|
||||
// Count Data
|
||||
|
||||
if (!global.show_shiny)
|
||||
var look = "Pokemon Count";
|
||||
else
|
||||
var look = "Shiny Count";
|
||||
|
||||
show_debug_message("Loading count data...");
|
||||
|
||||
ini_open("save.ini")
|
||||
for (var i=1; i<global.dex_len; i++)
|
||||
global.countdata[i] = ini_read_real(look, string(i), 0);
|
||||
ini_close();
|
||||
|
||||
|
||||
// Draw Loop
|
||||
|
||||
var current = 1;
|
||||
|
||||
for (var i=0; i<slots_h; i++)
|
||||
for (var j=0; j<slots_per_line; j++)
|
||||
if (current<global.dex_len)
|
||||
{
|
||||
while(!check_skip(current) || (current<global.dex_len-1 && !global.savedata[global.dexdata[current, dex.idno]]))
|
||||
while(!check_skip(current) || (current<global.dex_len-1 && !(global.savedata[global.dexdata[current, dex.idno]] || global.countdata[current])))
|
||||
current++;
|
||||
|
||||
//if ()
|
||||
{
|
||||
var px = j*slot_w + offset;
|
||||
var py = i*slot_h + offset;
|
||||
|
||||
// Slot color
|
||||
draw_set_color(get_color3(global.savedata[global.dexdata[current, dex.idno]], false));
|
||||
draw_rectangle(px, py, px+slot_w, py+slot_h, false);
|
||||
|
||||
// Slot outline
|
||||
draw_set_color(c_black);
|
||||
draw_rectangle(px, py, px+slot_w, py+slot_h, true);
|
||||
|
||||
// Pokémon
|
||||
draw_sprite_ext(make_sprite(global.dexdata[current, dex.pokemon], global.dexdata[current, dex.form]), 0, px+offset*mult/2, offset+i*slot_h+slot_h/2, mult, mult, image_angle, image_blend, image_alpha);
|
||||
|
||||
// Text
|
||||
draw_set_font(global.font);
|
||||
draw_set_color(c_white);
|
||||
draw_set_valign(fa_middle);
|
||||
draw_set_halign(fa_center);
|
||||
draw_text_transformed(/*px+offset*mult*/px+slot_w*0.7, offset+i*slot_h+slot_h/2, "334", mult*2.5, mult*2.5, image_angle);
|
||||
|
||||
// Output
|
||||
show_debug_message("Snapshot: Drew #"+global.dexdata[current, dex.dexno]+" "+global.dexdata[current, dex.pokemon]+".");
|
||||
|
||||
current++
|
||||
}
|
||||
var px = j*slot_w + offset;
|
||||
var py = i*slot_h + offset;
|
||||
|
||||
// Slot color
|
||||
draw_set_color(get_color3(global.savedata[global.dexdata[current, dex.idno]], false));
|
||||
draw_rectangle(px, py, px+slot_w, py+slot_h, false);
|
||||
|
||||
// Slot outline
|
||||
draw_set_color(c_black);
|
||||
draw_rectangle(px, py, px+slot_w, py+slot_h, true);
|
||||
|
||||
// Pokémon
|
||||
draw_sprite_ext(make_sprite(global.dexdata[current, dex.pokemon], global.dexdata[current, dex.form]), 0, px+offset*mult/2, offset+i*slot_h+slot_h/2, mult, mult, image_angle, image_blend, image_alpha);
|
||||
|
||||
// Text
|
||||
if (global.savedata[global.dexdata[current, dex.idno]])
|
||||
draw_set_color(c_white);
|
||||
else
|
||||
draw_set_color(c_dkgray);
|
||||
|
||||
draw_set_font(global.font);
|
||||
draw_set_valign(fa_middle);
|
||||
draw_set_halign(fa_center);
|
||||
draw_text_transformed(/*px+offset*mult*/px+slot_w*0.7, offset+i*slot_h+slot_h/2, "334", mult*2.5, mult*2.5, image_angle);
|
||||
|
||||
// Output
|
||||
show_debug_message("Snapshot: Drew #"+global.dexdata[current, dex.dexno]+" "+global.dexdata[current, dex.pokemon]+".");
|
||||
|
||||
current++
|
||||
}
|
||||
else
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user