fodev.net

FOnline Development => Questions and Answers => Topic started by: vaulttec on March 21, 2014, 09:06:48 am

Title: Scroll elements
Post by: vaulttec 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 )
...
Title: Re: Scroll elements
Post by: Wipe 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 (http://fodev.net/forum/index.php/topic,29558.msg259452.html#msg259452), what can be both good and bad thing.
Title: Re: Scroll elements
Post by: vaulttec 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  :)