Thread: Graal3 GUI
View Single Post
  #20  
Old 10-03-2005, 05:56 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by Torankusu_2002
Sorry, this is almost a month old, but, your example breaks down like this:

-new GuiTextCtrl("the text file the player has edited goes here") ?
profile = "GuiTextProfile"; --this is where you specify the profile to copy?

Where do you put these images and .txt files online and offline?
You're not editing any files. It's just basically dynamically changing a GUI profile (settings/colors) for the one GUI object, you shouldn't need to upload anything.

Edit:

Let's say you have this code to create a window:
NPC Code:

//#CLIENTSIDE
function onCreated() {
new GuiWindowCtrl("Test_Window") {
profile = "GuiWindowProfile";
position = "0 0";
extent = "350 350";
canMove = true;
canResize = canMaximize = canClose = false;
tile = true;
text = "Test Window";

new GuiTextCtrl("Test_Text") {
profile = "GuiTextProfile";
position = "60 30";
text = "Test";
}
}
}



It will create a window such as this:

Notice the text is fairly hard to read, now add these three lines to the "Test_Text" control to change the font color and size:
NPC Code:

useownprofile = true;
profile.fontSize = "25";
profile.fontColor = {0, 0, 0};



You get something more like this:

The text now contains all the information contained in "GuiTextProfile" only changing the color and size.

Last edited by Riot; 10-03-2005 at 06:17 PM..
Reply With Quote