Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
BBCode TextField - Gideros Forum

BBCode TextField

olegoleg Member
edited July 2019 in Code snippets
Whether there is a plugin or an example, format the text with bbcode tags?
[b]bolded text[/b]
[size="30px"]Large Text[/size]
[color=#FF00FF]Text in fuchsia[/color]
[Center]Large Text[/Center]
ps/I want to create a class, and I want to make sure that nobody has created it yet
my games:
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!

Comments

  • MoKaLuxMoKaLux Member
    Accepted Answer
    hello there @oleg there is this style for text color inside a string:
    local text = TextField.new(nil, "This is a \e[color=#f005]semi transparent red\e[color] text")
    text:setPosition(32, 64)
    stage:addChild(text)

    Likes: oleg

    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
    +1 -1 (+1 / -0 ) Share on Facebook
  • olegoleg Member
    MoKaLux said:

    hello there @oleg there is this style for text color inside a string:

    local text = TextField.new(nil, "This is a \e[color=#f005]semi transparent red\e[color] text")
    text:setPosition(32, 64)
    stage:addChild(text)
    thank you need to add it to wikipedia
    my games:
    https://play.google.com/store/apps/developer?id=razorback456
    мій блог по гідерос https://simartinfo.blogspot.com
    Слава Україні!
  • MoKaLuxMoKaLux Member
    edited July 2019 Accepted Answer
    ok, I'll add it now as an example in the textfield wiki.

    edit: done
    https://wiki.giderosmobile.com/index.php/TextField

    Likes: oleg

    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
    +1 -1 (+1 / -0 ) Share on Facebook
Sign In or Register to comment.