local LSM = LibStub("LibSharedMedia-3.0")

if LSM == nil then
	return
end

local function mAddStatusbar(name, file)
	LSM:Register("statusbar", name, "Interface\\AddOns\\ElvUI_mMediaTag\\media\\textures\\" .. file)
end

local function mAddBackground(name, file)
	LSM:Register("background", name, "Interface\\AddOns\\ElvUI_mMediaTag\\media\\backgrounds\\" .. file)
end

local function mAddFont(name, file)
	LSM:Register("font", name, "Interface\\AddOns\\ElvUI_mMediaTag\\media\\fonts\\" .. file)
end

local function mAddBorder(name, file)
	LSM:Register("border", name, "Interface\\AddOns\\ElvUI_mMediaTag\\media\\border\\" .. file)
end

mAddStatusbar("mMediaTag A1", "a1.tga")
mAddStatusbar("mMediaTag A2", "a2.tga")
mAddStatusbar("mMediaTag A3", "a3.tga")
mAddStatusbar("mMediaTag A4", "a4.tga")
mAddStatusbar("mMediaTag A5", "a5.tga")
mAddStatusbar("mMediaTag A6", "a6.tga")
mAddStatusbar("mMediaTag A7", "a7.tga")
mAddStatusbar("mMediaTag A8", "a8.tga")
mAddStatusbar("mMediaTag A9", "a9.tga")
mAddStatusbar("mMediaTag A10", "a10.tga")
mAddStatusbar("mMediaTag A11", "a11.tga")
mAddStatusbar("mMediaTag A12", "a12.tga")
mAddStatusbar("mMediaTag A13", "a13.tga")
mAddStatusbar("mMediaTag A14", "a14.tga")
mAddStatusbar("mMediaTag A15", "a15.tga")

mAddStatusbar("mMediaTag B1", "b1.tga")
mAddStatusbar("mMediaTag B2", "b2.tga")
mAddStatusbar("mMediaTag B3", "b3.tga")
mAddStatusbar("mMediaTag B4", "b4.tga")
mAddStatusbar("mMediaTag B5", "b5.tga")
mAddStatusbar("mMediaTag B6", "b6.tga")
mAddStatusbar("mMediaTag B7", "b7.tga")
mAddStatusbar("mMediaTag B8", "b8.tga")
mAddStatusbar("mMediaTag B9", "b9.tga")
mAddStatusbar("mMediaTag B10", "b10.tga")
mAddStatusbar("mMediaTag B11", "b11.tga")
mAddStatusbar("mMediaTag B12", "b12.tga")
mAddStatusbar("mMediaTag B13", "b13.tga")
mAddStatusbar("mMediaTag B14", "b14.tga")
mAddStatusbar("mMediaTag B15", "b15.tga")
mAddStatusbar("mMediaTag B16", "b16.tga")
mAddStatusbar("mMediaTag B17", "b17.tga")

mAddStatusbar("mMediaTag C1", "c1.tga")
mAddStatusbar("mMediaTag C2", "c2.tga")
mAddStatusbar("mMediaTag C3", "c3.tga")
mAddStatusbar("mMediaTag C4", "c4.tga")
mAddStatusbar("mMediaTag C5", "c5.tga")
mAddStatusbar("mMediaTag C6", "c6.tga")
mAddStatusbar("mMediaTag C7", "c7.tga")
mAddStatusbar("mMediaTag C8", "c8.tga")
mAddStatusbar("mMediaTag C9", "c9.tga")
mAddStatusbar("mMediaTag C10", "c10.tga")
mAddStatusbar("mMediaTag C11", "c11.tga")
mAddStatusbar("mMediaTag C12", "c12.tga")
mAddStatusbar("mMediaTag C13", "c13.tga")
mAddStatusbar("mMediaTag C14", "c14.tga")
mAddStatusbar("mMediaTag C15", "c15.tga")

