I realize that this is a pretty basic question, but could someone help me out. I have some code working that has multiple screens that are stacked on top of one another, but cannot seem to remove them on a button press. I would be happy if I could get a button to delete the group that it is in. From there I could make it take out the complete screen.
–Here is a piece of my current code that has been simplified to illustrate what I am doing
– The Buttons Function
local MainMenuReturnF = function()
Backbtn = OptionsGroup.Backbtn
Backbtn.parent:remove( Backbtn )
OptionsGroup.Backbtn = nil
end
– The Button
Backbtn = ui.newButton{default=“ButtonNormal.png”, rollover=“ButtonPressed.png”, onRelease=MainMenuReturnF , x = 300, y = 240}
[import]uid: 4871 topic_id: 522 reply_id: 300522[/import]