Jump to content

[UI][Lua] Button disappear after clicking it, and shows up again, after click different button?


szef

Recommended Posts

As title says.

I want one button open some menu, and disappears, then click exit button closing that menu (by different button) - and first button again shows up...

I think it is doable??

Thanks to lefreut:

onopen
"
    showButton = true
"
button
{
    enabled        "showButton"
    ...
    action
    "
        showButton = false
    "
}
button
{
    ...
    action
    "
        showButton = true
    "
}

 

Edited by szef
Link to comment

For anyone wondering, Lefreut's suggestion:

onopen
"
    showButton = true
"
button
{
    enabled        "showButton"
    ...
    action
    "
        showButton = false
    "
}
button
{
    ...
    action
    "
        showButton = true
    "
}

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...