Github
Wiki

With this utility, You’ll be able to draw all the pieces similar to earlier than however and not using a loop thread.
Draw Texture with out RequestStreamedTextureDict
Draw Scaleform Web page with out RequestScaleformMovie (similar to the OL-WebBroswer)

A local drawing menu could be flip to 0.03~0.04ms from 0.15~0.17ms

Preview

It’s free, if it assist you numerous,You should purchase some Coffee/Bread to me on the Tebex

Welcome to the nbk_scaleform_draw2d Wiki!

load(LoadResourceFile("nbk_scaleform_draw2d", 'import'))()
--automatic namespace
DrawRectS(x, y, width, top, r, g, b, a)
DrawCircleS(x, y, width, top, r, g, b, a)
DrawSpriteS(txDict, txName, x, y, w, h,heading, r, g, b, a)
DrawPageS(gfxFile, x, y, w, h,heading, r, g, b, a)
DrawTextS(strText, x, y, scale, r, g, b, a)
--custom namespace
DrawRectSF(NAME,x, y, width, top, r, g, b, a)
DrawCircleSF(NAME,x, y, width, top, r, g, b, a)
DrawSpriteSF(NAME,txDict, txName, x, y, w, h,heading, r, g, b, a)
DrawPageSF(NAME,gfxFile, x, y, w, h,heading, r, g, b, a)
DrawTextSF(NAME,strText, x, y, scale, r, g, b, a)

return deal with -- All of them return a deal with which can be utilized to take away or replace textwrap one thing.

--Take away
DeleteRectSF(deal with)
DeleteRectS(deal with)
DeleteSpriteSF(deal with)
DeleteSpriteS(deal with)
DeletePageSF(deal with)
DeletePageS(deal with)
DeleteTextSF(deal with)
DeleteTextS(deal with)
TextDrawShow (deal with)
TextDrawHide (deal with)
TextDrawPosition (deal with,x,y)
TextDrawSetPosition = TextDrawPosition 
TextDrawString (deal with, str)
TextDrawSetString = TextDrawString 
TextDrawColor (deal with, r, g, b, a)
TextDrawAlpha (deal with, a)
TextDrawTextScale (deal with, scale)
TextDrawTextSize = TextDrawTextScale 
TextDrawFont(deal with, fontstr) -- "$Font2", "$Font_cond" and so on...
TextDrawBoxColour (deal with, r, g, b, a)
TextDrawOutline (deal with, isoutline)
TextDrawShadow (deal with,  r, g, b, a, blurX, blurY, power)
TextDrawCenter (deal with, iscenter)
TextDrawRight(deal with, isright)
TextDrawWrap (deal with, wrapL, wrapR)
TextDrawDestroy (deal with)
TextDrawCreate = DrawTextS + TextDrawHide 

--set color if mouse hover the component
SetHoverColourBegin(r,g,b,a)
SetHoverColourEnd()

--set rainbow-color 
SetAutoColourBegin(velocity)
SetAutoColourEnd()

--set fade-in prepared
SetFadeInBegin(fadegroup,inspeed, outspeed, isoutafterduration, outduration)
SetFadeInEnd()

--show the fade-in-ready group
SetFadeInShow(fadegroup)
SetFadeOut(fadegroup)

--automatic namespace with callback
DrawRectS(x, y, width, top, r, g, b, a, borderLength, br, bg, bb, ba, nobackground, cb)
DrawCircleS(x, y, width, top, r, g, b, a, cb)
DrawSpriteS(txDict, txName, x, y, w, h,heading, r, g, b, a, cb)
DrawPageS(gfxFile, x, y, w, h,heading, r, g, b, a, cb)
DrawTextS(strText, x, y, scale, r, g, b, a, cb)

--custom namespace with callback
DrawRectSF(NAME,x, y, width, top, r, g, b, a, cb)
DrawCircleSF(NAME,x, y, width, top, r, g, b, a, cb)
DrawSpriteSF(NAME,txDict, txName, x, y, w, h,heading, r, g, b, a, cb)
DrawPageSF(NAME,gfxFile, x, y, w, h,heading, r, g, b, a, cb)
DrawTextSF(NAME,strText, x, y, scale, r, g, b, a, cb)

--others 
DrawCursorState("hand")
DrawCursorState("arrow")
DrawCursorState("textual content")
DrawCursorState("busy")
SetDebugMode(true) --  / false --drawing helper,I've no point out about this
DrawSelectionHook(true,cb) --World Callback
DrawSelectionHook(true,operate(data) 
    print(json.encode(data))
finish)
-- put cb on the final params of components
DrawTextSF("howdy","howdy",0.09,0.42000003679297,0.36500004290554,255,255,255,255,operate(on)
	on.click on = operate(choice)
		print("wow that is howdy click on",choice)
		DrawCursorState("busy")
	finish 
	on.hover = operate(choice)
		--print("wow that is howdy hover",choice)
		DrawCursorState("hand")
	finish 
	on.unhover = operate(choice)
		print("wow that is howdy unhover",choice)
		DrawCursorState("arrow")
	finish 
finish)
DrawTextS("~y~~h~he %NBK_CUSTOM1% %NBK_CUSTOM2% %NBK_CUSTOM3% ~n~ %FACE_TITLE% ~ws~ ~ws~ ~ws~",0.09,0.30000002339233,0.36500004290554)
Wait(5000)
AddTextEntry("NBK_CUSTOM2","HELLO2"..math.random(15,666))
Wait(5000)
AddTextEntry("FACE_TITLE","HELLO2"..math.random(15,666))
CreateThread(operate()
	whereas true do Wait(100)
		
		AddTextEntry("NBK_CUSTOM1","HELLO"..math.random(0,150))
		AddTextEntry("NBK_CUSTOM2","HELLO2"..math.random(15,666))
		AddTextEntry("NBK_CUSTOM3","HELLO3"..math.random(32,1523))
	finish 
finish)



Looking for paid scripts? Click here