-
Notifications
You must be signed in to change notification settings - Fork 546
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
[UI Window] - common usage of OnOpen,OnClose,OnRefresh .. #15
Comments
AddOnClickListener will be automatically removed in the OnClose.
ps: OpenUI by IApplicationStatus also the same |
Hi @GaoKaiHaHa |
@GaoKaiHaHa Can you explain more about OnRefesh and how to use it (some example when to use it) in the real game? |
If you use |
|
Hi @GaoKaiHaHa |
Hi!
I can see we have a lot of function to write the logic each window UI, it is really awesome! Can you tell more about the lifecycle of those methods and common usage pattern?
OnInit()
OnOpen()
OnClose()
OnHide()
OnShow()
OnRefresh() . -- This usage pattern example? What kind of UI event will active this method?
Why we usually using OnOpen and OnClose but not OnShow and OnHide?
And one more thing I am very confused is why we using AddOnClickListener on OnOpen but do not have to remove it on OnClose (and why don't use it in OnInit ), So maybe we have an issue that duplicated events somewhere?
Thank you so much! I am learning it day by day!
The text was updated successfully, but these errors were encountered: