• 0

    posted a message on SharedMedia (?) problem after 2.4 - Fonts not showing up
    Thanks guys that was pretty simple
    Posted in: AddOn HELP!
  • 0

    posted a message on SharedMedia (?) problem after 2.4 - Fonts not showing up
    Having the same problem getting my addons that use the SM3 lib to load up the custom fonts/textures that I have in MyMedia files folder using the MyMedia.lua file. Tbh I didn't setup the MyMedia.lua file to begin with. I downloaded someones ui package and though I didn't end up keeping the ui a certain custom font that the person had in there stuck on me. I read the readme file that tells you how to get your own fonts ect work and I'm probably just retarded because I can't figure it out.

    Here is a copy of the MyMedia.lua file that I have


    local SML = AceLibrary("SharedMedia-1.0")
    MyMedia = AceLibrary("AceAddon-2.0"):new()

    function MyMedia:OnInitialize()
    local SML = AceLibrary:HasInstance("SharedMedia-1.0") and AceLibrary("SharedMedia-1.0") or nil
    if SML then
    --Insert your media's information (under the section headers) between here...
    --background:
    SML:Register("background", "Hal BG", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalBackground.tga")
    SML:Register("background", "Hal BGa", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalBackgroundA.tga")
    --border:
    SML:Register("border", "Hal Border", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalBorder.tga")
    --font:

    SML:Register("font", "Caith1", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith1.ttf")
    SML:Register("font", "Caith2", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith2.ttf")
    SML:Register("font", "Caith3", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith3.TTF")
    SML:Register("font", "Caith4", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith4.ttf")
    SML:Register("font", "Caith5", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith5.ttf")
    SML:Register("font", "Caith6", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith6.ttf")
    SML:Register("font", "Caith7", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith7.TTF")
    SML:Register("font", "Caith8", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith8.TTF")
    SML:Register("font", "Caith9", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith9.otf")
    SML:Register("font", "Caith10", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith10.TTF")
    SML:Register("font", "Caith11", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith11.ttf")
    SML:Register("font", "Caith12", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith12.ttf")
    SML:Register("font", "Caith13", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith13.ttf")
    SML:Register("font", "Caith14", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith14.ttf")
    SML:Register("font", "Caith15", "Interface\\AddOns\\SharedMedia\\Caith Font\\caith15.ttf")




    --sound:

    --statusbar:

    SML:Register("statusbar", "glamour", "Interface\\AddOns\\SharedMedia\\statusbar\\glamour.tga")
    SML:Register("statusbar", "glamour2", "Interface\\AddOns\\SharedMedia\\statusbar\\glamour2.tga")
    SML:Register("statusbar", "glamour3", "Interface\\AddOns\\SharedMedia\\statusbar\\glamour3.tga")
    SML:Register("statusbar", "glamour4", "Interface\\AddOns\\SharedMedia\\statusbar\\glamour4.tga")
    SML:Register("statusbar", "glamour5", "Interface\\AddOns\\SharedMedia\\statusbar\\glamour5.tga")
    SML:Register("statusbar", "glamour6", "Interface\\AddOns\\SharedMedia\\statusbar\\glamour6.tga")
    SML:Register("statusbar", "glamour7", "Interface\\AddOns\\SharedMedia\\statusbar\\glamour7.tga")
    SML:Register("statusbar", "Hal A", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalA.tga")
    SML:Register("statusbar", "Hal B", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalB.tga")
    SML:Register("statusbar", "Hal C", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalC.tga")
    SML:Register("statusbar", "Hal D", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalD.tga")
    SML:Register("statusbar", "Hal E", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalE.tga")
    SML:Register("statusbar", "Hal F", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalF.tga")
    SML:Register("statusbar", "Hal G", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalG.tga")
    SML:Register("statusbar", "Hal H", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalH.tga")
    SML:Register("statusbar", "Hal I", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalI.tga")
    SML:Register("statusbar", "Hal J", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalJ.tga")
    SML:Register("statusbar", "Hal K", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalK.tga")
    SML:Register("statusbar", "Hal L", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalL.tga")
    SML:Register("statusbar", "Hal M", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalM.tga")
    SML:Register("statusbar", "Hal N", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalN.tga")
    SML:Register("statusbar", "Hal O", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalO.tga")
    SML:Register("statusbar", "Hal P", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalP.tga")
    SML:Register("statusbar", "Hal Q", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalQ.tga")
    SML:Register("statusbar", "Hal R", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalR.tga")
    SML:Register("statusbar", "Hal S", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalS.tga")
    SML:Register("statusbar", "Hal T", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalT.tga")
    SML:Register("statusbar", "Hal U", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalU.tga")
    SML:Register("statusbar", "Hal V", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalV.tga")
    SML:Register("statusbar", "gl3", "Interface\\Addons\\SharedMedia\\MyMedia files\\glamour3.tga")
    SML:Register("statusbar", "Hal Gla", "Interface\\Addons\\SharedMedia\\MyMedia files\\HalGla.tga")


    -- ... and here
    end
    end

    If anyone can help me I'll be very grateful. I'm going to try to tackle this thing tomorrow.
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.