|
looks great
This is on my list of things to do, nicely executed. Are the tabs being handled as separate containers, as one container with an additional array of items in each tab, or as one container with tab values added to each item? I was unsure what the best way to handle it would be for doing something like this. Looks great, and the only thing I think you should add is tab rearranging like OSRS has.
https://puu.sh/AJpG7/501b9ebb63.gif
It's this.
Try writing bank with just one container(that's how OSRS does it). Becomes quite a bit more complex.
Yeah that's the rearranging I was talking about.
Do you know how OSRS stores the data for the tabs? The possibilities that come to mind for me like mentioned in my previous comment are either an array containing how many items are in each tab or adding an additional value to each item that contains its tab.
Yes. One container. Uses 9 varbits to define tab sizes. The "main tab" (AKA the very first, general one) is not amongst those sizes, and the items stored in that given tab have to actually be added to the end of the container(basically as far as the container is concerned, items start with the first(not the main tab) tab, and end with the main tab. The reasoning for that is quite simple - it saves bandwidth since when you shift the items in the main tab - which is used most often - you will only have to update the very end of the container(since the items are in the very end of the container); if it was the first, shifting the items would result in the entire container being shifted, which is quite heavy on bandwidth.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |