FOnline Development > Questions and Answers
Scroll elements
(1/1)
vaulttec:
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: ---// Scroll elements
#define SCROLL_MESSBOX ( 0 )
#define SCROLL_INVENTORY ( 1 )
#define SCROLL_INVENTORY_ITEM_INFO ( 2 )
#define SCROLL_PICKUP ( 3 )
...
--- End code ---
Wipe:
--- Code: ---int GetScroll( int scrollElement );
void SetScroll( int scrollElement, int value );
--- End code ---
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.
vaulttec:
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 :)
Navigation
[0] Message Index
Go to full version