Skip to content
Discussion options

You must be logged in to vote
	r.show_popup.SetText("Show popup")
	r.show_popup.OnDown(func(context *guigui.Context) {
		r.popup.SetModal(true)
		r.popup.SetCloseByClickingOutside(true)
		r.popup.SetBackgroundDark(true)
		r.popup.SetBackgroundBlurred(true)
		r.popup.OnClose(func(context *guigui.Context, reason basicwidget.PopupCloseReason)      {
			println("Popup closed")
		})
		r.popup.SetOpen(true)
	})

Not correct. This should be

	r.show_popup.SetText("Show popup")
	r.show_popup.OnDown(func(context *guigui.Context) {
		r.popup.SetOpen(true)
	})

	r.popup.SetModal(true)
	r.popup.SetCloseByClickingOutside(true)
	r.popup.SetBackgroundDark(true)
	r.popup.SetBackgroundBlurred(true)
	r.popup.OnClose(func(context *guigui.C…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by udan-jayanith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants