[DiscordArchive] I assume you have an OnEvent function?
[DiscordArchive] I assume you have an OnEvent function?
Archived author: Foe • Posted: 2022-04-21T18:46:23.004000+00:00
Original source
I assume you have an OnEvent function?
Archived author: Clotic • Posted: 2022-04-21T18:46:43.035000+00:00
Original source
Yeah
isable()Archived author: Clotic • Posted: 2022-04-21T18:47:13.442000+00:00
Original source
```
buttonGrid[i][j]:SetScript(
"OnEvent",
function(self, event)
if event == "UpdateWorldstatesUI" then
if playerLevel < i * 10 then
buttonGrid[i][j]
isable()
end
print("event: " .. event)
end
end
)```
Archived author: Clotic • Posted: 2022-04-21T18:47:32.397000+00:00
Original source
ingore the updateWorldStateUI was playerlevelbefore
Archived author: Clotic • Posted: 2022-04-21T18:47:33.599000+00:00
Original source
>_>
Archived author: Foe • Posted: 2022-04-21T18:53:13.900000+00:00
Original source
You should replace the buttonGrid thing with self in that function
Archived author: Foe • Posted: 2022-04-21T18:54:02.552000+00:00
Original source
It's probably out of scope the way you do it there whenever the event happens
Archived author: Clotic • Posted: 2022-04-21T18:54:12.130000+00:00
Original source
yap
Archived author: Foe • Posted: 2022-04-21T18:54:39.717000+00:00
Original source
Yeah you need to rewrite a lot of that logic
Archived author: Clotic • Posted: 2022-04-21T18:54:54.754000+00:00
Original source
probably need to rewrite whole file tbh