![]() = self.Health:CreateTexture(nil, "BACKGROUND") Remove this section if you don't want a background: Green for player, or change "colorReaction" to "colorSmooth" to color by health: Self.Health = CreateFrame("StatusBar", nil, self) ![]() Self:HookScript("OnLeave", UnitFrame_OnLeave) Self:HookScript("OnEnter", UnitFrame_OnEnter) Add two dashes in front of each of these two lines if you don't want a tooltip: to the beginning of the RegisterForClicks line. If you want the frame to be unclickable, move the two dashes from the EnableMouse line Self:SetPoint("BOTTOM", UIParent, "CENTER", 0, 100) ![]() Change the second number (100) to move the frame up (positive values) or down (negative). Change the first number (0) to move the frame left (positive values) or right (negative). ![]() Self:SetAttribute("initial-height", HEIGHT) Self:SetAttribute("initial-width", WIDTH) OUF:RegisterStyle("PlayerNamePlate", function(self) Local TEXTURE = "Interface\\TargetingFrame\\UI-StatusBar]] ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |