Get an Epic Experience with Premium


Development Tools Login to Add Favorites
  • 1 Like
  • World of Warcraft
  • 30 Monthly Downloads
  • Supports: 5.3.0
  • 2,855 Total Downloads
  • Updated 08/15/2013
  • Created 12/29/2008
  • 13 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: GNU General Public License version 2 (GPLv2)
  • Newest File: v5.6

About Cube

This add-on is coding based on the lib IGAS , so you need download it first.

A simple tools contained three parts:Script, Debug, BugCollect.

ShortCut for editor:

F5 : Run code

Ctrl+Z : Undo

Ctrl+Y : Redo

Ctrl+G : Go to line

Ctrl+F : Search some text

F3 : Continue search

Ctrl+S : Save the snippet

Ctrl+A then Tab : Select all text and then format all

About Select text:

Shift + Mouse Click | PageUp | PageDown | Home | End | Up | Down | Left | Right : to select multi-text

Double click : select a word.

How to open:

1. Type /cube to get the slash commands to open those forms. like "/cube code" would open the code editor.

2. Bind keys for those forms in the key binding.

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


First Previous Page 1 of 3 Next Last
  • #36

    Enhancement request:  I would like to be able to turn off the autocompletion of quotes and parenthesis and brackets.  Most of my lua syntax errors are related to the auto completion of those:  ',",(,),{,}

  • #37

    Could you show a detail how it works badly, like input sequence, use | as mouse position.



    Don't see many disadvantage in it, I choose the style from sublime text, input the left part, the right part is auto-in, type the right part before a right part, just move the mouse to it's back, delete the left part, also delete the right part, delete the right part won't delete the left part.

    I'll see if there would be an improve or just a switch.

  • #39

    That's how it works, not by saving the key input, but keep safe, it works for multi (), maybe I should leave the single quote and double quote, it's not useful since the code is colored.

    After finished the new action system for IGAS lib, I'll make a review on the code editor.

  • #38

    Here's an example.  I start typing the following:

    if string1 == 'Hello Wor'

    Cube will put the completeing quote after the last character I type.  When I finish typing World, I still either have to press the single quote or use the arrow key to go past it, before I can type the keyword "then".  Cube trying to autocomplete the closing quote saved me no keystrokes.

  • #33

    If I copy a lot of lua code and paste it into Cube, the scrolling of the Cube window doesn't work well.  I copied the code from one of the lua files from an addon installed using the Curse client.

    Mouse wheel scrolling and scrolling with the scroll bar on the right, get very jumpy and skip back and forth in the window.

    As an example, I copied the DataBase.lua file contents from the addon "Buffet" and pasted it into Cube.

  • #35

    The error is happened when scroll to the top, and don't know why trigger the OnCursorChanged event for the editor( only supposed to be triggered when cursor position is changed or the editor is resizing )

    But, since I resize the editor and move it, can't repeat the problem. Exit the game, entering the game, still fine.

    I also faced some other problems caused by wow'e engine, treeview won't keep straight when move it to the center of the screen(back to WLK time). So, may you try to resize the editor, and see if the problem would be gone?

  • #29

    Sorry for all the questions.  I'm really enjoying using Cube and IGAS, but don't understand some things.

    When I'm in the Cube code editor, sometimes the left and right arrow keys don't move the curso in the editor, they change the direction my character is facing in the game.  If I press up or down arrow, then the left/right arrow, they work.

    Any ideas?

  • #31

    Ah, I see the problem, when the auto-complete list is show, and press the up and down arrow, the arrow keys are disabled to make sure you can choose items in the list, it'll be solved on a new version IGAS, I'll uplaod it after two hours.

    I only use the tab to recycle the auto-complete words, so don't know it before.

    Last edited by kurapica on 10/17/2013 11:14:34 PM
  • #32

    thank you

  • #28

    While I have Cube open, my screen will go black and then reshow.  Looks like when I change some graphics settings in the UI.  Not really a problem, just wanted to know if this was normal.

  • #30

    No, it's not normal. Editing big snippet will cause a major fps drop, but I try to edit 1000 lines code on my laptop, just slow, don't black the screen.

    If you have snippets code with lines above 600,  it's better to split them to more snippets, or just edit the code outside the wow then paste in(Since blz use a stupid way to paste the code, it'll cause the screen freeze for some seconds, but not black)

    The editor don't use the OnUpdate event, so it will only cost cpu and drop the fps when you edit it, so if you have the problem when not coding, I don't know the problem.

  • #26

    Is it possible to rename a snippet without going into Cube's savedvariables file and doing it manually?

  • #27

    Since you can copy and paste, so no ui operation for this, but it can be done with :

    local function rename(old, new)
    local snippetTree = IGAS.UIParent.Cube_Main.FileTree:GetNode(1)

    for i = 1, snippetTree.ChildNodeCount do
    local subNode = snippetTree:GetNode(i)

    if subNode.Text == old then
    subNode.Text = new

    rename("oldname", "newname")

    Just be careful the new name won't be an existed one.

    Last edited by kurapica on 10/17/2013 8:34:24 AM
  • #22

    The autorun feature for code appears to be character specific.

    Is there a way to make it global?

  • #23

    Yep, the autorun can only be applied to the current character.

    Make global means add two checkbox for one code, since you only need to check it once for one character,  I prefer the minimum config.

  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Marriland Furious Fists Giveaway!