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

Option to return to previous window #3

Open
ColorTwist opened this issue Dec 16, 2019 · 1 comment
Open

Option to return to previous window #3

ColorTwist opened this issue Dec 16, 2019 · 1 comment

Comments

@ColorTwist
Copy link

ColorTwist commented Dec 16, 2019

I am trying to understand this UI framework.
Thank for sharing it.
Would it be possible to return to a previously opened UI panel, like with a "back" or "close"?

@yankooliveira
Copy link
Owner

Hey there,

By default, Windows have history and queue built in. This means that if you open a window while another one is already open, and then do UIFrame.CloseWindow (or UI_Close() on the Window code itself, or via a button component rigged to call that method) it will automatically pop the previous Window that is opened in the History stack.

All windows that are not flagged as Force Foreground in their properties will enter a queue, and will be opened as soon as the current window is closed. Check Part 3 of the manual here regarding operating windows and the Addendum right below it regarding opening order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants