New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transparent Colors #93

Open
Whatsatotem opened this Issue Sep 4, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@Whatsatotem

Whatsatotem commented Sep 4, 2018

transparent

Suggested by: Pachari (Discord)
have a setting that changes Player/Target colors to either match (the artwork), or make separate colors for Player/Target

@Hydrair

This comment has been minimized.

Show comment
Hide comment
@Hydrair

Hydrair Sep 4, 2018

Hey, this is Pachari from discord!

I looked into it and added another Color Chooser to Spartan_Style_Transparent/Style.lua by adding the following to module:SetupMenus

PlayerColor = { name = L['ArtColor'], type = 'color', hasAlpha = true, order = 1, width = 'full', get = function(info) return unpack(SUI.DB.Styles.Transparent.Color.PlayerFrames) end, set = function(info, r, b, g, a) SUI.DB.Styles.Transparent.Color.PlayerFrames = {r, b, g, a} module:SetColor() end }

This will let the user choose both colors for player and artwork separately.
Also I'm not sure how to adjust the language file for translating UnitFramePlayer.
(I don't know how to put newlines in the code-part, sorry about that)

sui

Hydrair commented Sep 4, 2018

Hey, this is Pachari from discord!

I looked into it and added another Color Chooser to Spartan_Style_Transparent/Style.lua by adding the following to module:SetupMenus

PlayerColor = { name = L['ArtColor'], type = 'color', hasAlpha = true, order = 1, width = 'full', get = function(info) return unpack(SUI.DB.Styles.Transparent.Color.PlayerFrames) end, set = function(info, r, b, g, a) SUI.DB.Styles.Transparent.Color.PlayerFrames = {r, b, g, a} module:SetColor() end }

This will let the user choose both colors for player and artwork separately.
Also I'm not sure how to adjust the language file for translating UnitFramePlayer.
(I don't know how to put newlines in the code-part, sorry about that)

sui

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