Skip to content

Instantly share code, notes, and snippets.

@kurapica
Last active September 15, 2021 00:59
Show Gist options
  • Save kurapica/80304fd7284c3ef7235e20bf3099e4ae to your computer and use it in GitHub Desktop.
Save kurapica/80304fd7284c3ef7235e20bf3099e4ae to your computer and use it in GitHub Desktop.
Scorpio "AshToAshSkin" ""
pcall(Style.RegisterSkin, "5MSkin")
DEFAULT_COLOR = Color("|c222222ff")
LOW_HEALTH_COLOR = Color.WHITE
HEALTHBAR = (Scorpio.IsRetail or Scorpio.IsBCC or IsAddOnLoaded("LibHealComm-4.0") or pcall(_G.LibStub, "LibHealComm-4.0")) and "PredictionHealthBar" or "HealthBar"
Style.UpdateSkin("5MSkin", {
[AshToAsh.AshUnitFrame] = {
inherit = "default", -- inherit the default skin
[HEALTHBAR]= {
location = { Anchor("TOPLEFT"), Anchor("BOTTOMRIGHT", - 1, 0, "PowerBar", "BOTTOMLEFT")},
Orientation = "VERTICAL",
statusBarColor = Wow.FromUnitEvent("UNIT_HEALTH", "UNIT_MAXHEALTH"):Next():Map(function(unit)
return( UnitHealth(unit) * 100 / UnitHealthMax(unit) ) > 40 and DEFAULT_COLOR or LOW_HEALTH_COLOR
end),
backgroundFrame = {
backgroundTexture = {
Color = Color.BLACK
},
},
},
PowerBar = {
Orientation = "VERTICAL",
location = { Anchor("TOPRIGHT"), Anchor("BOTTOMRIGHT") },
width = 4,
},
}
})
Style.ActiveSkin("5MSkin")
@kurapica
Copy link
Author

image
Have an issue running this "skin". Name doesn't get centered in box, no resize(I guess it's 45*50). Textures seems wrong too, am I missing something?

If you are use it in the classic version, I just upload a new version, since the UnitIncomingHeal is added in the classic, there health bar is changed from normal health bar to a health bar with prediction.

Also for now, there is full skin mod for ATA: https://www.curseforge.com/wow/addons/ashtoash_blizzardskin

@Reshuffling
Copy link

I am using the TBC Classic version. The Blizzard Skin works without any issues, but was trying to copy the style as in the picture from the AddonPage, guess I will stick to Blizzframes for now.

@Reshuffling
Copy link

Reshuffling commented Sep 14, 2021

Haha, a commit exactly when I commented, seems to work! Font seems a bit broken, but looks great now!

image

Thanks for the update! Trying to make my own UnitFrames with Cube now so we'll see how that goes. :)

@kurapica
Copy link
Author

You can join my channel https://discord.gg/6hD4sdUtgp, those details is hard to be discussed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment