求助!
lua吧
全部回复
仅看楼主
level 1
-- 连击点
function S:ConstructCombo()
local this = self.frame["target"];
self.Combo = CreateFrame("Frame", nil, this);
self.Combo:SetWidth(80)
self.Combo:SetHeight(16)
self.Combo:SetPoint("TOPLEFT", this.heal, "BOTTOMLEFT", 0, 0);
local bg, fill = {}, {};
for i = 1, MAX_COMBO_POINTS do
self.Combo[i] = CreateFrame("Frame", nil, self.Combo)
self.Combo[i]:SetWidth(16)
self.Combo[i]:SetHeight(16)
if i == 1 then
self.Combo[i]:SetPoint("LEFT", self.Combo, "LEFT")
else
self.Combo[i]:SetPoint("LEFT", self.Combo[i - 1], "RIGHT")
end
bg[i] = self.Combo[i]:CreateTexture(nil, "ARTWORK")
bg[i]:SetTexture("Interface\\AddOns\\BlinkHealthText\\textures\\combo.blp")
bg[i]:SetTexCoord(0, 16 / 64, 0, 1)
bg[i]:SetAllPoints(self.Combo[i])
fill[i] = self.Combo[i]:CreateTexture(nil, "OVERLAY")
fill[i]:SetTexture("Interface\\AddOns\\BlinkHealthText\\textures\\combo.blp")
fill[i]:SetTexCoord(0.5, 0.75, 0, 1)
fill[i]:SetVertexColor(1, 1, 0)
fill[i]:SetAllPoints(self.Combo[i])
end
self.Combo:Hide();
self.Combo.bg = bg;
self.Combo.fill = fill;
end
这样写了 但是游戏里面没出现 求大神支招
2017年03月12日 16点03分 1
1