mAddStatusbar("mMediaTag D1", "d1.tga")
mAddStatusbar("mMediaTag D2", "d2.tga")
mAddStatusbar("mMediaTag D3", "d3.tga")
mAddStatusbar("mMediaTag D4", "d4.tga")
mAddStatusbar("mMediaTag D5", "d5.tga")
mAddStatusbar("mMediaTag D6", "d6.tga")
mAddStatusbar("mMediaTag D7", "d7.tga")
mAddStatusbar("mMediaTag D8", "d8.tga")
mAddStatusbar("mMediaTag D9", "d9.tga")
mAddStatusbar("mMediaTag D10", "d10.tga")
mAddStatusbar("mMediaTag D11", "d11.tga")
mAddStatusbar("mMediaTag D12", "d12.tga")
mAddStatusbar("mMediaTag D13", "d13.tga")
mAddStatusbar("mMediaTag D14", "d14.tga")
mAddStatusbar("mMediaTag D15", "d15.tga")

mAddStatusbar("mMediaTag E1", "e1.tga")
mAddStatusbar("mMediaTag E2", "e2.tga")
mAddStatusbar("mMediaTag E3", "e3.tga")
mAddStatusbar("mMediaTag E4", "e4.tga")
mAddStatusbar("mMediaTag E5", "e5.tga")
mAddStatusbar("mMediaTag E6", "e6.tga")
mAddStatusbar("mMediaTag E7", "e7.tga")
mAddStatusbar("mMediaTag E8", "e8.tga")
mAddStatusbar("mMediaTag E9", "e9.tga")
mAddStatusbar("mMediaTag E10", "e10.tga")
mAddStatusbar("mMediaTag E11", "e11.tga")
mAddStatusbar("mMediaTag E12", "e12.tga")

mAddStatusbar("mMediaTag F1", "f1.tga")
mAddStatusbar("mMediaTag F2", "f2.tga")
mAddStatusbar("mMediaTag F3", "f3.tga")
mAddStatusbar("mMediaTag F4", "f4.tga")
mAddStatusbar("mMediaTag F5", "f5.tga")
mAddStatusbar("mMediaTag F6", "f6.tga")
mAddStatusbar("mMediaTag F7", "f7.tga")
mAddStatusbar("mMediaTag F8", "f8.tga")
mAddStatusbar("mMediaTag F9", "f9.tga")
mAddStatusbar("mMediaTag F10", "f10.tga")
mAddStatusbar("mMediaTag F11", "f11.tga")
mAddStatusbar("mMediaTag F12", "f12.tga")
mAddStatusbar("mMediaTag F13", "f13.tga")
mAddStatusbar("mMediaTag F14", "f14.tga")
mAddStatusbar("mMediaTag F15", "f15.tga")

mAddStatusbar("mMediaTag G1", "g1.tga")
mAddStatusbar("mMediaTag G2", "g2.tga")
mAddStatusbar("mMediaTag G3", "g3.tga")
mAddStatusbar("mMediaTag G4", "g4.tga")
mAddStatusbar("mMediaTag G5", "g5.tga")
mAddStatusbar("mMediaTag G6", "g6.tga")
mAddStatusbar("mMediaTag G7", "g7.tga")
mAddStatusbar("mMediaTag G8", "g8.tga")
mAddStatusbar("mMediaTag G9", "g9.tga")
mAddStatusbar("mMediaTag G10", "g10.tga")
mAddStatusbar("mMediaTag G11", "g11.tga")
mAddStatusbar("mMediaTag G12", "g12.tga")
mAddStatusbar("mMediaTag G13", "g13.tga")
mAddStatusbar("mMediaTag G14", "g14.tga")
mAddStatusbar("mMediaTag G15", "g15.tga")

mAddStatusbar("mMediaTag H1", "h1.tga")
mAddStatusbar("mMediaTag H2", "h2.tga")
mAddStatusbar("mMediaTag H3", "h3.tga")
mAddStatusbar("mMediaTag H4", "h4.tga")
mAddStatusbar("mMediaTag H5", "h5.tga")
mAddStatusbar("mMediaTag H6", "h6.tga")
mAddStatusbar("mMediaTag H7", "h7.tga")
mAddStatusbar("mMediaTag H8", "h8.tga")
mAddStatusbar("mMediaTag H9", "h9.tga")
mAddStatusbar("mMediaTag H10", "h10.tga")
mAddStatusbar("mMediaTag H11", "h11.tga")
mAddStatusbar("mMediaTag H12", "h12.tga")
mAddStatusbar("mMediaTag H13", "h13.tga")
mAddStatusbar("mMediaTag H14", "h14.tga")
mAddStatusbar("mMediaTag H15", "h15.tga")
mAddStatusbar("mMediaTag H16", "h16.tga")
mAddStatusbar("mMediaTag H17", "h17.tga")
mAddStatusbar("mMediaTag H18", "h18.tga")

mAddStatusbar("mMediaTag I1", "i1.tga")
mAddStatusbar("mMediaTag I2", "i2.tga")
mAddStatusbar("mMediaTag I3", "i3.tga")
mAddStatusbar("mMediaTag I4", "i4.tga")
mAddStatusbar("mMediaTag I5", "i5.tga")
mAddStatusbar("mMediaTag I6", "i6.tga")
mAddStatusbar("mMediaTag I7", "i7.tga")
mAddStatusbar("mMediaTag I8", "i8.tga")
mAddStatusbar("mMediaTag I9", "i9.tga")
mAddStatusbar("mMediaTag I10", "i10.tga")

mAddStatusbar("mMediaTag J1", "j1.tga")
mAddStatusbar("mMediaTag J2", "j2.tga")
mAddStatusbar("mMediaTag J3", "j3.tga")
mAddStatusbar("mMediaTag J4", "j4.tga")
mAddStatusbar("mMediaTag J5", "j5.tga")
mAddStatusbar("mMediaTag J6", "j6.tga")
mAddStatusbar("mMediaTag J7", "j7.tga")
mAddStatusbar("mMediaTag J8", "j8.tga")
mAddStatusbar("mMediaTag J9", "j9.tga")
mAddStatusbar("mMediaTag J10", "j10.tga")

mAddStatusbar("mMediaTag K1", "k1.tga")
mAddStatusbar("mMediaTag K2", "k2.tga")
mAddStatusbar("mMediaTag K3", "k3.tga")
mAddStatusbar("mMediaTag K4", "k4.tga")
mAddStatusbar("mMediaTag K5", "k5.tga")
mAddStatusbar("mMediaTag K6", "k6.tga")
mAddStatusbar("mMediaTag K7", "k7.tga")
mAddStatusbar("mMediaTag K8", "k8.tga")
mAddStatusbar("mMediaTag K9", "k9.tga")
mAddStatusbar("mMediaTag K10", "k10.tga")
mAddStatusbar("mMediaTag K11", "k11.tga")
mAddStatusbar("mMediaTag K12", "k12.tga")
mAddStatusbar("mMediaTag K13", "k13.tga")
mAddStatusbar("mMediaTag K14", "k14.tga")
mAddStatusbar("mMediaTag K15", "k15.tga")
mAddStatusbar("mMediaTag K16", "k16.tga")
mAddStatusbar("mMediaTag K17", "k17.tga")
mAddStatusbar("mMediaTag K18", "k18.tga")
mAddStatusbar("mMediaTag K19", "k19.tga")
mAddStatusbar("mMediaTag K20", "k20.tga")
mAddStatusbar("mMediaTag K21", "k21.tga")
mAddStatusbar("mMediaTag K22", "k22.tga")
mAddStatusbar("mMediaTag K23", "k23.tga")
mAddStatusbar("mMediaTag K24", "k24.tga")
mAddStatusbar("mMediaTag K25", "k25.tga")
mAddStatusbar("mMediaTag K26", "k26.tga")
mAddStatusbar("mMediaTag K27", "k27.tga")
mAddStatusbar("mMediaTag K28", "k28.tga")
mAddStatusbar("mMediaTag K29", "k29.tga")
mAddStatusbar("mMediaTag K30", "k30.tga")
mAddStatusbar("mMediaTag K31", "k31.tga")
mAddStatusbar("mMediaTag K32", "k32.tga")
mAddStatusbar("mMediaTag K33", "k33.tga")
mAddStatusbar("mMediaTag K34", "k34.tga")

mAddStatusbar("mMediaTag L1", "l1.tga")
mAddStatusbar("mMediaTag L2", "l2.tga")
mAddStatusbar("mMediaTag L3", "l3.tga")
mAddStatusbar("mMediaTag L4", "l4.tga")
mAddStatusbar("mMediaTag L5", "l5.tga")
mAddStatusbar("mMediaTag L6", "l6.tga")
mAddStatusbar("mMediaTag L7", "l7.tga")
mAddStatusbar("mMediaTag L8", "l8.tga")
mAddStatusbar("mMediaTag L9", "l9.tga")
mAddStatusbar("mMediaTag L10", "l10.tga")
mAddStatusbar("mMediaTag L11", "l11.tga")
mAddStatusbar("mMediaTag L12", "l12.tga")
mAddStatusbar("mMediaTag L13", "l13.tga")
mAddStatusbar("mMediaTag L14", "l14.tga")
mAddStatusbar("mMediaTag L15", "l15.tga")

mAddStatusbar("mMediaTag M1", "m1.tga")
mAddStatusbar("mMediaTag M2", "m2.tga")
mAddStatusbar("mMediaTag M3", "m3.tga")
mAddStatusbar("mMediaTag M4", "m4.tga")
mAddStatusbar("mMediaTag M5", "m5.tga")
mAddStatusbar("mMediaTag M6", "m6.tga")
mAddStatusbar("mMediaTag M7", "m7.tga")
mAddStatusbar("mMediaTag M8", "m8.tga")
mAddStatusbar("mMediaTag M9", "m9.tga")
mAddStatusbar("mMediaTag M10", "m10.tga")
mAddStatusbar("mMediaTag M11", "m11.tga")
mAddStatusbar("mMediaTag M12", "m12.tga")
mAddStatusbar("mMediaTag M13", "m13.tga")
mAddStatusbar("mMediaTag M14", "m14.tga")
mAddStatusbar("mMediaTag M15", "m15.tga")

mAddStatusbar("mMediaTag N1", "n1.tga")
mAddStatusbar("mMediaTag N2", "n2.tga")
mAddStatusbar("mMediaTag N3", "n3.tga")
mAddStatusbar("mMediaTag N4", "n4.tga")
mAddStatusbar("mMediaTag N5", "n5.tga")
mAddStatusbar("mMediaTag N6", "n6.tga")
mAddStatusbar("mMediaTag N7", "n7.tga")
mAddStatusbar("mMediaTag N8", "n8.tga")
mAddStatusbar("mMediaTag N9", "n9.tga")
mAddStatusbar("mMediaTag N10", "n10.tga")
mAddStatusbar("mMediaTag N11", "n11.tga")
mAddStatusbar("mMediaTag N12", "n12.tga")
mAddStatusbar("mMediaTag N13", "n13.tga")
mAddStatusbar("mMediaTag N14", "n14.tga")
mAddStatusbar("mMediaTag N15", "n15.tga")
mAddStatusbar("mMediaTag N16", "n16.tga")
mAddStatusbar("mMediaTag N17", "n17.tga")
mAddStatusbar("mMediaTag N18", "n18.tga")
mAddStatusbar("mMediaTag N19", "n19.tga")
mAddStatusbar("mMediaTag N20", "n20.tga")
mAddStatusbar("mMediaTag N21", "n21.tga")
mAddStatusbar("mMediaTag N22", "n22.tga")
mAddStatusbar("mMediaTag N23", "n23.tga")
mAddStatusbar("mMediaTag N24", "n24.tga")
mAddStatusbar("mMediaTag N25", "n25.tga")
mAddStatusbar("mMediaTag N26", "n26.tga")
mAddStatusbar("mMediaTag N27", "n27.tga")
mAddStatusbar("mMediaTag N28", "n28.tga")
mAddStatusbar("mMediaTag N29", "n29.tga")
mAddStatusbar("mMediaTag N30", "n30.tga")
mAddStatusbar("mMediaTag N31", "n31.tga")
mAddStatusbar("mMediaTag N32", "n32.tga")
mAddStatusbar("mMediaTag N33", "n33.tga")
mAddStatusbar("mMediaTag N34", "n34.tga")
mAddStatusbar("mMediaTag N35", "n35.tga")
mAddStatusbar("mMediaTag N36", "n36.tga")
mAddStatusbar("mMediaTag N37", "n37.tga")
mAddStatusbar("mMediaTag N38", "n38.tga")
mAddStatusbar("mMediaTag N38v2", "n38v2.tga")
mAddStatusbar("mMediaTag N38v3", "n38v3.tga")
mAddStatusbar("mMediaTag N39", "n39.tga")

