View Single Post
05-01-16, 11:26 PM   #20
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Damn, I thought I had done all that, but I guess it didn't save in the export process.

Once again, thank you EVERYBODY for helping fix this. It was driving me bonkers!!

Here is the finished, but unpopulated with options, product. I fixed the text colours with hex codes.

Colour codes link, because it is awesome: http://www.colourlovers.com/palette/..._silver_bronze

And my code, in case someone wants to do this again, and needs help.
Lua Code:
  1. function MyrroUI:CreateInstaller()
  2.     -- create Installer window ----------------------
  3.     local width = UIParent:GetWidth() / 2
  4.     local height = UIParent:GetHeight() / 2
  5.     local f = f or CreateFrame("Frame", "MyrroUIInstallerFrame")
  6.     f:SetFrameStrata("MEDIUM")
  7.     f:SetMovable(true)
  8.     f:SetUserPlaced(false)
  9.     f:SetClampedToScreen(true)
  10.     f:SetSize(width, height)
  11.     f:ClearAllPoints()
  12.     f:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
  13.  
  14.     -- frame backdrop ---------------------------
  15.     f:SetBackdrop({
  16.         bgFile = LSM:Fetch("background", "White Marble"),
  17.         edgeFile = LSM:Fetch("border", "Blizzard Achievement Wood"),
  18.         tile = false, tileSize = 20, edgeSize = 130,
  19.         insets = {left = 8, right = 8, top = 8, bottom = 8}
  20.     })
  21.    
  22.     -- "Myrro UI" -------------------------------
  23.     local fo1 = f:CreateFontString()
  24.     fo1:SetFont(LSM:Fetch("font", "Roman SD"), 24, nil)
  25.     fo1:SetPoint("BOTTOM", f, "TOP", 0, -24)
  26.     fo1:SetText("|cFFC98910Myrro UI|r") -- gold
  27.    
  28.     -- version text -----------------------------
  29.     local fo2 = f:CreateFontString()
  30.     fo2:SetFont(LSM:Fetch("font", "Roman SD"), 18, nil)
  31.     fo2:SetPoint("TOP", fo1, "BOTTOM")
  32.     fo2:SetText("|cFFA8A8A8" .. version .. "|r") -- silver
  33.    
  34.     -- "Installer" ------------------------------
  35.     local fo3 = f:CreateFontString()
  36.     fo3:SetFont(LSM:Fetch("font", "Roman SD"), 18, nil)
  37.     fo3:SetPoint("TOP", f, "BOTTOM", 0, 36)
  38.     fo3:SetText("|cFF965A38" .. L["Installer"] .. "|r") -- bronze
  39.    
  40.     return f
  41. end
Attached Thumbnails
Click image for larger version

Name:	done.jpg
Views:	605
Size:	169.1 KB
ID:	8725  
  Reply With Quote