Why ReloadUI() method causes mistake
1 Attachment(s)
I'm trying to call ReloadUI() method after one minute. This is code I'm using.
Code:
local isEnd = false Attachment 9433 How to fix this? Or any ideas how to make one minute delay? I found other function on https://wowwiki.fandom.com/wiki/USERAPI_wait Code:
<PREFIX>_wait(delay, func [, param [,param [,...]]]) |
ReloadUI is protected and requires a hardware event (button/keyboard press) so it can't be run from a timer.
|
Quote:
I also tried to use with mybtn:Click() method where OnClick method has reloadui(). But this did not work. But i can call it like this: a = true if a then ReloadUI() end and this works. |
Calling an OnClick script from a timer is not the same as physically pressing a button.
Your timer could show a hidden button that the user then presses in order to run ReloadUI(). |
It means there is no way to create auto reloadui after delay?
|
Specially around April 1 ;)
|
a ? now I absolutely don't understand anything. It's real or not? This is not funny man. :confused:
|
Blizzard don't want addons reloading the UI unless the user OKs it by clicking a mouse or keyboard button.
I was using April 1 as an example where programmatically reloading the UI might be misused. |
I want to update SavedVariables file. Which is updated only when player logouts or reloads ui.
So is it possible to make Logout() and then Login() automatically with addons only. |
Quote:
|
Quote:
No, not legally |
No, as Fizzlemizz says, give them a button to press. You want your users to be ready for the UI to reload anyway.
|
All times are GMT -6. The time now is 03:30 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI