• 0

    posted a message on Looking for help with Author Reward Points
    I am trying to buy something on amazon right now and don't have a credit card available but have money in my paypal account. I am looking for someone to transfer me 1600 author reward points and I will deposit 80$ (equivalent value) into a given paypal account. I would be very grateful for any help!!! Thanks a ton!

    -Tensai
    Posted in: Need Help?
  • 0

    posted a message on Binder (Fixing since recent patch)
    I figured it out, thanks everyone, the problem was simply what I was applying the UIParent:GetEffectiveScale() to, with some rethinking about the math and some testing I finally got it working right. It worked the way I had it before simply because the scale was being applied to the button differently because it was not a child of the UI.

    That's it for now, thanks for the help!

    -Tensai
    Posted in: Need Help?
  • 0

    posted a message on Binder (Fixing since recent patch)
    Okay, so I will go and set the parent as the UI. I guess then I just have to go back and redo my math for boundries of the mini-map button and its size. I was having an issue with it last time I tried that. It seemed to think the screen was a lot smaller than it actually was, and I was having a problem getting the mini map button to be in the same place as the cursor. I will post the code in a bit when I fix some things.

    Thanks for the help
    Posted in: Need Help?
  • 0

    posted a message on Binder (Fixing since recent patch)
    Great, thanks a ton. That worked perfectly and I was also able to fix the bug where it wouldn't remember the state of a checked button.

    I have noticed a couple times, and i'm sure others have, that the button is visible in cinematics and such. Where is the setting to hide it... it should be in the mother frame for the button correct? How do I get it to disappear along with the rest of the ui?

    Edit:

    It has occurred to me, after some testing, that the button also will not hide upon pushing alt-z. I think this is due to the fact that I have not set the parent to the UI, but when I do that, the button gets too small, and doesn't follow the mouse when dragging it.
    Posted in: Need Help?
  • 0

    posted a message on Binder (Fixing since recent patch)
    The code is rather long, but I can post a link to the download

    http://wow.curse.com/downloads/wow-addons/details/binder.aspx

    That function is fine. It even loads a matrix of variables. but for some reason will not load the character specific variables. Please look at the code and help me out. I have used bug sack and buggrabber and they both don't detect any errors dealing with this.

    Currently the addon will not even load the default location I have set for the mini map button. which should be a bit off to the left of center screen but it always ends up dead center on load.

    Thanks for everything

    As a side note, the button tends to be on top of things like cinematics and such...I have tried setting the frame strata to low and even removing it...but it isn't working.
    Posted in: Need Help?
  • 0

    posted a message on Binder (Fixing since recent patch)
    I designed this addon in August of 2010 and eventually got it working great before Cata came out. Since then I haven't had much computer access and something with the addon is now broken, just to clarify, it use to work just fine with no errors before the patch.

    The problem now, at least the major one, is that one of my saved variables for the location of the minimap button does not want to load. Here is the xml code:

    <Script file="Binder.lua"/>
      
    <Frame name="Binder_GeneralScripts" hidden="true">
    	<Scripts>     
    		<OnLoad> 
    			Binder_OnLoad(self)
    		</OnLoad>
    		<OnEvent>
    			Binder_OnEvent(self)
    		</OnEvent>
    	</Scripts>
    </Frame>  


    And here is the lua code: (http://pastey.net/145988)

    function Binder_OnLoad(self)
    	out_frame("Binder is Loaded. Use /binder to open window");
    	
     -- THE PROBLEM IS RIGHT HERE...THE ADDON_LOADED THING IS NOT HAPPENING
    	self:RegisterEvent( "ADDON_LOADED" );
    
    	SLASH_BINDER1 = "/Binder";
    	SlashCmdList["BINDER"] = function(msg)
    		Binder_SlashCommandHandler(msg);
    	end
    end
    
    function Binder_OnEvent()
    	if ( event == "ADDON_LOADED" ) then
    		Binder_MinimapButton_Reposition();
    	end		
    end
    


    It is probably a very simple change they made to the way addons work or load or something. I would greatly appreciate a link to somewhere that lists changes between patches.

    Thanks for any help

    -Tensai
    Posted in: Need Help?
  • 0

    posted a message on Problem using functions in other functions
    Okay, I think I can fix the text wrapping problem now, thank you all for your help

    My other issue is still the highlighting button... Is there a simple way to have a button stay highlighted after clicked and then unhighlighted when unclicked?

    Thanks again
    Posted in: Need Help?
  • 0

    posted a message on Problem using functions in other functions
    Is there a similar way to do it in xml coding?

    And also will this just make the text jump down a line so that it will still continue and not just be cut off wherever?

    Thanks
    Posted in: Need Help?
  • 0

    posted a message on Problem using functions in other functions
    I have disabled the function that was causing me problems and will fix it later. I currently am stuck on figuring out how to keep a button in a scroll bar lit after you click it but then unlight when you click a different one.

    And also, how do you get text to stay within a frame, set limits for where the text can be displayed.

    Thank you again for your help. I will post the errors for the other function (Trying to delete a profile) later when I am working on that part again
    Posted in: Need Help?
  • 0

    posted a message on Problem using functions in other functions
    I have come across this particular problem when using functions inside other functions and also when trying to used some of of my saved variables

    Here is an example
    function Delete_OnClick(arg1)
    	out_frame("You chose "..ProfileName_OnButton.." to be deleted")
    	Binder_Settings.Profiles[Currently_Selected_Profile_Num] = nil
    	out_frame("It should be nil")
    	if (Binder_Settings.Profiles[Currently_Selected_Profile_Num] == nil)then
    		out_frame("It really was made nil");
    		
    		[B]BinderScrollBar_Update();[/B]
    	end
    	out_frame("And it updated")
    	
    	
    	
    	if (Currently_Selected_Profile_Num < Binder_Settings.ProfilesCreated) then
    		for i = (Currently_Selected_Profile_Num), ([B]Binder_Settings.ProfilesCreated[/B]-1) do
    			out_frame(i)
    			Binder_Settings.Profiles[i] = Binder_Settings.Profiles[ i + 1 ]
    		end
    		[B]Binder_Settings.Profiles[Binder_Settings.ProfilesCreated][/B] = nil
    		[B]BinderScrollBar_Update()[/B]
    	end
    	
    	if (Currently_Selected_Profile_Num == Binder_Settings.ProfilesCreated)then
    		[B]Binder_Settings.Profiles[Binder_Settings.ProfilesCreated] = nil
    		BinderScrollBar_Update()[/B]
    	end
    	
    	Binder_Settings.ProfilesCreated = Binder_Settings.ProfilesCreated - 1
    	out_frame("Profile "..ProfileName_OnButton.." has been deleted")
    end
    


    And earlier in the code I have

    function BinderScrollBar_Update()
    
    	local line; 
    	local lineplusoffset;
    	FauxScrollFrame_Update(BinderScrollBar,Binder_Settings.ProfilesCreated,5,20);
    	for line = 1, 5 do 
    		lineplusoffset = line + FauxScrollFrame_GetOffset(BinderScrollBar);
    		if ( lineplusoffset < (Binder_Settings.ProfilesCreated + 1) ) then
    			getglobal("BinderEntry"..line):SetText(Binder_Settings.Profiles[lineplusoffset].Name);
    			getglobal("BinderEntry"..line):Show();
    		else
    			getglobal("BinderEntry"..line):Hide();
    		end
    	end
    end


    So I should be able to call BinderScrollBar_Update() from within Delete_OnClick()

    Right? It is driving me crazy why it won't work

    And I have had the same problem when trying to use a variable to represent a key in a table

    Most of the problems should be Bolded, at least where I think the problems are

    Thank you for any help
    Posted in: Need Help?
  • 0

    posted a message on Problem with Saved Variable
    I cannot thank you enough for that link, I finally got the saved variables working correctly, or at least I hope. Still have some testing to do, but at least it runs through the whole code now!

    Thank you
    Posted in: Need Help?
  • 0

    posted a message on Problem with Saved Variable
    Sorry everyone for the confusion. Here is what I am trying to accomplish.

    I want a saved variable that will be accessible to any characters on the Account. The saved variable then is just written as "SavedVariables:" not "SavedVariablesPerCharacter:" I don't need anything like layering as was mentioned earlier because I have set it up so that the user inputs the name and it is not based on a character or server or anything. Simply the current keybinds will be saved as the Name entered by user and if they want they can enter a description for it.

    The way I think it will work is this.

    I have a saved variable Profile, it is a table.
    When a user creates a profile a new slot is added to the table with information as follows:

    Name (User entered)
    Description (Optional, also user inputed)
    The_Binds (The complete list of all keybinds that are currently available to change in the in-game keybind menu)

    So to recal the name of a profile I would ideally type something like this in the code:

    Binder_Profiles.Profiles.1.Name = Entered Name


    and to get the keybind at index 20 in the keybind list and the action that corresponds with it I would enter

    Binder_Profiles.Profiles.1.The_Binds.20.TheAction


    then to get the keys that are bound to that action I would enter

    Binder_Profiles.Profiles.1.The_Binds.20.BindingOne
    Binder_Profiles.Profiles.1.The_Binds.20.BindingTwo


    So my main problem really is how to set up the tables to behave like that, I can draw it out on paper as pictures, but for some reason it just isn't clicking in my head or in the code.


    I had this bit of code that Adirelle gave me

    local NewProfileNum = Binder_Profiles.ProfilesCreated +1; 
    Binder_Profiles.Profiles[NewProfileNum] = { The_Binds = {} }


    But it wouldn't even get past that first line of code, until I retyped it, so that may have been an issue with copy and paste, but I cannot get the second line of code to work, the function just stops there.

    In my saved variables I have this

    Binder_Profiles = {
        ProfilesCreated=0;
        Profiles = {}
    }


    Also given to me by Adirelle. It makes sense to me that you only have to save the profile as a variable and anything under that is saved as a child of it. But for some reason it just isn't working.

    And yes I have

    ## SavedVariables: Binder_Profiles


    in my .toc file

    Do I need to initialize BindPos = {} somewhere?

    It doesn't seem that complex to have a table point to another table, maybe I don't fully understand it, and I apologize for using the term multi level tables, I guess it isn't what I thought it was.

    Again, thank you for any help, sorry I am so new at this
    Posted in: Need Help?
  • 0

    posted a message on Problem with Saved Variable
    If the Ace3 profiles that are listed and explained at Ace3 - Getting Started are the ones used in many addons like, Bartender, kgPanels, Quartz, Pitbull 4.0 and so on I would prefer not to use that one because I don't like the layout and the functionality. Maybe I am just a newb and don't know how to fiddle with thier settings the right way to make it how I want but I would much prefer to do all the programming for at least this my first addon. I have it mostly set up, I just need to get the correct layout of tables going in the saved variables. That is really the only main problem I am having right now. And I haven't been able to find a good tutorial or instructions on how to correctly use multi layered tables. Or Tables referencing each other.

    If there is anyone willing to help me learn more about Addons by helping me finish Binder I would be more than willing to have a co-author.

    Thank you all for all your help thus far and for anyone who helps me in the future.

    And now back to staring at my code...

    -Tensai
    Posted in: Need Help?
  • 0

    posted a message on Problem with Saved Variable
    Okay thanks, will try
    Posted in: Need Help?
  • 0

    posted a message on Problem with Saved Variable
    Someone please help, this is driving me crazy
    Posted in: Need Help?
  • To post a comment, please or register a new account.