oreosierra.blogg.se

Lua color code generator
Lua color code generator













lua color code generator

The texture colour in the details background works perfectly if I change it to orange (the commented line) but not when it’s white. # Notes: Testing weird texture colour behaviour This is literally the entire TOC # Title: Test CarnackiTestAddonTexDetails:SetColorTexture(1.0,0.49,0.04) ĬarnackiTestAddonTexDetails:SetAlpha(1.0) ĬarnackiTestAddon.font = CarnackiTestAddonFSDetailsĬarnackiTestAddonFSDetails = CarnackiTestAddon:CreateFontString() ĬarnackiTestAddonFSDetails:SetFont("Fonts\\FRIZQT_.TTF", 16) ĬarnackiTestAddonFSDetails:SetPoint("TOP", 0, -40) ĬarnackiTestAddonFSDetails:SetTextColor(0,0,0) ĬarnackiTestAddonFSDetails:SetText("Testing fontstring") ĬarnackiTestAddonTexDetails:SetAllPoints(CarnackiTestAddonFSDetails) Local CarnackiTestAddonTexDetails = CarnackiTestAddon:CreateTexture() CarnackiTestAddon:SetFrameStrata("MEDIUM") ĬarnackiTestAddon.texture = CarnackiTestAddonTexBGĬarnackiTestAddonTexBG:SetColorTexture(0.21,0.27,0.31) ĬarnackiTestAddon.texture = CarnackiTestAddonTexTitleĬarnackiTestAddonTexTitle:SetAllPoints() ĬarnackiTestAddonTexTitle:SetColorTexture(1,1,0.5) ĬarnackiTestAddon.font = CarnackiTestAddonFSTitleĬarnackiTestAddonFSTitle = CarnackiTestAddon:CreateFontString() ĬarnackiTestAddonFSTitle:SetFont("Fonts\\FRIZQT_.TTF", 24) ĬarnackiTestAddonFSTitle:SetPoint("TOP", 0, -10) ĬarnackiTestAddonFSTitle:SetTextColor(0,0,0) ĬarnackiTestAddonFSTitle:SetText("TEST") ĬarnackiTestAddonTexTitle:SetAllPoints(CarnackiTestAddonFSTitle) ĬarnackiTestAddon.texture = CarnackiTestAddonTexDetailsĬarnackiTestAddonTexDetails:SetAllPoints() ĬarnackiTestAddonTexDetails:SetColorTexture(1.0,1.0,1.0) Local CarnackiTestAddonTexTitle = CarnackiTestAddon:CreateTexture() Local CarnackiTestAddonTexBG = CarnackiTestAddon:CreateTexture() Local CarnackiTestAddon = CreateFrame(“Frame”, nil, UIParent) And I’m still having the same problem (white just flat out refuses to work). I have literally culled everything but the problem areas and hopefully clearer names. I thought maybe with the button there was a naming collision so the fontstring was getting assigned the colour that way, but I’ve double checked and it’s definitely not.

lua color code generator

I’ve looked up the colour codes ( ) before I even asked this question because I was sure I was doing it right. But white just refuses to work, and several shades of grey created weird colours too.

lua color code generator

It’s blowing my mind because there’s no doubt it’s the right object that I’m working on (otherwise setting it to orange wouldn’t work). But change it back toĪnd the colour is either set to the same gray as the background or it’s rendered transparently. MyAddonFS1:SetColorTexture(1.0,0.49,0.04) Īnd the expected colour (orange) appears where it’s supposed to (around the words “Testing fontstring”). Similarly, I can change JUST the one entry: But that only seemed to affect the colour once, and now it’s no longer affecting the colour. When I say adding a close button changed the background colour of MyAddonFS1 I mean literally just by adding a button, not the onclick event. In that screenshot above where it says “Testing fontstring” that is MyAddonFS1. SlashCmdList.CanackiAddon = function(msg)ĬanackiAddonFrame:SetShown(not CanackiAddonFrame:IsShown()) Units.Text:SetText("No I am") - change the name of the last unit Units.Text:SetText("Last Unit") - change the name of the last unitĬreateUnit(CanackiAddonFrame, #Units + 1) f.Texture:SetVertexColor(54/255, 69/255, 79/255)į.Close = CreateFrame("Button", "$parentClose", f, "UIPanelButtonTemplate")į.Close:SetScript("OnClick", function(self) Local f = CreateFrame("Frame", "CanackiAddonFrame", UIParent)į.Texture:SetTexture("Interface/BUTTONS/WHITE8X8") Print(v, color.r, color.g, color.b, color:GenerateHexColor())į:SetTexture("Interface/BUTTONS/WHITE8X8") Local color = C_ClassColor.GetClassColor(v) Using the code from the other thread, a grey frame with randomly class coloured backgrounds to fontstrings/texture combinations with a close button and a show/hide slash command (/ca)Īnd a print of the class colors including hex. It’s imposible to tell without seeing the code but I’m guessing whatever widget your close button is hiding, it’s not the one you think it is.















Lua color code generator