Complete rewrite of message handler

This commit is contained in:
Foereaper
2021-07-18 02:35:10 +02:00
parent 74f928d542
commit 73acd33579
6 changed files with 549 additions and 167 deletions

View File

@ -138,7 +138,7 @@ function StatPointUI.OnLoad()
end
function OnCacheReceived(sender, argTable)
StatPointUI.cache = argTable[2]
StatPointUI.cache = argTable[1]
local rowContent = {"Strength", "Agility", "Stamina", "Intellect", "Spirit"}
for i = 1, 5 do
StatPointUI[rowContent[i]].Val:SetText(StatPointUI.cache[i])

View File

@ -1,7 +1,7 @@
## Interface: 30300
## Title: StatPointUI
## Notes: CMH Stat Point UI example script.
## Version: 1.0
## Version: 1.1
## Author: Foereaper, Kaev
##RequiredDeps: CMH