Quote:
For the text of gold I use that, and works fine, (atleast for me). Quote:
Quote:
Edit: ok ok now understood! Quote:
Thanks!! Edit2: Quote:
Quote:
Thanks!! |
If you are going to do it this way you can delete the line:
"local text" as you are not using the variable named text in your script ;). |
Quote:
|
Quote:
The part of "OnLoad" be the some. Now in OnUpdate: Quote:
|
News!
I modify the codes that Phanx and Fizzlemizz provided to me (thanks), I explain, with one of the codes, the calendar works, but only when previously I loaded it manually the blizzard calendar with "/calendar", with the other code, when I click the panel, the frame of calendar only shows the time that I "mouse down" when I "mouse up", the frame disappear. I try to modify the codes viewing codes of brokers and other lua relationated codes of calendar. Finaly I got this: Quote:
Thanks for all slowly, I am learning a lot and... I like! |
Hi!.
I have new questions!. I want make a zonetext panels colored by pvp status. I find information for other lua codes and for now I have this (Dont work of course Xddddd). OnLoad Quote:
Quote:
1º:a class colored text based on pvp status, I extract that lua code, maybe can be usefull: Quote:
2º: When I enter in a zone with no subzone appear only the Main zone, for example, I enter on Dalaran, appear "Dalaran, Dalaran", When the correct be that only appear 1 dalaran: "Dalaran". Any help will be greatly appreciated Thanks!!! |
If you weant sub-zone information you will also need to register "ZONE_CHANGED".
The "ZONE_CHANGED_NEW_AREA" event fires whe you cross zone borders and "ZONE_CHANGED" when you cross unto a new sub-zone. You might also want to register "ZONE_CHANGED_INDOORS" which is trggered when you go from inside to out or outside to in. You can find the list of zone related functions at WowProgramming. |
Quote:
I added to "Onload" section. If you can help me with colored text.... ¿how can I do for do a text colored zonetext based on pvp status?. I have this base code maybe can help: Quote:
2º: When I enter in a zone with no subzone appear only the Main zone, for example, I enter on Dalaran, appear "Dalaran, Dalaran", When the correct be that only appear 1 dalaran: "Dalaran". A lot of Thanks Fizzlemizz. |
The code appears to be only part of a function for getting the appropriate colour. It also seems to asume the the alpha chanel will be set elsewhere but I'll change to set it here
Code:
local col Code:
local zone, subzone |
Is the following what you are looking for?
For the multi-zone feature you should note that ALL GetZone functions return the Zone if there is no Sub-Zone. The colors are a tad tricky but if those are the accepted values then that works. If you're more comfortable with one single object then replace the 'return string.format' with 'self.text:SetFormattedText'. Code:
local pvpType, _, faction = GetZonePVPInfo() |
I was just about to post something similar. I changed the returns because Akatosh is using this in a KgPanels script not as a standalone function. Also changed a bit because sub can be blank.
Code:
if sub == "" then |
Quote:
Quote:
Hi all a lot of thanks!!!!, I am very happy. It works... not exactly one of other... a mix of the two: Quote:
I put OnClick: Quote:
|
Quote:
That is why I mentioned SetFormattedText(). It does the SetText() as if it were string.format(). Thanks for correcting me Fizz, GetSubZoneText() does indeed return an empty string. I also have a tip on appearance, one could move the color escape '|r' and nestle it between the two zones; this would result in only the major zone being colored. Here's an example with a correction of my code with Fizz's fix. Stormwind, Dwarven District Code:
if sub == "" then |
Hello again!, again I have questions!.
I see the broker "RaidBuffs", and explore the code. Dont apperar a lot of dificult... I understand it a bit. The problem be that, I dont have idea, How can I adap It, to a panel for kgpanels, I think that be posible do it. See if you can make it work!!! The code: Quote:
The first part appear something like a register of class and their buff, the second part appear a count of the buffs, the third be the tooltip, And finally the number of current buffs and total buffs. He looks like that with the broker ¿¿You can make it work for kgpanels?? A lot of thanks!! PD: whats the diference betwen "{ or }" and "( or )" |
Please use [code] tags around code blocks, not [quote] tags -- the latter does not preserve indentation, and makes the code annoyingly difficult to read.
Quote:
Code:
-- Indexed table, array, or list: Code:
-- This: Code:
function DoSomething(thisVar, thatVar, otherVar) |
I see the broker "RaidBuffs", and explore the code.
Dont apperar a lot of dificult... I understand it a bit. The problem be that, I dont have idea, How can I adap It, to a panel for kgpanels, I think that be posible do it. See if you can make it work!!! The code: Code:
local ldb = LibStub("LibDataBroker-1.1") Better?. Thanks for the tips, Phanx, I dont want sound rude or border, I'm very grateful to the help that you have rendered me, I respect your point of view, but please be reciprocal with the mine, can be do it by two ways, Kgpanels or broker (or more, I think), is a matter of choice in my opinion. I wish I could do it myself, but I can not learn faster than my personal life allows me to learn, sorry if I'm asking too much, but I have no alternative, because I do not understand how to do this. |
Quote:
|
Quote:
Even for me, I do not know almost nothing, I understand that is something completely different. |
Hi Akatosh,
I see from the RaidBuffStatus page here at WowInterface that it is out of date and from the comments not working. I also see from the DL at Curse that the code, as Phanx pounted out, is most likely copyrighted and now uses 13 libraries and the core.lua file is nearly 5,000 lines long. I'm sorry to say that in this case while it may be technically possible to do, it would not be quick or easy (even if someone had a clue where to start) and most likely is not worth the time. Sorry. |
Quote:
http://www.wowinterface.com/forums/s...52&postcount=5 Works ok but, only for 1 time (1 mouseover), If I mouseover 2 times the text come one more time to original color. ¿You kwon how can I fix that?. Thanks!!. For the other side I countinue trying the part of the raidbuffs, I think that with time maybe can I do it, I refuse to give up so fast, there must be some way to do it. |
All times are GMT -6. The time now is 10:48 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI