View Single Post
  #3  
Old 06-30-2008, 12:14 AM
Stephen Stephen is offline
Boom!
Stephen's Avatar
Join Date: May 2004
Location: San Francisco
Posts: 10,410
Stephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud of
Quote:
Originally Posted by TheStan View Post
Recently, I've been working on something of a file editor for my own personal use during server developement. But, I seem to be having a problem when it comes to placing the data I've loaded from the server into a GuiMLTextEditCtrl you see. It's not quite having the effect I wanted. :O

Code:
PHP Code:
public function onNodeSelected(objnodenodeslashpathnodedotpath) {
  
temp.data null;
  
temp.text "";
  
  if (!
node.isfile) return;
  if (
node.filedata.length() > 0) {
    
player.chat "Have data!";
    for (
datanode.filedata) {
      
temp.text @= "<br>" data "</br>";
    }
    
FileEdit.text temp.text;
  }

PIC BELOW.
<br /> is the newline command in HTML. there is no </br> If you want your text to stay as you stylize it use the predefined tags

<pre>
dogs
cats
kittens
</pre>
__________________
Reply With Quote