Thread Tools Display Modes
03-04-10, 11:55 PM   #1
Cirdan
A Murloc Raider
Join Date: Feb 2010
Posts: 5
Multiple files?

I want to split my addon into multiple files, however WoW isn't loading any of my other files. I have closed and reopened WoW My toc looks like this:

Code:
## Interface: 30300
## Version: 1
## Title: rcHUD
## Author: Ryan

modules/DataBar.lua
modules/Map.lua
and my Map.lua looks like this

Code:
local map = CreateFrame("FRAME", nil, UIParent)

function initMap()
	GameTimeFrame:Hide()
	Minimap:SetMaskTexture("Interface\\AddOns\\rcHud\\mask")
	Minimap:SetPoint('TOPRIGHT', rcHud, 'BOTTOMRIGHT', 0, 0)
	
	MinimapBorder:Hide()
	MinimapBorderTop:Hide()
	
	MinimapZoomIn:Hide()
	MinimapZoomOut:Hide()
	
	MinimapZoneTextButton:SetFrameLevel(10)
	MinimapZoneTextButton:SetPoint('TOPLEFT', Minimap, 'TOPLEFT',0, -4)
	MinimapZoneText:SetFont(STANDARD_TEXT_FONT, 12)
	
	MiniMapWorldMapButton:Hide()
	MiniMapWorldMapButton:UnregisterAllEvents()
	
	MiniMapTrackingButton:SetAlpha(0)
	MiniMapTrackingBackground:Hide()
	MiniMapTracking:ClearAllPoints()
	MiniMapTracking:SetPoint("TOPLEFT", Minimap, "BOTTOMLEFT", -6, 6)

	MinimapNorthTag:SetAlpha(0)

	MiniMapLFGFrame:ClearAllPoints()
	MiniMapLFGFrame:SetPoint("LEFT",MiniMapTracking,"RIGHT",-12,0)
	MiniMapLFGFrameBorder:Hide()
	MiniMapLFGFrame:SetHighlightTexture''

	BattlegroundShine:Hide()
	MiniMapBattlefieldBorder:Hide()
	MiniMapBattlefieldFrame:ClearAllPoints()
	MiniMapBattlefieldFrame:SetPoint("LEFT", MiniMapTracking, "RIGHT", -12, 0)
	MiniMapBattlefieldBorder:SetTexture(nil)
	MiniMapBattlefieldFrame:SetScale(0.9)

	MiniMapMailIcon:SetTexture("Interface\\AddOns\\rcHud\\mail")
	MiniMapMailIcon:ClearAllPoints()
	MiniMapMailIcon:SetPoint("TOPRIGHT", MiniMapLFGFFrame, "BOTTOMRIGHT", 0, 0)
	MiniMapMailFrame:SetAllPoints(MiniMapMailIcon)
end

initMap()
For some reason it isn't loading this scripts. When I hover my mouse over to see the addons, it names my addon and says it's using 0kb. What am I missing? I've seen this done in other addons
  Reply With Quote
03-04-10, 11:57 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Are you getting any errors?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
03-05-10, 01:16 AM   #3
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Tried changing your forward slashes to back-slash?
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
  Reply With Quote
03-05-10, 02:12 AM   #4
Cirdan
A Murloc Raider
Join Date: Feb 2010
Posts: 5
Aha...the slashes did it. Thanks!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Multiple files?


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