1. Post #1

    February 2009
    62 Posts
    How would i close my derma menu with a Dbutton? Like for example, i have my function on my buttons DoClick but ive tryed remove(), exit() and close() yet nothin works.

  2. Post #2
    Gold Member
    Entoros's Avatar
    October 2008
    2,318 Posts
    Lua is case sensitive, so it would look like:

    Code:
    button:Remove()

  3. Post #3
    Merry Fuckin' Christmas
    LuckyLuke's Avatar
    May 2010
    5,335 Posts
    Wouldn't you just set the DFrame to invisible?

    DFrame1:SetVisible(false)

    But just do it in the buttons DoClick function?

    DButton1.DoClick = function()
                        DFrame1:SetVisible(false)
                        end
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Agree Agree x 1 (list)

  4. Post #4
    King Flawless's Avatar
    July 2010
    1,625 Posts
    Wouldn't you just set the DFrame to invisible?

    DFrame1:SetVisible(false)

    But just do it in the buttons DoClick function?

    DButton1.DoClick = function()
                        DFrame1:SetVisible(false)
                        end
    This is better if you plan to open and close it alot

  5. Post #5
    Merry Fuckin' Christmas
    LuckyLuke's Avatar
    May 2010
    5,335 Posts
    Okay, OP do you plan on ths derma menu opening and closing a alot? or is it just a one time menu?

    Edited:

    I think this is the most appropriate for a one time derma: DFrame.SetDeleteOnClose

  6. Post #6

    February 2009
    62 Posts
    This menu is for a npc shop and there are buttons to determine what the player says next. I want the final button just to end the shop panel.

  7. Post #7
    Merry Fuckin' Christmas
    LuckyLuke's Avatar
    May 2010
    5,335 Posts
    Then you do want
    DFrame:SetVisible(false)

  8. Post #8

    February 2009
    62 Posts
    Yep, im using the SetVisible(false)

    Thanks for all the input guys!