mAddStatusbar("mMediaTag O1", "o1.tga")
mAddStatusbar("mMediaTag O2", "o2.tga")
mAddStatusbar("mMediaTag O3", "o3.tga")
mAddStatusbar("mMediaTag O4", "o4.tga")
mAddStatusbar("mMediaTag O5", "o5.tga")
mAddStatusbar("mMediaTag O6", "o6.tga")
mAddStatusbar("mMediaTag O7", "o7.tga")
mAddStatusbar("mMediaTag O8", "o8.tga")
mAddStatusbar("mMediaTag O9", "o9.tga")
mAddStatusbar("mMediaTag O10", "o10.tga")
mAddStatusbar("mMediaTag O11", "o11.tga")
mAddStatusbar("mMediaTag O12", "o12.tga")
mAddStatusbar("mMediaTag O13", "o13.tga")
mAddStatusbar("mMediaTag O14", "o14.tga")
mAddStatusbar("mMediaTag O15", "o15.tga")

mAddStatusbar("mMediaTag P1", "p1.tga")
mAddStatusbar("mMediaTag P2", "p2.tga")
mAddStatusbar("mMediaTag P3", "p3.tga")
mAddStatusbar("mMediaTag P4", "p4.tga")
mAddStatusbar("mMediaTag P5", "p5.tga")
mAddStatusbar("mMediaTag P6", "p6.tga")
mAddStatusbar("mMediaTag P7", "p7.tga")
mAddStatusbar("mMediaTag P8", "p8.tga")
mAddStatusbar("mMediaTag P9", "p9.tga")
mAddStatusbar("mMediaTag P10", "p10.tga")
mAddStatusbar("mMediaTag P11", "p11.tga")
mAddStatusbar("mMediaTag P12", "p12.tga")
mAddStatusbar("mMediaTag P13", "p13.tga")
mAddStatusbar("mMediaTag P14", "p14.tga")
mAddStatusbar("mMediaTag P15", "p15.tga")
mAddStatusbar("mMediaTag P16", "p16.tga")
mAddStatusbar("mMediaTag P17", "p17.tga")
mAddStatusbar("mMediaTag P18", "p18.tga")

mAddStatusbar("mMediaTag Q1", "q1.tga")
mAddStatusbar("mMediaTag Q2", "q2.tga")
mAddStatusbar("mMediaTag Q3", "q3.tga")
mAddStatusbar("mMediaTag Q4", "q4.tga")

mAddStatusbar("mMediaTag R1", "r1.tga")
mAddStatusbar("mMediaTag R2", "r2.tga")
mAddStatusbar("mMediaTag R3", "r3.tga")
mAddStatusbar("mMediaTag R4", "r4.tga")
mAddStatusbar("mMediaTag R5", "r5.tga")
mAddStatusbar("mMediaTag R6", "r6.tga")
mAddStatusbar("mMediaTag R7", "r7.tga")
mAddStatusbar("mMediaTag R8", "r8.tga")
mAddStatusbar("mMediaTag R9", "r9.tga")
mAddStatusbar("mMediaTag R10", "r10.tga")
mAddStatusbar("mMediaTag R11", "r11.tga")
mAddStatusbar("mMediaTag R12", "r12.tga")
mAddStatusbar("mMediaTag R13", "r13.tga")
mAddStatusbar("mMediaTag R14", "r14.tga")
mAddStatusbar("mMediaTag R15", "r15.tga")
mAddStatusbar("mMediaTag R16", "r16.tga")
mAddStatusbar("mMediaTag R17", "r17.tga")
mAddStatusbar("mMediaTag R18", "r18.tga")
mAddStatusbar("mMediaTag R19", "r19.tga")
mAddStatusbar("mMediaTag R20", "r20.tga")
mAddStatusbar("mMediaTag R21", "r21.tga")
mAddStatusbar("mMediaTag R22", "r22.tga")
mAddStatusbar("mMediaTag R23", "r23.tga")
mAddStatusbar("mMediaTag R24", "r24.tga")
mAddStatusbar("mMediaTag R25", "r25.tga")
mAddStatusbar("mMediaTag R26", "r26.tga")
mAddStatusbar("mMediaTag R27", "r27.tga")
mAddStatusbar("mMediaTag R28", "r28.tga")

