Set scroll bar position

Thalassicus

Bytes and Nibblers
Joined
Nov 9, 2005
Messages
11,057
Location
Texas
How can I set the position of a scroll bar to a specific value? I'm trying to make the tech tree position itself just before the earliest tech we can research. Calculating the position was easy... but I'm having difficulty finding the correct function to set the position.
 
I've had trouble figuring out what values the parameter accepts. The implementation doesn't appear to be in the source code we have access to. I looked at that function at the place it's used in the code, but it's a little vague. :think:
 
I've had trouble figuring out what values the parameter accepts.

IIRC it's a percent as a float (ie from 0.00 to 1.00), although IIRC again very few values actually work (possibly even only 0 and 1)
 
Back
Top Bottom