Screen (GUI resolution)
Sprite library
spr_icon).Import existing code
Paste a Draw GUI snippet and the tool rebuilds it on the canvas. It works out positions by reading your code — including display_get_gui_*() and your own vars — so paste the variable definitions too, not just the draw line.
How import works (read me)
1. Add your sprites first. Put any sprite the code draws into the library above, named exactly as in GameMaker (s_bar). Then the preview shows the real image.
2. Paste the draw call + the variables it needs. The tool can compute: numbers, + - * / ( ), display_get_gui_width()/height(), sprite_get_width()/height(spr), and any var _x = … you defined above the draw line.
What it can't read (anything that only exists while the game runs): arrays like player_weapon[…], function calls like func_draw_bar() / string(), enums like WEAPON_ID.X, and global. values. An element that uses those shows up red at 0,0 with the reason — replace the value with a number (or add the missing var) and re-import, or just drag it into place.
Supported draws: draw_text, draw_text_transformed, draw_rectangle, draw_circle, draw_healthbar, draw_line(_width), draw_sprite, draw_sprite_ext, draw_sprite_stretched(_ext), draw_sprite_part(_ext). Text taken from a variable shows as [expr] — fix the wording after.