View Single Post
  #5  
Old 03-04-2007, 04:50 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by cbkbud View Post
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 48444};
      
extent = {4831};
      
      
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[0in {"weapon""class""npc"})
      {
        
sendToRC"/style" SPC this.currentItem[0SPC 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!
__________________
Reply With Quote