|
2020-12-06 21:35
조회: 2,913
추천: 1
기본 캐스팅바에 시간 표시![]() --기본 캐스팅바에 시간 표시 local Casting_Time = true --Casting 창 시간 표시 if Casting_Time then local font, size, flag = _G["NumberFontNormal"]:GetFont() CastingBarFrame.timer = CastingBarFrame:CreateFontString(nil) CastingBarFrame.timer:SetFont(font, 10, "THINOUTLINE") -- 폰트 크기 CastingBarFrame.timer:SetPoint("RIGHT", CastingBarFrame, "RIGHT", -5, 2) -- 폰트 위치(x,y) CastingBarFrame.update = 0.1 local function CastingBarFrame_OnUpdate_Hook(self, elapsed) if not self.timer then return end if self.update and self.update < elapsed then if self.casting or self.channeling then self.timer:SetText(format("%.1f/%.1f", max(self.maxValue - self.value, 0), max(self.maxValue, 0))) else self.timer:SetText("") end self.update = .1 else self.update = self.update - elapsed end end CastingBarFrame:HookScript('OnUpdate', CastingBarFrame_OnUpdate_Hook) end
EXP
21,200
(50%)
/ 22,201
|

한우물