Minimap Code
Hello all, i need some help with a bit of code from a minimap mod.
MinimapZoneTextButton:SetParent(Minimap) MinimapZoneTextButton:SetPoint("TOP", Minimap, 0, 14) MinimapZoneTextButton:SetFrameStrata("LOW") MinimapZoneText:SetFont('[FONTS\\ARIALN.ttf', 10, 'OUTLINE') MinimapZoneText:SetTextColor(.41, .80, .94) is what i have so far, i want the zone text to show up there and be that color, the only problem is when i zone it resets back to default blizzard green color, is there anyway to force it to keep that color? |
Code:
local function dummy() end Also, you seem to have a typo at the font part, you have a bracket [ that shouldn't be there. You might also want to add this before you set the new position of the button: Code:
MinimapZoneTextButton:ClearAllPoints() |
ty much, worked great :)
|
Quote:
|
Indeed. The function that sets the text colour now becomes an empty function.
|
Ah, now I see. Explains why I've seen so many "Dummy" functions in addons.
Ty for the insight. :) |
Or you could just do
Code:
MinimapZoneText.SetTextColor = function() end |
All times are GMT -6. The time now is 02:16 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI