Thread Tools Display Modes
05-01-16, 04:18 PM   #1
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Artis wanted round two

Since my request for recolorization of my icon was so succesful, I thought I'd try my luck with a background texture.

Attached is a .tga called white marble, which I want to use with LibSharedMedia as, you guessed it, a background!

The problem is that is shows up as entirely green. I'm guessing that means it isn't compatible, and I have no idea how to fix that. That image is also attached.

Any and all help greatly appreciated!
Attached Thumbnails
Click image for larger version

Name:	green.jpg
Views:	443
Size:	131.7 KB
ID:	8719  
Attached Files
File Type: tga white marble.tga (1.06 MB, 406 views)
  Reply With Quote
05-01-16, 04:22 PM   #2
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
This texture is not scaled to a power of 2. It needs to be either 1024x1024 or 2048x1024 or 2048x2048 if you really want it to be that big.
__________________
  Reply With Quote
05-01-16, 04:33 PM   #3
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Is it as simple as cropping or exporting in Gimp? Yeah, I have Gimp, but I am a near total newbie.
  Reply With Quote
05-01-16, 04:38 PM   #4
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Taking a guess, I set the canvas size to 1024x1024. The original image had an odd numbered coordinate. Trying to see if this works now.

Edit: still green

Last edited by myrroddin : 05-01-16 at 04:45 PM. Reason: still green
  Reply With Quote
05-01-16, 05:19 PM   #5
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
This should work.

white marble (1).tga
__________________
  Reply With Quote
05-01-16, 05:54 PM   #6
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Weird. While I'm sure there is nothing wrong with your copy, it doesn't seem to work for me. "Blizzard Marble" works fine on line 16, but "White Marble" does not.

My main chunk has the following.
Lua Code:
  1. -- register font & background with LibSharedMedia-3-0
  2. LSM:Register("font", "Roman SD", "Interface\\AddOns\\MyrroUI\\Media\\Roman SD.ttf")
  3. LSM:Register("background", "White Marble", "Interface\\AddOns\\MyrroUI\\Media\\white marble.tga")
  4.  
  5. function MyrroUI:OnInitialize()
  6.     -- called in MUI_Installer.lua
  7.     self.installer = self.installer or self:CreateInstaller()
  8. end

And MUI_Installer.lua

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", "Blizzard Marble"),
  17.         edgeFile = LSM:Fetch("border", "Blizzard Achievement Wood"),
  18.         tile = false, tileSize = 20, edgeSize = 130,
  19.         insets = {left = 0, right = 0, top = 0, bottom = 0}
  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("Myrro UI")
  27.     fo1:SetTextColor(201, 137, 16, 1)
  28.    
  29.     -- version text -----------------------------
  30.     local fo2 = f:CreateFontString()
  31.     fo2:SetFont(LSM:Fetch("font", "Roman SD"), 18, nil)
  32.     fo2:SetPoint("TOP", fo1, "BOTTOM")
  33.     fo2:SetText(version)
  34.     fo2:SetTextColor(168, 168, 168, 1)
  35.    
  36.     -- "Installer" ------------------------------
  37.     local fo3 = f:CreateFontString()
  38.     fo3:SetFont(LSM:Fetch("font", "Roman SD"), 18, nil)
  39.     fo3:SetPoint("TOP", f, "BOTTOM", 0, 36)
  40.     fo3:SetText(L["Installer"])
  41.     fo3:SetTextColor(150, 90, 56, 1)
  42.    
  43.     return f
  44. end
  Reply With Quote

WoWInterface » Developer Discussions » Graphics Help » Artis wanted round two

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off