View Single Post
  #82  
Old 06-20-2015, 01:52 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko is a jewel in the roughKirko is a jewel in the rough
Quote:
Originally Posted by MattKan View Post


All the colors are whack and it makes it hard to read. This may be a v6 problem, but has anybody run into anything similar?
I had that problem also I found out it's because the profile for the gui is assigned to SyntaxHighlightProfile but that profile isn't given in the script. I did get to fix it somewhat.

PHP Code:
new GuiScrollCtrl("LevelNPC_" @ temp.npc_id @ "_ScriptScroll") {
      
profile = GuiBlueScrollProfile;
      
scrollprofile = GuiBlueScrollProfile;
      
useownprofile = true;
      
profile.fillColor = "255 255 255";
      
profile.opaque = true;
      
profile.border = 1;
      
profile.bitmap = "guiblue_scroll_noback.png";
      
horizsizing = "width";
      
vertsizing  = "height";
      
clientwidth  = temp.ww;
      
clientheight = temp.wh - 40;
      
      new 
GuiMLTextEditCtrl("LevelNPC_" @ temp.npc_id @ "_Script") {
        
profile = SyntaxHighlightProfile;
        
useownprofile = true;

        
//you really just need to add this
        
profile.fontcolor = "0 0 0"; 
        
profile.fontcolorhl = "175 0 0";
        
profile.fontcolorna = "0 0 0";
        
profile.fontcolorsel = "0 0 0";
        
profile.fontcolorlink = "255 0 255";
        
profile.fontcolorlinkhl = "255 0 0";
        
profile.cursorColor = { 0,  0,  0, 255 };
        
profile.fillcolorhl = "80 180 255";
        
profile.fontsize = 15;
        
profile.fonttype  = "Courier New"; 
        
        
        
horizsizing = "width";
        
syntaxhighlighting = true;
        
wordwrap = false;
        
clientheight = temp.wh;
        
clientwidth  = temp.ww - 40;
        
width -= 4;
        
        
setlines(temp.npc_script);
        
temp.scriptctrl = this;

        
autoindenting = true;
        
tabspaces = 2;
      }
    } 
Reply With Quote