Jump to content

GUI Scroll Bars


Recommended Posts

Posted

How do I set the size of the scroll bar (not the actual width/height) but how far you can scroll down using it.

I made a scroll bar using guiCreateScrollBar and I want to config how much you can scroll.

Posted

You can set the scroll position back to the max value everytime the player scrolls it.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Use these functions for a vertical scroll bar and if it's horizontal just change "Vertical" with "Horizontal":

  
guiScrollPaneGetVerticalScrollPosition 
guiScrollPaneSetVerticalScrollPosition  
  
--Example code 
if guiScrollPaneGetVerticalScrollPosition(gui) >= 75 then 
 guiScrollPaneSetVerticalScrollPosition(gui, 75) 
end 
  
  

"Keep making it simplex."

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...