Get an Epic Experience with Premium

Cube

Development Tools Login to Add Favorites
  • 0 Likes
  • World of Warcraft
  • 18 Monthly Downloads
  • Supports: 5.2.0
  • 2,271 Total Downloads
  • Updated 03/13/2013
  • Created 12/29/2008
  • 10 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: GNU General Public License version 2 (GPLv2)
  • Newest File: Cube_v5.0_nolib
or

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/03/14:

1. Update toc to 5.2.0.

2. IGAS's browser is added to view the details about the IGAS lib.

3. IGAS lib will not be included from this version.

2012/08/29:

1. Update toc for 5.0.4.

2. Debug part can view Interface for IGAS System.

3. IGAS lib change beta to release r1.

2012/05/14:

1. F5 can run the code.

2. Press tab before "]" or ")" only make Cursor go after "]" or ")",instead of insert space.

3. Fix several problems for undo redo system.

2012/04/15:

1. Re fix the problem about the cursor position when you use backspace after color token.I fix the color start part, just forget the color end part.

2. Make using backspace delete the spaces at the line head look more smooth.

2012/04/14:

1. Fix a problem about the cursor position when you use backspace.

2. Import the debug tool.

2012/04/10:

1. Fix a problem for big screen.

2. Imporve the Debug tool to view the IGAS's class system.

2012/04/09:

1. Add row number for the editor.

2. fix several errors

3. increase the performance

2012/03/10:

1. Fix a problem when run code with "|" inside it

2012/03/08:

1.Fix a problem, when you type "|" in [[ ]] or " ", cause color not right.

2012/03/02:

Remove FAIAP, using IGAS's CodeEditor as the editor.

The new Editor support:

1. Auto indentation and highlighting

2. Ctrl+Z: undo Ctrl+Y: redo

3. Ctrl+G: goto line

4. Ctrl+F: search some text

5. F3: continue search

6. Ctrl+S: Save the snippet.

2011/04/12:

1. Recode for igas beta 3.

2. Main form re-designed, now you can choose, add, or delete items in the FileView.There is two treenode in the FileView, "Snippet" means a block of code, just used as the previous version. "Addon" is used to build addons based on the IGAS, no need to use it it you don't know it.

3. Debug part support thread now, you can resume the thread just by button-click.

4. IGAS b3 lib included.The lib is built on my new object-oriented system, It would use more memories than before.

2010/08/04:

1. Fix some error

2. IGAS lib is included, no need to download yourself.

3. Unit test is added.

4. Log View is added for addons that used logger system from igas.

2010/04/06:

1. Fix some error for new igas

2. remove embed libs, you need download IGAS lib yourself. http://wow.curseforge.com/addons/igas/

Comments

