Author Topic: Scroll elements  (Read 2132 times)

Scroll elements
« on: March 21, 2014, 09:06:48 am »
There's some section, called "//Scroll elements" in clinet_defines.fos, I suppose that it's scroll position in hardcoded GUI, and that would be very useful for me, but I have no idea how to use it, there's no example in SDK at all.
Any ideas?
Code: [Select]
// Scroll elements
#define SCROLL_MESSBOX                     ( 0 )
#define SCROLL_INVENTORY                   ( 1 )
#define SCROLL_INVENTORY_ITEM_INFO         ( 2 )
#define SCROLL_PICKUP                      ( 3 )
...

Offline Wipe

  • Rotator
  • Random is god
Re: Scroll elements
« Reply #1 on: March 21, 2014, 04:11:16 pm »
Code: [Select]
int GetScroll( int scrollElement );
void SetScroll( int scrollElement, int value );
As for examples, it may be hard to find any; so far it's easier to implement new screen with own logic, instead of fighting with hardcoded stuff.
Worth to remember that GUI is going to change soon, what can be both good and bad thing.
Games are meant to be created, not played...

Re: Scroll elements
« Reply #2 on: March 21, 2014, 05:26:25 pm »
Thank you, yeah, now I can see it in foline_logs_old.txt (but not in main docs).
Works fine for me, examples not needed.

And about new SDK, won't work for me, cause I stuck on somwhere about 381 revision along with the requiem server  :)