-
Notifications
You must be signed in to change notification settings - Fork 0
Home
kouba06 edited this page Oct 2, 2020
·
1 revision
Welcome to the modifierToArab wiki!
To modify the Arab text in Defold Add a file, to your project.
[https://defold.com/manuals/libraries/#setting-up-library-dependencies](setting up library dependencies)
And get the file inside your project
local modifier = require "modifier.modifier"
and get the node of text and text
textNode = gui.get_node("arabtext")
arabText = gui.get_text(textNode)
Create a variable and give it the value of the text within the function modifierToArab().
modifierText = modifier.modifierToArab(arabText)
and set the value of modifierText to the same node
gui.set_text(textNode, modifierText)