First Previous Page 1 of 2 Next Last
  • #21

    Auto Complete for System.Widget.CodeEditor

    IGAS V31 improve the MultiLineTextBox and CodeEdtior, an auto-complete system is added. This two widgets are used to provide a lua editor in game. 

    Now,these feature are used in the addon : Cube, so update to IGAS v31 if  you using Cube.

    • The auto-complete system will register lua keyword and IGAS's keyword, also register any identifier that you input in the editor. 
    • You can use up & down arrow to select word, then press tab to insert the selected word.
    • When you select a word by tab, you can continue change the selected word by press tab, until there is no more match words.
  • #20

    class, inherit, import, endclass, script, property, namespace, enum, struct, endstruct are keywords of the IGAS system, use these word may cause indent propblem.

    It's hard for me to diff these, and IGAS is the import part of my addon system.so, if you meet one, just try another words.

  • #19

    Well, I changed the editor much, to make it works like in the windows.Undo, redo system may have some problem, but almost works.Tell me if you meet one.

    Snippet part is okay.Addon part need more to do.I'm planning to move the IGAS_Studio into it.

    Last edited by kurapica on 3/5/2012 3:46:12 AM
  • #18
    Don't create "Addon", there is a problem would cause save file too big to load. Will be fixed in next version.
  • #17
    namespace "MyLib"

    -- System contains the base type such as String, Number, Table, Object.
    import "System"

    class "MyClass"
    inherit "System.Object"

    -- Global function will be treated as the class's method
    function GetName(self)
    return self._Name
    end

    property "Name" {
    Get = function(self)
    return self:GetName() -- this call the GetName function above.
    end,
    }

    -- the class's constructor
    function MyClass(name)
    local obj = Object()

    obj._Name = name
    end
    endclass "MyClass" -- stop the definition of the MyClass

    ---------------------------------------------------------
    Usage:
    obj = MyClass("Myobj")
    print(obj.Name) -- print 'Myobj'
    print(obj:GetName()) -- print 'Myobj'

    ---------------------------------------------------------
    This is the new OO system in IGAS.new version coming soon.
  • #16
    Well, the lib has a little problem:
    Cube\IGAS\GUI\Widget\Common\List.lua:Line 261

    local function OnMouseWheel(self, ...)

    Change to

    local function OnMouseWheel(self, arg1)

    I'm working on new version gui lib, so won't upload a debug version.
  • #15
    Work fine in 4.0.1, no update until next version is worked out.
  • #14
    Ver 1.7 is released, igas lib is included.No need to download lib from others.

    1. Unit Test is added.
    2. Log View for addons that based on IGAS' logger system is added.
  • #13
    Please download a lib from here http://wow.curseforge.com/addons/igas/
  • #11
    dont work :( early I successfully used it.
  • #10
    加油 kurapica~~
  • #9
    There is a bug when you use Debug part.When you delete two nodes in the TreeView,It should be error, this is caused by the gui lib.But I think this function is not often used, so I won't fixed it now.

    After a month, I'll release the gui lib's beta version with a Studio addon.
  • #8
    Update to 1.4

    1. fixed three bug.

    2. Syntax coloring, courtesy of krka's spectacular For All Indents and Purposes library.

    3. New gui lib. Notice, if you use my ShadowDancer3 addon. Delete CWDG floder in Cube, And copy a CWDG floder from ShadowDancer3 to Cube.Don't try to use this lib in other addon now, it's just a beta version.
  • #7
    Three bugs, But I am now working on my gui lib, It's not a good time for me update this addon.So, find it, just change yourself.

    Open Cube.lua, find function save:OnClick()
    Change this function's code to

    function save:OnClick()
    cubeF.Message = ""

    if codeName.Text == "" then
    cubeF.Message = L["Must set code name."]
    return
    end

    if code.Text == "" then
    cubeF.Message = L["Must set code."]
    return
    end

    if not CubeSave.CodeList[codeName.Text] then
    cboCode:AddItem(codeName.Text, codeName.Text)
    cboCode.Value = codeName.Text
    end
    CubeSave.AutoList[codeName.Text] = chkAuto.Checked
    CubeSave.CodeList[codeName.Text] = code.Text
    end


    Find function run:OnClick()
    Change this function's code to

    function run:OnClick()
    cubeF.Message = ""

    local func, err

    if code.Text ~= "" then
    func, err = loadstring(code.Text)

    if func then
    func()
    else
    Print(err)
    if cubeF.Parent:GetChild("Cube_BugList") then
    cubeF.Parent:GetChild("Cube_BugList").grabError(err)
    end
    end
    end
    end


    Open Debug.lua, Find function mnuShow:OnClick()
    Change this function's code to

    function mnuShow:OnClick()
    local node = Menu.Parent
    local text, value, baseValue, view

    value = GetTextByNode(node)
    baseValue = node.BaseValue

    if value then
    view = newView()
    text = value
    if getmetatable(baseValue) then
    text = "\124cff1eff00[M]\124h\124r"..text
    end
    node = view:AddNode{["Text"] = text, ["Value"] = value,}
    node.Menu = Menu
    node.BaseValue = baseValue
    node.OnToggle = OnToggle
    UpdateChild(node)
    node:Select()
    end
    end
  • #6
    I'll think about it.If I want make it as an addon, I must make frames what now made by other addons, And also make an UI to mod it.It'll take some times.
  • 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 »

Infinite Crisis NA

Get Your Preferred Access Code!