mAddStatusbar("mMediaTag Caith UI 1", "Wglass.tga")
mAddStatusbar("mMediaTag Caith UI 2", "Wisps.tga")

mAddStatusbar("MaUIv3", "MaUIv3.tga")

-- Backgrounds
mAddBackground("mMediaTag BG1", "bg1.tga")
mAddBackground("mMediaTag BG2", "bg2.tga")
mAddBackground("mMediaTag BG3", "bg3.tga")
mAddBackground("mMediaTag BG4", "bg4.tga")
mAddBackground("mMediaTag BG5", "bg5.tga")
mAddBackground("mMediaTag BG6", "bg6.tga")
mAddBackground("mMediaTag BG7", "bg7.tga")
mAddBackground("mMediaTag BG8", "bg8.tga")
mAddBackground("mMediaTag BG9", "bg9.tga")
mAddBackground("mMediaTag BG10", "bg10.tga")

mAddBackground("mMediaTag Chat1", "chat1.tga")
mAddBackground("mMediaTag Chat2", "chat2.tga")
mAddBackground("mMediaTag Chat3", "chat3.tga")
mAddBackground("mMediaTag Chat4", "chat4.tga")
mAddBackground("mMediaTag Chat5", "chat5.tga")
mAddBackground("mMediaTag Chat6", "chat6.tga")

mAddBorder("mMediaTag Border1", "mborder1.tga")
mAddBorder("mMediaTag yborder", "yborder.tga")
mAddBorder("mMediaTag yborder2", "yborder2.tga")
mAddBorder("mMediaTag YuluBorderSwitch", "YuluBorderSwitch.tga")
mAddBorder("mMediaTag YuluBorderXI", "YuluBorderXI.tga")

mAddFont("Inter-Black", "Inter-Black.ttf")
mAddFont("Inter-Bold", "Inter-Bold.ttf")
mAddFont("Inter-ExtraBold", "Inter-ExtraBold.ttf")
mAddFont("Inter-Regular", "Inter-Regular.ttf")
mAddFont("Inter-SemiBold", "Inter-SemiBold.ttf")
mAddFont("Lemon-Regular", "Lemon-Regular.ttf")
mAddFont("Oregano-Regular", "Oregano-Regular.ttf")
mAddFont("Oswald-Bold", "Oswald-Bold.ttf")
mAddFont("Oswald-Light", "Oswald-Light.ttf")
mAddFont("Oswald-Regular", "Oswald-Regular.ttf")
mAddFont("Ubuntu-Bold", "Ubuntu-Bold.ttf")
mAddFont("Ubuntu-Light", "Ubuntu-Light.ttf")
mAddFont("Ubuntu-Medium", "Ubuntu-Medium.ttf")
mAddFont("Ubuntu-Regular", "Ubuntu-Regular.ttf")
mAddFont("NotoSans-Bold", "NotoSans-Bold.ttf")
mAddFont("NotoSans-ExtraBold", "NotoSans-ExtraBold.ttf")
mAddFont("NotoSans-Medium", "NotoSans-Medium.ttf")
mAddFont("NotoSans-Regular", "NotoSans-Regular.ttf")
mAddFont("NotoSans-SemiBold", "NotoSans-SemiBold.ttf")
