View Single Post
Old 08-26-10, 09:30 AM   #7
Fodaro
A Cyclonian
 
Fodaro's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 42
The way I would approach this is to try and turn it into a backdrop border. The attached image is the border for a chat bubble. In this case, the edgeSize property of the backdrop would be set to 32, so the image is divided up into 8 32x32 pixel squares (as marked). You will need bigger squares, looking at the sizes involved. From left to right the squares are for: left border, right border, top border, bottom border (these two appear to be rotated), top left corner, top right corner, bottom left corner, and bottom right corner.

What I would do, (although I've never done this before), is turn your image into a border like this one. You'd probably want 128x128 pixel squares, and you might have to tweak some distances slightly, but then you could make your frame any size you like, and have the border still work fine. It looks like your background is solid color, so you might not even need an image for that.

Finally, you could use it like any other backdrop, for example:
lua Code:
  1. frame:SetBackdrop({
  2.     bgFile   = [[Interface\AddOns\MyStarTrekAddOn\frameBg]],
  3.     edgeFile = [[Interface\AddOns\MyStarTrekAddOn\frameBorder]],
  4.     edgeSize = 128,
  5.     insets   = { left = 128, right = 128, top = 128, bottom = 128 }
  6. }
  7. frame:SetBackdropColor(1, 1, 1, 1)
  8. frame:SetBackdropBorderColor(1, 1, 1, 1) -- if you like, you could even make the image monochrome, then tint it how you like.

As I say, never done this before, so might need a bit of tweaking. If you get it working, please post to say how you did it .

Hope this helps,
Attached Thumbnails
Click image for larger version

Name:	ChatBubble-Backdrop.png
Views:	639
Size:	2.3 KB
ID:	4732  
__________________
Fodaro
(Main: Fodaro-Bronzebeard (EU))
Author of CharNote and Consolid8
Fodaro is offline   Reply With Quote