Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant close the menu #16

Closed
chopo156 opened this issue Dec 24, 2020 · 8 comments
Closed

Cant close the menu #16

chopo156 opened this issue Dec 24, 2020 · 8 comments
Labels
Bug Something isn't working Closed Issue has been closed

Comments

@chopo156
Copy link

Hi Tigo i just create a simple menu with a bunch of buttons just for testing, one of those buttons are the "close" one.
So i do

 MechMenu1 = MenuV:CreateMenu("MECHANIC MENU","", 'size-150')
		 MenuV:OpenMenu(MechMenu1, function()
		 end)

then
local buybutton = MechMenu1:AddButton({icon ="🧑‍🔧 ",label = "Close Menu" , value = 1,description = 'Close the Menu' })
and in the On Event

buybutton:On("select",function()
			-- MenuV:CloseMenu(MechMenu1)
			 MechMenu1:Close()
			 print("CALLED MENU CLOSE")

		 end)

but it never close itself, i dont know but maybe im doing something wrong, i get the "CALLED MENU CLOSE" in the console

@ThymonA
Copy link
Owner

ThymonA commented Dec 24, 2020

Which version are you using?

@ThymonA ThymonA added the Bug Something isn't working label Dec 24, 2020
@chopo156
Copy link
Author

the last one

@chopo156
Copy link
Author

chopo156 commented Dec 25, 2020

Another thing tigo, the Refresh doest work for me too, i add a number, then that number must increase the label of the button, but it never doest, i put the refresh() and doest nothing, didnt find in the documentation the correct way to use it.

@ThymonA
Copy link
Owner

ThymonA commented Dec 25, 2020

It is strange that MenuV:Refresh() isn't working, because what that function does is reloading the complete menu.
Its seems more like your not using the latest version, because some of those bugs your encounter are already fixed.
If your sure your using the latest version, send me your menu resource (not menuv, just the resource with MenuV:CreateMenu etc.

You can send it to one of the following:
Discord Tigo#9999
Mail contact@thymonarens.nl
Here as attachment (public visible)

Maybe the I can find the problem why MenuV isn't working for you.

@chopo156
Copy link
Author

Hi Tigo is chopo156 here,
example.zip
i use the default example

@ThymonA
Copy link
Owner

ThymonA commented Jan 11, 2021

Close this issue because I couldn't reproduce it. I will till investigate this in another issue/update #15

@ThymonA ThymonA closed this as completed Jan 11, 2021
@ThymonA ThymonA added the Closed Issue has been closed label Jan 11, 2021
@robertne13
Copy link

robertne13 commented Feb 16, 2022

same issue here
image
i try
menu:Close()
MenuV:CloseAll()
MenuV:CloseMenu(menu)
i create the menu like this
local menu = MenuV:CreateMenu(false, 'Editar Vehiculo', 'topright', 220, 20, 60, 'size-125', 'none', 'menuv', 'test')

I use 1.4 Version

@Collaze
Copy link

Collaze commented Mar 1, 2022

I'm getting the same as the guy above me ^^^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Closed Issue has been closed
Projects
None yet
Development

No branches or pull requests

4 participants