Its really cool that people showing off with interfaces and I can copy paste the settings... But they always use special texture or font and I have no clue how to add that (not to mention where to get that). Not to mention I didnt see anything related in the appropriate topic (the pitbull layout topic I'm talking about). Any help on the topic please?
What's needed is SharedMedia-2.0.
In that lib (or what you can call it) you can add you're own files in a My media files folder and then all addons which support it (quite alot) will be able to use them.
My best advice is to download someones UI and go through his Sharedmedia folder to see how it's setup. You need to add a .lua (not hard, just copy someones and redo the names so it fits) and the image files to the mod.
I think you can begin investigating from here :)
I did find out about sharedmedia prior to my post. However (surprisignly) no documentation to related wiki site nor in readme whatsoever.
You say some lua file need to be modified... will that be some main pitbull lua file in general I have to modify? If yes than thanks I'm not even starting on this. Since pitbull gets an update every day (more than once) so the lua files I should update every day.
Hope I'm mistaking but still anyone could show me some guide for sharedmedia please?
As taken from the INSTRUCTIONS for MyMedia.txt in SharedMedia. (didn't cap it, it's named that way)
--[[
INSTRUCTIONS for MyMedia - using SharedMedia with your own stuff
================================================================
By doing this step, you may register your own textures, fonts, sounds, etc.
with LibSharedMedia-2.0 to choose from in-game, without fear of your edits being
overwritten when updating SharedMedia!
** Remember to always back up your Addons folder when updating with the WAU,
especially if using the Delete Before Extracting option. **
Instructions on how to use MyMedia:
-----------------------------------
1. Make a copy of this file called MyMedia.lua in the SharedMedia-2.0 folder
2. Place your media files into the "MyMedia files" folder
3. Use the examples below to add information about your newly added media.
You should only need to change anything between the lines marked "START"
and "END".
4. Each item of media that you want to add should have its own line that
uses the relevant example as a template. To add details about more than
one item, just add another line to that section, changing the specific
details (eg, the font name and path).
Examples:
---------
background-
LSM:Register("background", "my background's name", [[Interface\Addons\SharedMedia-2.0\MyMedia files\mybackground.tga]])
border-
LSM:Register("border", "my border's name", [[Interface\Addons\SharedMedia-2.0\MyMedia files\myborder.tga]])
font-
LSM:Register("font", "my font's name", [[Interface\Addons\SharedMedia-2.0\MyMedia files\myfont.ttf]])
LSM:Register("anotherfont", "my friend's font", [[Interface\Addons\SharedMedia-2.0\MyMedia files\myfont.ttf]])
sound-
LSM:Register("sound", "my sound's name", [[Interface\Addons\SharedMedia-2.0\MyMedia files\mysound.mp3]])
statusbar-
LSM:Register("statusbar", "my statusbar texture's name", [[Interface\Addons\SharedMedia-2.0\MyMedia files\mytexture.tga]])
Problems:
---------
If you have any issues, let us know on the wowace forums in the MyMedia
thread. --Seerah
]]
----------------------------------------------------------------------------
-- Copy this file to a file called MyMedia.lua, and enter your media's
-- information below, using the examples above.
----------------------------------------------------------------------------
local LSM = LibStub("LibSharedMedia-2.0")
-- START of the section that you should be updating
--
-- NB: any line beginning with "--" is ignored - so the lines
-- below are just comments!
--
--background:
--border:
--font:
--sound:
--statusbar:
-- END of the section that you should be updating
Example of a MyMedia.lua (it's mine and long, it's also not named MyMedia, because I have a seperate own written addon for it, but the idea is the exact same. As is the syntax, the only thing changing is the path to the textures.)
Thanks in advance...
In that lib (or what you can call it) you can add you're own files in a My media files folder and then all addons which support it (quite alot) will be able to use them.
My best advice is to download someones UI and go through his Sharedmedia folder to see how it's setup. You need to add a .lua (not hard, just copy someones and redo the names so it fits) and the image files to the mod.
I think you can begin investigating from here :)
I did find out about sharedmedia prior to my post. However (surprisignly) no documentation to related wiki site nor in readme whatsoever.
You say some lua file need to be modified... will that be some main pitbull lua file in general I have to modify? If yes than thanks I'm not even starting on this. Since pitbull gets an update every day (more than once) so the lua files I should update every day.
Hope I'm mistaking but still anyone could show me some guide for sharedmedia please?
Example of a MyMedia.lua (it's mine and long, it's also not named MyMedia, because I have a seperate own written addon for it, but the idea is the exact same. As is the syntax, the only thing changing is the path to the textures.)
Thanks Moon Witch I give a go for this later on az I got time and I hope I can use this.
If it doesn't work, post back with what you coded. Know that you will most likely have to remove the ## in front of MyMedia.lua in the .toc file.
Are you downloading the library itself or one of the offshoot SharedMedia packages? It's in SharedMedia itself. Click this: http://files.wowace.com/SharedMedia-2.0/SharedMedia-2.0.zip