(5.5.0) GML Functions - JujuAdams/ScribbleOldDocs GitHub Wiki
Core Scripts
Initialisation
__scribble_config()
scribble_init(fontDirectory, defaultFont, autoScan)
scribble_add_font(fontName, [path])
scribble_add_spritefont(fontName, mapString, separation, [spaceWidth])
scribble_add_color(name, colour, [colourIsGameMakerBGR])
Drawing
scribble_draw(x, y, string/textElement)
scribble_get_bbox(string/textElement, x, y, [leftPad], [topPad], [rightPad], [bottomPad])
scribble_get_quad(string/textElement, x, y, [leftPad], [topPad], [rightPad], [bottomPad])
Drawing Options a.k.a. "Draw State"
scribble_draw_set_box_align(boxHAlign, boxVAlign)
scribble_draw_set_wrap(minLineHeight, maxBoxWidth, [maxBoxHeight], [characterWrap])
scribble_draw_set_transform(xscale, yscale, angle)
scribble_draw_set_blend(colour, alpha)
scribble_draw_set_animation(...)
scribble_draw_reset()
Extra Functionality
Typewriter a.k.a Autotype
scribble_autotype_fade_in(element, method, speed, smoothness)
scribble_autotype_fade_out(element, method, speed, smoothness)
scribble_autotype_skip(element)
scribble_autotype_get(element)
scribble_autotype_set_sound(element, soundArray, overlap)
scribble_autotype_set_pause(element, state)
scribble_autotype_is_paused(element)
scribble_autotype_add_event(name, script)
Pages
scribble_page_set(element, page)
scribble_page_get(element)
scribble_page_count(element)
scribble_page_on_last(element)
Advanced Things For Serious People
scribble_draw_get_state()
scribble_draw_set_state(stateArray)
scribble_draw_set_cache_group(cacheGroup, allowDraw, freeze)
scribble_cache_group_flush(cacheGroup)
scribble_set_glyph_property(fontName, character, property, value, [relative])
scribble_get_glyph_property(fontName, character, property)
scribble_add_shader_effect(name, index)