Announcement

Collapse
No announcement yet.

Button Script (Make Text Underlined on OnEnter)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Button Script (Make Text Underlined on OnEnter)

    Hi All

    Hope somebody can help me out with this, I guess simple script question:

    Question:
    I like to make my Button Text Underlined OnEnter.

    Script I have tried:
    Button.SetProperties("Button1", FontUnderline==true);
    Note: I have placed this script on OnEnter

    Error msg:
    Error: Page1->Button1->On Enter,Line1:Argument 2 must be of type table.
    Stack Traceback:
    1:[Page1 -> Button1 -> On Enter] Line:1 in main chunk

    Really hope somebody can help me out.

    Thanks in advance

  • #2
    I figured it out

    Script have to be:
    Button.SetProperties("Button1", {FontUnderline=true});

    If you like to remove the Underline when Leave/rollOut you ofcourse have to write:
    Button.SetProperties("Button1", {FontUnderline=false});

    : )

    Comment

    Working...
    X