Xcalc

  • Addon: Xcalc
  • Version: 2.2
  • Category: Miscellaneous
  • Size: 18KB
  • Libs: None
  • Score: 4/5
  • Download:
  • Author: moird
  • Wow Version: 3.1.3
  • Update: 2009-6-21 23:37:57
  • Localized: En
  • Vote: -3 +1 +3

Xcalc is a fairly basic calculator that allows mathmatical equations to be entered via the console or by using the GUI calculator interface.

Xcalc is based off of QuickCalc by Mark Ribau. A good portion of the code has been rewritten, and the GUI has been completely rewritten.

Installation
------------------
Extract the zip and put the xcalc folder into \World of Warcraft\Interface\AddOns
**WARNING**
xcalc 2.0 files have changed and any previous version needs to be deleted before. ie. dont copy this over 1.0 installation.

Usage
----------------
slash commands:
/xcalc
/calc
/=

there is a = minimap icon that will all open the GUI interface.
also of importance xcalc will rebind your all your numberpad keys to the gui interface when the Gui is open so it is not necessary to bind those keys. the GUI will rebind the numberpad keys back to their original bindings when the window closes. With the GUI open use shift+enter to open the chat dialog, and you can shift+left click on the number window to output that to the chat dialog if it is open.

Xcalc does support computing of expressions from the command line. This is accessed by using the slash commands with the expression after the slash command.

Math operators:
+ - * / ^ ( )

Special Keyword:
ans -- Will return the last answer given from using the slash commands

Math Functions:
abs() acos() asin() atan() atan2(,) ceil() deg() floor() frexp() ldexp() exp() log() log10() min([,...])
max([,...]) mod(,) rad() random([[,] ]) randomseed() sqrt() cos() sin() tan()
Please see http://www.wowwiki.com/World_of_Warcraft_API#Math_Functions for more information on the math functions.

Money strings:
#.#g
#.#s
#c
#g#s#c
#g#s
#g#c
#s#c

example:
/calc 2 + 2
xcalc Result: 2 + 2 = 4

/calc 3.5g
xcalc Result: 3.5g = 3g50s

/calc (3.5g + 50s) * 2
xcalc Result: (3.5g + 50s) * 2 = 8g

/calc 4g / 5
xcalc Result: 4g / 5 = 80s

v2.2
Minor Fixes
moved global variables out of localization and added them to xcalc namespace
two functions missed being in the main namespace fixed now
Created xcalc namespace to reduce global namespace pollution
Added proper check with addons_loaded
Comments and cleanup
Minor issue with right clicking minimap menu
Changed Vairables_loaded to addon_loaded and moved it into xcalc.lua
Right click minimap button to open options window
General code cleanup
Changed email address in files
general code cleanup
Changed how all the buttons are done. Some cleanup left to do
changing how the main buttons get created
Changed more string.find into a reasonable layout.
More work on the one method to deal with key inputs
forgot xcalc_ in front of a function call, that is fixed. Started redoing string.find calls to be a bit cleaner
Made some changes to the key handling system, setting up a more generic key handler
Xcalc download
Top Wow Addon
Recommend Wow Addon