Draw Settings Manager

Home - Extensions - Scripts - Games - Examples

I made this when I got sick of 5 lines of code every time I needed to change a draw setting.  This system allows you to create your own draw settings and then set them with one line of code wherever you need them.

Before:

draw_set_font(btn_font)
draw_set_halign(fa_center)
draw_set_valign(fa_middle)
draw_set_alpha(0.5)
draw_set_color(c_green)
draw_set_blend_mode(bm_subtract)

After (init):

draw_create(0,btn_font,c_green,0.5,fa_center,fa_middle,bm_subtract)

After (apply):

draw_set(0)

Script list/description:

draw_create(id-number,fnt,color,alpha,halign,valign,blend)

Creates a draw setting

draw_set(id-number)

Applies the previously created setting

draw_default()

Sets the draw values to default


I really made this for my own use, but who knows, it might be useful to someone.

Download

website metrics