dialogue added

This commit is contained in:
the me 2022-08-22 15:37:11 -07:00
parent cf0ac84133
commit 091aa9c58c
117 changed files with 1393 additions and 231 deletions

View file

@ -1,22 +1,25 @@
if hoveredunit != noone {
draw_set_font(ft_chiaro);
draw_set_color(c_black);
draw_rectangle(global.gw, global.gh, global.gw-140, global.gh-(array_length(hoveredunit.inventory)-1)*32-16, false);
//draw_rectangle(global.gw, global.gh, global.gw-140, global.gh-(array_length(hoveredunit.inventory)-1)*32-16, false);
//draw_sprite(s_box, 0, global.gw-140, global.gh-(array_length(hoveredunit.inventory)-1)*32-16);
draw_sprite_ext(s_box, 0, global.gw, global.gh, 4, .5+((array_length(hoveredunit.inventory)-1)*32-16)/30, 180, c_white, 1);
draw_set_color(c_white);
var i;
draw_set_halign(fa_right);
for (i=1; i<array_length(hoveredunit.inventory); i++) {
draw_text(global.gw-10, global.gh-10-i*20, (hoveredunit.equippedweapon == i ? "X " : " ") + hoveredunit.inventory[i].name);
draw_text(global.gw-10, global.gh-17-i*20, (hoveredunit.equippedweapon == i ? "X " : " ") + hoveredunit.inventory[i].name);
}
draw_set_halign(fa_left);
var dudes = c_getstats(hoveredunit);
draw_set_color(c_black);
draw_rectangle(0, 0, 100, (array_length(dudes)-1)*32+16, false);
//draw_rectangle(0, 0, 100, (array_length(dudes)-1)*32+16, false);
draw_sprite_ext(s_box, 0, 0, 0, 2.5, .5+((array_length(dudes)-1)*32-16)/30, 0, c_white, 1);
draw_set_color(c_white);
var i;
for (i=0; i<array_length(dudes); i++) {
draw_text(10, 10+i*20, dudes[i].name + ": " + string(dudes[i].val));
draw_text(10, 5+i*20, dudes[i].name + ": " + string(dudes[i].val));
}
draw_set_halign(fa_left);
}