|
11-21-14, 12:34 PM | #1 |
Reputation Bar Issue
Hi everyone!
I have some issues with FACTION_BAR_COLORS. Why i dont know Lua Code:
Lua Code:
Last edited by Aftermathhqt : 11-21-14 at 12:37 PM. |
|
11-21-14, 01:01 PM | #2 |
Try this:
Code:
-- comment out or remove line 56 ReputationBar:SetValue(Value) local c = FACTION_BAR_COLORS[ID] ReputationBar:SetStatusBarColor(c.r * 255, c.g * 255, c.b * 255) ReputationBarFont:SetText(""..Min.." / "..Max.." - "..Name.."") |
|
11-21-14, 01:18 PM | #3 | |
Lua Code:
Lua Code:
Last edited by Aftermathhqt : 11-21-14 at 01:31 PM. |
||
11-21-14, 02:22 PM | #4 |
line 61 won't work because you are trying to concat strings and numbers incorrectly. You have too many quotes, and also putting both Min and Max in quotes will literally print the words Min and Max, not their values.
Code:
ReputationBarFont:SetText(Min .." / " ..Max .." - " ..Name) Code:
ReputationBarFont:SetFormattedText("%d / %d - %s", Min, Max, Name) Last edited by myrroddin : 11-21-14 at 02:25 PM. Reason: switch to SetFormattedText instead |
|
11-21-14, 02:34 PM | #5 | |
This happend :S Lua Code:
Last edited by Aftermathhqt : 11-21-14 at 02:41 PM. |
||
11-21-14, 02:47 PM | #6 | |
You'll need to check that the player is actually watching a faction (i.e. GetWatchedFactionInfo() returns something other than nil) before you try to update the reputation bar. In fact you probably want to hide or disable the bar in some way if no faction is being watched. |
||
11-21-14, 02:47 PM | #7 |
Post your full Lua file, please, including any changes. Need to review what it looks like currently.
|
|
WoWInterface » Developer Discussions » Lua/XML Help » Reputation Bar Issue |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Hybrid Mode |
Switch to Threaded Mode |
|
|