Draw_64.gml 616 B

1234567891011121314151617181920212223242526272829
  1. /// @description UI
  2. draw_set_alpha(0.4)
  3. if (selected)
  4. {
  5. draw_set_color(colselec1);
  6. draw_roundrect(x, y, x+width, y+height, false);
  7. draw_set_color(colselec2);
  8. draw_roundrect(x, y, x+width, y+height, true);
  9. }
  10. else
  11. {
  12. draw_set_color(colunselec1);
  13. draw_roundrect(x, y, x+width, y+height, false);
  14. draw_set_color(colunselec2);
  15. draw_roundrect(x, y, x+width, y+height, true);
  16. }
  17. draw_set_alpha(1);
  18. draw_set_color(c_black);
  19. draw_set_halign(fa_center);
  20. draw_text(x+width_mid, y, name);
  21. var _dmg_txt = string("{0}-{1}", dmg_min, dmg_max)
  22. draw_text(x+width_mid, y+20, _dmg_txt);
  23. draw_text(x+width_mid, y+40, desc);