Thanks for pointing out the duplicate, I'll have to look through the list again to make sure there aren't any others. Good call on not uploading translations of spell names, I will apply the code when I get some free time.
Thanks for your contribution to translating Mage Candy.
- Curse Premium
Member for 6 years, 7 months, and 17 days
Last active Tue, May, 23 2017 14:29:54
- 0 Followers
- 10 Total Posts
- 0 Thanks
Sep 19, 2014Posted in: Need Help?Quote from PhanxThat's not correct. For example, you can call GetSpellInfo(137983) at any time to get information about the spell "Electrically Charged Hidden Periodic Trigger Buff" which you will never have learned, because it isn't a player spell. If you're not getting any info back, you're not using the right spell ID.
Thanks for the tip. I was using the wrong ids like you said, derp. I'll get to work on that next.
Sep 18, 2014Posted in: Need Help?Quote from cremorDon't pass a spell name or spellbook index to GetSpellInfo(), those will only work for the current class and spec. Instead pass a spell id, that works always.
What I meant by hardcode was make my own globals containing the spell names manually without using GetSpellInfo(), but thanks for pointing that out. I did use GetSpellInfo() with spell ids but it still doesn't return that spells info unless you have that spell learned, which isn't reliable. Again, thanks for the tip.
Sep 17, 2014Yea I probably should have done that before I uploaded the globals. I wasn't sure if I should have combined phrases or not because the order of the words might not make sense in another language. This is my first time localizing an addon and only my second larger addon, so I'm still learning. I tend to overlook the simple stuff and plow through lol. I'll get to work on halving the strings by combining word strings with GetSpellInfo() returns. Thanks.Posted in: Need Help?
I now have my strings revised down to a minimum. I still need to hardcode the text for spells because they are also used for the options menu, which wont return strings if I call for a spell like frost bolt when you are in fire spec for example. Sill though, I knocked off 40 strings which is a nice bit of saved work for translators. Again, ty for pointing that out for me.
Sep 17, 2014I am looking for people willing to help translate Mage Candy so that it can be available to people who don't speak English. If anyone can help translate some of Mage Candy I'm sure people would appreciate it, along with myself. Any translations will be credited towards the translator(s). Thanks in advance.Posted in: Need Help?
Dec 28, 2013Thanks for the help. Guess ill just use what you posted. I have no experience with libs and all of the Lua I know is self taught, so I'm no guru at making things simple. Anyways I appreciate it.Posted in: Lua Code Discussion
Dec 27, 2013The code:Posted in: Lua Code Discussion
CreateFrame("Button", "MCMiniMapButton", Minimap) MCMiniMapButton:SetFrameStrata("MEDIUM") CreateFrame("Frame", "$parentDrag", MCMiniMapButton) MCMiniMapButtonDrag:Hide() MCMiniMapButton:SetScript("OnClick", function(self, button) if button == "LeftButton" then if MCOptionsFrame:IsShown() ~= 1 then MCOptionsFrame:Show() else MCOptionsFrame:Hide() end end end) MCMiniMapButtonDrag:SetScript("OnUpdate", function(self) local xpos,ypos = GetCursorPosition() local xmin,ymin = Minimap:GetLeft(), Minimap:GetBottom() xpos = xmin - xpos / UIParent:GetScale() + 70 ypos = ypos / UIParent:GetScale() - ymin - 70 MageCandy_Profiles[MageCandy_ActiveProfile].options.minimapposition = math.deg(math.atan2(ypos,xpos)) MCMiniMapButton:SetPoint("TOPLEFT", "Minimap", "TOPLEFT", 52-(80*cos(MageCandy_Profiles[MageCandy_ActiveProfile].options.minimapposition)), (80*sin(MageCandy_Profiles[MageCandy_ActiveProfile].options.minimapposition))-52) end) MCMiniMapButton:SetScript("OnDragStart", function(self) self:LockHighlight() MCMiniMapButtonDrag:Show() end) MCMiniMapButton:SetScript("OnDragStop", function(self) self:UnlockHighlight() MCMiniMapButtonDrag:Hide() end) MCMiniMapButton:SetScript("OnEnter", function(self) GameTooltip:SetOwner(self) GameTooltip:SetText("|cff00dfffMage Candy|r") GameTooltip:Show() end) MCMiniMapButton:SetScript("OnLeave", function(self) GameTooltip:Hide() end) MCMiniMapButton:RegisterForDrag("RightButton") MCMiniMapButton:EnableMouse(true) MCMiniMapButton:SetMovable(true) MCMiniMapButton:SetHighlightTexture("Interface\\Minimap\\UI-Minimap-ZoomButton-Highlight") MCMiniMapButton:SetWidth(33) MCMiniMapButton:SetHeight(33) MCMiniMapButton:CreateTexture("$parentTexture", "BACKGROUND") SetPortraitToTexture(MCMiniMapButtonTexture, "Interface\\ICONS\\Inv_misc_food_28") MCMiniMapButtonTexture:SetWidth(23) MCMiniMapButtonTexture:SetHeight(23) MCMiniMapButtonTexture:SetPoint("TOPLEFT", MCMiniMapButton, "TOPLEFT", 5, -4) MCMiniMapButton:CreateTexture("$parentBorder", "OVERLAY") MCMiniMapButtonBorder:SetTexture("Interface\\Minimap\\MiniMap-TrackingBorder") MCMiniMapButtonBorder:SetWidth(56) MCMiniMapButtonBorder:SetHeight(56) MCMiniMapButtonBorder:SetPoint("TOPLEFT", MCMiniMapButton, "TOPLEFT")
It's an altered version of a code I found in some1s post on wowprogramming forums I think. If you would like to have a look at it and test it, just remove the onclick function and substitute the MageCandy_Profiles[MageCandy_ActiveProfile].options.minimapposition entries with a variable that starts at 45 or whatever. Is that in your opinion fully functional?
Dec 27, 2013I guess I will post here as well to let people know about my new mage specific addon called Mage Candy. It has many useful tools for both pve and pvp and all of the features are made with accuracy in mind, because nobody likes inaccurate timers etc for pvp, especially me.Posted in: General AddOns
The addon has many features(similar to mage nuggets) like polymorph monitor, live stat tracker, bomb tracker, mana bar(with optional health bar and a spell calculator for calculating how many of a spell you can cast without going too low mana), water elemental tracker, proc timers, sound effects for procs and much more. It's sort of my attempt and an all in one class toolkit.
All features are coded so that if a timer(for example) is set to a default duration due to not being able to scan the target, the addon will wait and try again if you mouseover or target that person/npc again and automatically update the timer with the proper time. Arena wise, the addon will cycle through all of the arena players to always get the right timer, therefore making this addons timers/trackers perfect for pvp with no error margin.
All of the features have many customization options and the addon features a profiler that saves your settings and your frame positions, making it possible to save many different layouts and the ability to switch between them at the click of a button.
I am constantly finding ways to improve the addon and I am adding new features as I think them up. Suggestions are welcome on the addons comments page and if the suggestion sounds like its a worthwhile feature I will definetally look at adding it to the addon. If you are a Mage Candy user, please post any bugs if you find them, they irritate me as much as they do you.
Hope you fellow mages enjoy the addon as much as I do =p
Dec 27, 2013I've created the button manually with some help from google and would rather find a way to whitelist it so that my addon is independent, plus I have a profiler in it that lets you save multiple layouts including the minimap icon position. I'd rather my addon be 100% functional from the code I create so it can easily and swiftly be updated by me with each new wow patch. Could you explain to me, if not give a link to a site that explains it, how to add my button to the whitelist? The button is already fully functional, it's just untouched by sexymap or other addons. Thanks.Posted in: Lua Code Discussion
Dec 27, 2013I can't figure out how to let sexy map relocate my addons mini map button. The way I have it set up now it only works for the default map. Also, when sexymap hides the minimap buttons, mine doesn't hide. Anyone know how to let sexy map alter my map button? It's probably some simple variable or something knowing my luck. Any help is appreciated.Posted in: Lua Code Discussion
- To post a comment, please login or register a new account.