CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on Need help with toggling a texture based on range.
    Quote from Seerah
    He didn't say anything about Ace3 anywhere above. So your answer, Bitwise, is no. :p


    This sure looks like Ace3 code to me, but correct me if i'm wrong.

    [code]On wowwiki I read about [code]obj:RegisterEvent('EVENT', 'Something')[/code]after which I am supposed to do
    [code]function addon:Something(event, ...) My uber-awesome-sauce end[/code][/CODE]
    Posted in: Lua Code Discussion
  • 0

    posted a message on LibTourist-3.0
    Why don't you? You obviously know what the problem is.
    Posted in: Libraries
  • 0

    posted a message on Need help with toggling a texture based on range.
    Are you actually using the Ace3 libraries? It looks to me like you're only using WoW API.
    Posted in: Lua Code Discussion
  • 0

    posted a message on XML Problem
    Quote from OrionShock
    it should give you an error if the template dosn't exist.

    if you don't SetPoint("CENTER", UIParent, "CENTER") or the like on it somewhere or set the position in the xml, then it prolly dosn't know where to :Show() it


    Uhh, the XML template sets it so it should show fine, right? Because it doesn't. =(
    Posted in: Lua Code Discussion
  • 0

    posted a message on XML Problem
    Quote from OrionShock
    can you show us the CreateFrame() call? or paste most if not all the addon code @ http://paste.wowace.com/ Context is usually everything :)


    I loaded the XML with a quick .toc, but I always write my addons in-game for ease of testing. I use the WoWLua addon when i'm coding, this was what I used what I was testing.

    testFrame = CreateFrame("FRAME", nil, UIParent, "BFTemplate")
    testFrame:Show()
    Posted in: Lua Code Discussion
  • 0

    posted a message on XML Problem
    Quote from OrionShock
    eh, well if you load your XML file after you lua one then it's not going to work too well.


    The LUA is being executed long after the XML is loaded which is why this is puzzling me. Any ideas?


    Also in your scripts section, you can remove the <OnMouseWheel> part, it's rather redundant.
    As for using the $parentText_*() idea, that's not going to work. that's going to call litterally _G["$parentText_OnEvent"](self, event, ...) as if the $parent is the name of the function.


    Both fixed, thanks.
    Posted in: Lua Code Discussion
  • 0

    posted a message on XML Problem
    Posting under LUA discussion because there isn't an XML section. Please move it if it would fit better somewhere else.


    Basically, I copy pasted the XML from QuestLog.xml and removed unnecessary XML. I just want a template to build off of with LUA code, it should look like a blizzard frame that is completely blank. However, whenever I try to create a frame with the template in game it says "Couldn't find inherited node "BFTemplate""

    So whats wrong with the following XML? Thanks in advance!

    <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
    ..\FrameXML\UI.xsd">
    	<Frame name="BFTemplate" virtual="true" toplevel="true" enableMouse="true" movable="true" parent="UIParent" hidden="true">
    		<Size>
    			<AbsDimension x="384" y="512"/>
    		</Size>
    		<Anchors>
     			<Anchor point="TOPLEFT">
     				<Offset>
     					<AbsDimension x="0" y="-104"/>
     				</Offset>
     			</Anchor>
     		</Anchors>
    		<HitRectInsets>
    			<AbsInset left="0" right="35" top="0" bottom="75"/>
    		</HitRectInsets>
    		<Layers>
    			<Layer level="BACKGROUND">
    				<FontString name="$parentTextDummyText" inherits="GameFontNormal" hidden="true">
    					<Size>
    						<AbsDimension x="0" y="13"/>
    					</Size>
    				</FontString>
    				<Texture file="Interface\QuestFrame\UI-QuestLog-BookIcon">
    					<Size>
    						<AbsDimension x="64" y="64"/>
    					</Size>
    					<Anchors>
    						<Anchor point="TOPLEFT">
    							<Offset>
    								<AbsDimension x="4" y="-4"/>
    							</Offset>
    						</Anchor>
    					</Anchors>
    				</Texture>		
    			</Layer>
    			<Layer level="ARTWORK">
    				<Texture file="Interface\QuestFrame\UI-QuestLog-TopLeft">
    					<Size>
    						<AbsDimension x="256" y="256"/>
    					</Size>
    					<Anchors>
    						<Anchor point="TOPLEFT"/>
    					</Anchors>
    				</Texture>		
    				<Texture file="Interface\QuestFrame\UI-QuestLog-TopRight">
    					<Size>
    						<AbsDimension x="128" y="256"/>
    					</Size>
    					<Anchors>
    						<Anchor point="TOPRIGHT"/>
    					</Anchors>
    				</Texture>
    				<Texture file="Interface\QuestFrame\UI-QuestLog-BotLeft">
    					<Size>
    						<AbsDimension x="256" y="256"/>
    					</Size>
    					<Anchors>
    						<Anchor point="BOTTOMLEFT"/>
    					</Anchors>
    				</Texture>
    				<Texture file="Interface\QuestFrame\UI-QuestLog-BotRight">
    					<Size>
    						<AbsDimension x="128" y="256"/>
    					</Size>
    					<Anchors>
    						<Anchor point="BOTTOMRIGHT"/>
    					</Anchors>
    				</Texture>
    				<FontString name="$parentTextTitleText" inherits="GameFontHighlight" text="QUEST_LOG">
    					<Size>
    						<AbsDimension x="300" y="14"/>
    					</Size>
    					<Anchors>
    						<Anchor point="TOP" relativeTo="$parentText" relativePoint="TOP">
    							<Offset>
    								<AbsDimension x="0" y="-15"/>
    							</Offset>
    						</Anchor>
    					</Anchors>
    				</FontString>
    			</Layer>
    		</Layers>
    		<Frames>
    			<Button name="$parentTextCloseButton" inherits="UIPanelCloseButton">
    				<Anchors>
    					<Anchor point="TOPRIGHT" relativeTo="$parentTextFrame" relativePoint="TOPRIGHT">
    						<Offset>
    							<AbsDimension x="-30" y="-8"/>
    						</Offset>
    					</Anchor>
    				</Anchors>
    			</Button>
    			<Button name="$parentTextExitButton" inherits="UIPanelButtonTemplate" text="EXIT">
    				<Size>
    					<AbsDimension x="77" y="21"/>
    				</Size>
    				<Anchors>
    					<Anchor point="BOTTOMRIGHT" relativeTo="$parentText" relativePoint="BOTTOMRIGHT">
    						<Offset>
    							<AbsDimension x="-43" y="54"/>
    						</Offset>
    					</Anchor>
    				</Anchors>
    				<Scripts>
    					<OnClick>
    						HideUIPanel(self);
    					</OnClick>
    				</Scripts>
    			</Button>
    		</Frames>
    		<Scripts>
    			<OnEvent>
    				BFTemplate_OnEvent(self, event, ...);
    			</OnEvent>
    			<OnLoad>
    				BFTemplate_OnLoad(self);
    			</OnLoad>
    			<OnShow>
    				BFTemplate_OnShow();
    			</OnShow>
    			<OnHide>
    				BFTemplate_OnHide();
    			</OnHide>
    			<OnUpdate>
    				BFTemplate_OnUpdate(self, elapsed);
    			</OnUpdate>
    		</Scripts>
    	</Frame>
    </Ui>
    Posted in: Lua Code Discussion
  • 0

    posted a message on Very Basic Tracker
    Quote from Lanacan
    Is there an update to this code?

    I was trying in but if you reload the UI it disapears until you exit the game and come back int for me now.


    Drop in it in new addon files so it executes every reload.
    Posted in: Addon Ideas
  • 0

    posted a message on XML template in LUA?
    Is it possible to make a template with LUA and no XML?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Cartographer basic instructions/FAQ
    Quote from Squeeg
    Pretty sure Cart2 and Cart3 aren't under development at the moment. And Cart3 is only being held together by fan patches.

    I'd suggest Trying out Mapster (for basic map stuff), along with Gathermate (for mining,herbs, etc), HandyNotes(for map notes), Cromulent (for zone information), and Instancemaps (for dungeon maps).

    I know it seems like a lot, but most, if not all of them, are actively being kept up to date.

    edit: btw this may have been better to post in the maps addons section or addon HELP! xD *shrug*


    And TomTom for waypoint functionality.
    Posted in: AddOn HELP!
  • 0

    posted a message on Achievement alert frame name?
    I figured it out. Its actually shown from a LUA function--

    AchievementAlertFrame_ShowAlert(achievementId)

    Found in FrameXML\AlertFrames.lua
    Posted in: Lua Code Discussion
  • 0

    posted a message on Achievement alert frame name?
    Whats the name of the achievement alert frame? (Pops up when you gain an achievement.)

    I took a look at FrameXML and saw a section for it but it was commented out.

    Thanks in advance!
    Posted in: Lua Code Discussion
  • 0

    posted a message on [In development] GuildPanel: A better guild management window
    I'd like to suggest a guild statistics window that can be toggle with a refresh button. Have it get the stats the first time you open it and then get stats whenever you press Refresh. Suggested stats:

    • Average guild level
    • Total number of players not including alts (use GuildInfo() to find out)
    • Number of each class in guild. (Eg: 67 Warlocks, 32 Warriors, 0 Mages, 0 Rogues, ect)


    I'd also like to suggest some kind of appearance selector. I know that I wouldn't use your add-on with how it currently looks because it completely clashes (with my interface) and that would bug me.
    Posted in: Addon Ideas
  • 0

    posted a message on Frame Entirely in LUA
    Quote from Starinnia
    local f = CreateFrame("BUTTON", nil, UIParent, "UIPanelButtonTemplate")
    f:SetWidth(100)
    f:SetHeight(22)
    f:SetText("Click!")
    f:SetPoint("CENTER", UIParent, "CENTER")
    f:SetScript("OnClick", function() ChatFrame1:AddMessage("Hello World") end)
    f:SetAlpha(1)
    f:Show()
    
    Completely untested outside of the addon I ripped this from, but it should work. Makes an unmovable button in the center of your screen that prints "Hello World" to ChatFrame1.

    If you wanted it inside a movable frame you'd make it something like:
    local f = CreateFrame("FRAME", nil, UIParent)
    f:SetWidth(110)
    f:SetHeight(30)
    f:SetPoint("CENTER", UIParent, "CENTER")
    f:SetBackdrop({bgFile = [[Interface\Buttons\WHITE8X8]],})
    f.btn = CreateFrame("BUTTON", nil, f, "UIPanelButtonTemplate")
    f.btn:SetWidth(100)
    f.btn:SetHeight(22)
    f.btn:SetText("Click!")
    f.btn:SetPoint("CENTER", f, "CENTER")
    f.btn:SetScript("OnClick", function() ChatFrame1:AddMessage("Hello World") end)
    f.btn:SetAlpha(1)
    f.btn:Show()
    f:Show()
    


    Works great, thank you.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Frame Entirely in LUA
    Quote from Seerah
    Did you look at the link Phanx gave you? ;) Here's another place for reference: http://wowprogramming.com/docs/widgets/Button


    Of course I did, but neither says how to create a new instance of a button with LUA. I'm going to test Starinnia's code in a few minutes, I didn't realize CreateFrame makes other widgets as well. If it works then all my problems are solved.
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.