![]() |
GuiScrollCtrl question
I have been researching the Gui commands on the wiki, and this is all I could find for the scroll box:
PHP Code:
The window contains the scollbox, and the scrollbox contains the text PHP Code:
If someone knows how to please help fix this so that the whole background of the scroll/window area is always black, that would be great. (oh look! I asked nicely! :D ) |
Quote:
PHP Code:
|
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:
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 = "0 0"; scrolls to the top-left; the first value is the horizontal bar, the second value is the vertical bar. PHP Code:
To modify this, you can create a new profile for any NPC to use by doing PHP Code:
Alternatively, you can use 'useownprofile = true;' This allows you to modify the profile of just that one Gui Control. PHP Code:
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. |
Thank you Yen for this very helpful information.
What was your resoruce for all that knowledge? Becasue I was unable to find that level of description of what the paramaters are on the wiki. Please hook me up with the resource you used to learn that. |
Quote:
HTML Code:
vscrollbar = "hi there"; |
Quote:
And regarding the profiles, you should use GuiScrollCtrlProfile, not GuiControlProfile. |
I learned by trial and error.
And common sense. And looking at the RC. But mostly trial and error. |
| All times are GMT +2. The time now is 05:23 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.