Quote:
Originally Posted by cbkbud
I uploaded it on Vivitron, hit F8 -> Start -> Update Packages -> Vivitron -> Client-RC Images -> Install.
Also, just had an idea.
Since the tab button doesn't work in script editor its really hard to format code. So what about a button in the window that says 'Format Code' and does the command "/style weapon/npc/script name" or whatever the command is.
|
Okay, I'm not going to wait for the next release, right? I modified the code slightly, very easy fix. If you want to install it, I'll tell you how.
Use the find function to find "new GuiButtonCtrl(ScriptedRCScriptEditorDelete)".
Right above that line, add this code:
PHP Code:
new GuiButtonCtrl(ScriptedRCScriptEditorStyle)
{
profile = "GuiBlueButtonProfile";
position = {196 + 48, 444};
extent = {48, 31};
vertSizing = "top";
text = "Style";
thiso.catchEvent(this, "onAction", "onScriptEditorButton");
}
now using the search function again, search for "function onScriptEditorButton(obj)". Scroll down a bit until you see "case "Delete":".
On the line above that, add this code
PHP Code:
case "Style":
{
if (this.currentItem == NULL)
{
return;
}
// this.currentItem[1] == script name
// this.currentItem[0] == script type
if (this.currentItem[0] in {"weapon", "class", "npc"})
{
sendToRC( "/style" SPC this.currentItem[0] SPC this.currentItem[1] );
}
break;
}
If the compiler spits out errors, you did something wrong. Try redownloading the script and adding this again if you can't find the problem.
Thanks so much for releasing this Skyld! Can't wait for the online tile editor now! Then I can go back to MACINTOSH!
