Cube

Development Tools Login to Add Favorites
  • 3 Likes
  • World of Warcraft
  • 139 Monthly Downloads
  • Supports: 7.3.0
  • 5,134 Total Downloads
  • Updated Sep 5, 2017
  • Created Dec 29, 2008
  • 13 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: GNU General Public License version 2 (GPLv2)
  • Newest File: v5.19

About Cube

This add-on require the lib IGAS  and PLoop, so you need download them first.

 

Cube provide several features :

 

1. CodeEditor(/cube code, also you can open key bindings to give it a key)

 

You can run debug codes in the default snippet editor, here are some key features for the editor:

 

  • Auto indent when you type codes in it.
  • Auto syntax color, you can change the colors in the menu.
  • Auto-complete based on a API list and the words in the codes.
  • An operation history based on you operation(like input several codes, press backspace to delete several lines, not based on the time), you can use CTRL+Z to undo, CTRL+Y to redo.
  • Use CTRL+G and give a line number to go.
  • Use CTRL+F to find text, F3 for continue search(only works for word now)
  • Use CTRL+A then TAB to format the code, this is failsafe operation.
  • Use CTRL+ENTER to insert a new line after the current line and move the cursor to the new line.
  • Use F5 to run the code.
  • You can use Pageup, Pagedown to jump pages.
  • You can use Doublc-Click to a word.
  • You can use SHIFT + UP or DOWN or LEFT or RIGHT or PAGEUP or PAGEDOWN to select blocks.
  • You can click the line number to select one line.
  • You can press mouse down on a line number and move the mouse to other line number to select several lines.

Also you can click the button on the top left to show the snippet tree, click the Add button on the root (you'll see the button when move mouse on it).

 

New Sinppet

 

Give it a name, and you'll have a new snippet can used to save codes, also you can choose the auto-run for the snippet so it'll be auto run in the beginning of the next game session.

 

 

If you don't like commands like ctrl+z, ctrl+y, you can set them in the Commond:

 

 

(Yeah, I try to give a system so users can write mods for Cube, but I don't have more time for it, so it's now only used to modify the command keys)

 

 

You can Click the Log button to open a Log panel :

 

 

You can type some commands in the bottom edit box, press enter to run it, "= exp" will be converted to "print(exp)", the print here is special designed only send message to the log panel, the log panel is editable, so you can copy it or clear it.

 

You can also use UP or DOWN to toggle the history commands.

 

If you run the code in the snippet, print is original, so only send message to the chat message frame, if you want send message to the log panel, you should use :

 

Cube.Log(msg, r, g, b)

 

All four parameters are required(Maybe added in the next version).

 

2. Debugger(/cube debug)

 

There is only one input box at the top, you can type in the table or a frame's global name, or an expression that the result is a table or a frame, then press enter to see the result.

 

 

Like the pic, you can input "GetMouseFocus()" then move mouse to a frame and press the enter to show the details of the target frame. Children and layer regions would also be shown in the tree. If you select a node that's an ui element, it would be shine so you may easily find it, also the edit box would show the access path of the node.

 

2017/09/05 v5.19
    1. You can use "Cube.Log(msg, r, g, b)" to send msg into the Log panel.

2017/09/05 v5.17
    1. A new input box is added at the bottom of the Log. You can type commands like '=100 / 30' or 'print(UnitName("player"))' in it, and press the enter to run, the result would be shown in the Log. You also can use up and down to browse the command line's history.

2017/09/02 v5.16
    1. Fix the highlight position not correct with ui scale.

2016/12/02 v5.13
    1. Update for PLoop v163.

2016/10/27 v5.12
    1. Update toc for WOW 7.1

2016/02/27: v5.10
    1. Update for IGAS lib.
    2. Auto-complete delay can be changed for less disturb.

2014/10/17: v5.8
    1. Update toc for wow 6.0

2014/10/14: v5.7
    1. WOW API added to auto complete list.
    2. Menu added to modify code editor settings.
    3. Fix some input error with "|" with IGAS v57.

2013/08/15: v5.6
    1. fix localization error

2013/08/15: v5.5
    1. Fix the addon system, now can be used.

2013/06/27: v5.4
    1. Update for IGAS v39

  • 1
  • 2
  • 3
  • 4
  • Next

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes