Appears to not check for addon updates after the first launch. If you need to Can confirm that Recount and Skada no longer work. Details!. UIL, University Interscholastic League 1A - 2A - 3A - 4A - 5A - 6A · SPC · Southwest Preparatory Conference · TAIAO · Texas Assoc. of Independent Athletic. Extract one addon at a time so that you can keep track of them, and you ( example DBM-Brawlers) in your My AddOns folder into the AddOns.
There are several ways, any of the following can be used: Any macro conditional in the game can potentially also be used to control if a Button Forge bar is hidden or visible even during combat To setup a visibility macro click the Eye icon and type in the conditional and then press enter or escape to cancel Some basic examples are: Spec 1 is hidden, and Vehicle is hidden, no visibility macro is set would result in the following state driver: No visibility driver will be set for the bar, and it will always be visible Make the actions on a bar change depending on combat status, or while stealthed, or cat form, etc This actually can't be done, but the same effect can be achieved by taking visibility macros a step further.
You can place several bars into the same position on screen and setup visibility macros so that only 1 is displayed at any given time, I will describe the following example to illustrate how to do this. Lets say you are a druid and want a bar in the center of the screen to have actions for catform and bearform in the same position, and to swap between them depending on your current form: Create a bar and position it where you want, set it's scale and the number of buttons you want on it Optionally add a label to it to help identify it easier in the interface lets make this one the bear bar Drag the abilities you want on to it Set the visibility macro to [bonusbar: You might notice that it has docking to make this really easy Double click the scale button to default the bar to have the same scale as the first bar double click again will revert back to the standard scale of 1 Optionally label the bar for cat form this time Drag the abilities you want to it Set the visibility macro to [bonusbar: The buttons in each position on the two bars can have the same binding since only one bar will show up at a time if at all.
Also note that if you want to alternate between which bar you are working on during configuration mode you can use the Send to Front and Send to Back icons so you don't have to move bars out of the way.
Make tabs for bars so that it is easier to configure bars located in the same place on screen Set a label for the bar and position the top left corner of the bar be the same as another bars. We write the function we just called in the event handler. An if clause is a way to check conditions. The if clause begins with the if, followed by a condition. The event variable contains the name of the event that has been fired. If this condition is true, everything between the then and it's end statement will be executed.
We want to create a new entry in the History list, if it hasn't been done yet. This means the condition is true if the variable is false. We've set this varuable false in the initialization so this condition will be true the first time there is a money update.
Jahwo's AddOn Writing Guide | World of Warcraft Pro
We do this with the table. We give it three parameters. The first one is the table variable we want to insert a new element. The second one is the position where the element is inserted. We choose the first position.2018 Texas Class 3A State Track and Field Meet - 1600 Meter Run
The last one is the value that is inserted, we set it to 0 because there has not been any profit until now. Remember that now that we have changed the History variable, it will be saved with the new values if the player logs out! Now that we definitely have a individual entry for the current session in our history table, we can calculate the money difference and add it to our history. We save it in the local variable difference.
Now we add the difference to the current state in our history entry. The entry for the current session is the first one, as we added it above.
An element of a table can be accessed with the squared brackets with a index number in between. Finally we set the LastMoney variable to the current money, so we have the right value to compare to the next time. All our "money variables" contain values in copper, but we want it to be seperated in gold, silver and copper. For this we write an own function. With the abs function we calculate the absolute value of the commited parameter and store it in the variable absMoney.
Now we calculate the gold part of the money. We do this by dividing the coppers by and cutting of the decimals with the floor function. The silver is calculated pretty much the same, only that we divide by and have to subtract the gold part in copper!
Again we have to floor it. The copper part is the absMoney subtracted by the gold and silver parts in copper. Now we return all three calculated values. If you did not understand everything, no problem, it's maths after all Such things become clear if you begin developing your own code. We use this function now to set the text of our FontStrings We give our history entry to the function we've just written and save the returned values in some local variables.
We set the text of the gold FontString with it's member function SetText to the gold variable. It's exactly the same thing for silver and copper. We changed our text, so it probably is necessary to change the size of the frame. We don't know if we made profit or not. So we change the color of the FontStrings to green if it's a profit and to red if it's a deficit.
Jahwo's AddOn Writing Guide
There are only two really new things here. The condition after the elseif statement is only checked if the conditions of the previous ifs or elseifs were false.
Same thing with the else statment only that it doesn't take a condition. It will be executed if everything before failed. We create an event handler for the button in our. Let's write the function in the. First o all we calculate the all time value with a loop. We create a variable called alltime and set it to 0. The loop we use is a so called for loop. The way we use it, it goes through every single element of a table. The statement for initiates the loop. The key, whch is the index we used before to access the frst element, wll be saved in the k varuable.
The value is what the element contains for this key. It will be saved in v. Now we can add all the values to our alltime variable. After the loop is finished we have a variable that contains our all time profit or deficit.
We can use our previously written function to sperate this value to gold, silver and copper. We check if we have a profit or a deficit and display a corresponding message.
If the value is negative it means we have a deficit. This one is a standard in the game and represents, how could it be different, the default chat frame. It has a member function called AddMessagewhich allows us to add a message to the chat frame. The function takes a string as a paramter, and in this string we can use so called escape sequences. The one we use is to change the color of a particular part of the text. The values following the c are a color code in hexadecimal notation more information here.
The first two digits are the alpha value. The following six are for red, green and blue. The sequence " r" resets the color to default. If we have a profit else we display a green "profit". Finally we display the value. We use the previously created gold, silver and copper variables to show a nicely colored output. Yellow for the gold value, grey for silver and something brownish for copper.