GuiScrollCtrl is based off the GuiControl object. It can use all variables you see under GuiControl, such as x, y, width, and height. Use them. :]
x-x Sorry, sleep deprived Yen didn't notice the main question.
Focusing on the scroll, there are many things you did wrong:
PHP Code:
hscrollbar = "red";
vscrollbar = "hi there";
{v,h}ScrollBar = "alwaysOn", "alwaysOff", "dynamic";
alwaysOn is default, the scroll bar is always showing.
alwaysOff hides the scroll bar at all times.
dynamic only makes the scroll bar appear if you can scroll down.
PHP Code:
scrollpos = "gray";
scrollpos is how many pixels horizontally/vertically the scroll bars have been scrolled.
scrollpos = "0 0"; scrolls to the top-left; the first value is the horizontal bar, the second value is the vertical bar.
Okay, this is part of the Scroll's profile. The profile is what the scroll looks like, such as the image, whether or not it's tiled, the color it's tinted, ect.
To modify this, you can create a new profile for any NPC to use by doing
PHP Code:
new GuiControlProfile(Name) {
bitmap = "defaultscroll.png";
tile = true;
transparency = 1;
blue = 1;
red = 0;
green = 0;
}
With this, you can use 'profile = "Name"' in all your scroll controls to give them the same properties.
Alternatively, you can use 'useownprofile = true;'
This allows you to modify the profile of just that one Gui Control.
PHP Code:
useownprofile = true;
profile.tile = true;
profile.blue = 1;
profile.green = 1;
profile.red = 1;
The only thing is that some of the default attributes of the scroll, such as the image, are wiped. You'll have to use 'profile.image = "defaultscroll.png"'
Good luck, I've tried playing with scroll profiles, but I found them confusing.. I think they need more support, such as the ability to use an image for the border.. Unless they already have it.