This add-on require the lib PLoop and Scorpio so you need download them first.
The Cube is re-created, it now provide two tools, it's recommend bind short key to those for easy usage, or you could use /cube code to open the Code Editor, use /cube debug to open the Browser.
I. The code editor is re-designed based on the Scorpio, it still provide the features like auto-complete and others, the editor will show the tips for you.
II. The Browser is used to replace the debug tools, it can be used to browse the API Dodcument provided by the blizzard.
The Browser will orginzed the data in each category by sort
You can type in expressions to check the result, also the auto complete system will help you:
All green works are links, some will show you more details(redirect to other pages), some will send the text to the chat frame's editbox so you can copy them.
If you have interesting with Scorpio or PLoop, You also can input their name to get more informations(although requre some learning):
Just updated to the version released 17 hours ago. Any { } , [ ] or = . , look like they have been commented out. Very odd. The font appears to have changed around any comments. If you remove the comments, it changes the affect.
In reply to 4hm_deathsquad:
The update has no changes on the code features, only default font settings and color settings(can be changed in the menu now). You could upload a pic to show the problems or try to change the code colors in the menu.
Still busy on the new feature of the Scorpio, so, here is a code snippet can be used in Cube to fix the bugs and change the font size of the Cube Editor:
In reply to kurapica125:
The config menu will be added in the next version, so this is only a temp fix for now.
with the new Scorpio v055, the undo/redo should works well now, and some minor problems are also fixed
The whole ui & feature are re-designed, enjoy the coding
In reply to kurapica125:
Is it not going to be skinned by IGAS anymore? Or is that moving/moved to Scorpio, I cannot seem to find commands or controls.
Also switching the dropdown prints the code in the chat window, is there a command to disable that?
The important bit is working so that is what counts, thanks!
In reply to ciranidd:
The IGAS will be abandon when Scorpio Lib is all done. This is not just moving the code, the code behind the code editor is re-created and much more simple.
It's best to use the key bindings to bind short key to open thsoe tools. You also can type /cube to show the commands.
For now, only code editor and a new browser(instead of the debug) is added, I only have done the main features of them in 10.14, so the dropdown menu and other config features will be added lately. For now, my focus is the usage of the Code Editor, like more powerful auto-complete features.
The only thing that this is missing is an output window like WoWLua has at the bottom. That would be ideal!!
Can output to log a single msg, but that's about it.
In reply to 4hm_deathsquad:
Click the "Log" button, it'll be shown, you can input =GetTime() and press enter in the inputbox. Also you can use Cube.Log(msg, r, g, b) to add a log message with color. (It's an inner method and an old one, need set the color code to use it for now).
I decide to re-code the Cube to my Scorpio Libs, so I can apply new features on them(I stop updating the old IGAS libs for years, that's also why there is no new features in Cube)
I kept getting an error on classic whenever I loaded Cube by itself (or with one of my addons that doesn't use LibStub and CallBackhandler. These errors were related to these two addons. I did some digging and found that in the IGAS libraries, neither of these libs were being called. When I had another addon loaded with those libraries it worked fine. So I edited IGAS\LibClassicDurations.xml to include the libstub.lua and callbackhandler-1.0.lua and everything works great now.
In reply to dragonflyy69:
I really missed that. Thank you for your work.
If you have problem with input, you may update the IGAS to v155 version, it'd be fixed, I don't know why, but it just fix the strange problem for multi line text box
Any chance we could get an option to disable the minimap button?
That button only show when there are lua errors. if you clear all errors in it, it will be hidden.
For now, there is no option to disable it, maybe in next version but I don't know when.
Here is an alternative solution, save the code below as one auto-run snippet, it'll force the icon keep hidden.
Thanks!
Am a refugee from WoWLua that really misses the command line + command output capture at the bottom. Could this possibly be implemented, pretty please? :)
Also, an automatic code formatting instead of Ctrl + A + TAB.
Thanks for the hard work (and really fast update rate!), keep it up!
Fulg
v5.17 added, you can use the Log button to show the log panel, a new editbox is added at the bottom of it. you can type commands in it, and use the up and down to browse the history.
The code is normally auto formatting when you type it, ctrl+a+tab is a failsafe.
Since I'm working on a new lib, some features of the Cube won't be updated like the API list, I don't have time for this now.
BTW. the debugger can also be used to inspect frames, you can type 'GetMouseFocus()' in the debug then move the mouse to a frame and press the enter to show the details of it like regions, childs, also selected ui should be shine so you can easily find them.
Many thanks for the superfast response!
Keep up the good work mate!
I really really want to use this addon, as I know it will allow me to do some awesome stuff but i can't get it to work for the life of me. None of the commands work. I have it installed and active and LIB: IGAS installed and activated too! What gives? Any idears?