| 1234567891011121314151617181920212223242526272829 |
- /// @description UI
- draw_set_alpha(0.4)
- if (selected)
- {
- draw_set_color(colselec1);
- draw_roundrect(x, y, x+width, y+height, false);
- draw_set_color(colselec2);
- draw_roundrect(x, y, x+width, y+height, true);
-
- }
- else
- {
- draw_set_color(colunselec1);
- draw_roundrect(x, y, x+width, y+height, false);
- draw_set_color(colunselec2);
- draw_roundrect(x, y, x+width, y+height, true);
- }
- draw_set_alpha(1);
- draw_set_color(c_black);
- draw_set_halign(fa_center);
- draw_text(x+width_mid, y, card_stats.name);
- var _dmg_txt = string("{0}-{1}", card_stats.dmg_nrml_min, card_stats.dmg_nrml_max);
- draw_text(x+width_mid, y+20, _dmg_txt);
- draw_text(x+width_mid, y+40, card_stats.desc);
|