| View previous topic :: View next topic |
| Author |
Message |
mw54finest Site Admin

Joined: 22 Jun 2008 Posts: 160
|
Posted: Thu Jun 26, 2008 1:49 pm Post subject: GLB Player Navigation by SNAITF |
|
|
Adds a drop down menu to the Player Profile, Awards, Equipment, Skill Points, Contract Offers and Tactics Page. The menu links to the corresponding page for the selected player.
The drop down menu takes place of the players name at the top of the page. If the user does not own more than 1 player the menu will not be displayed.
I've built in one custom option which is listed at the top of the script:
timeout - the timeout for the script to execute, default to 0, value is in milliseconds, 1 second would equal 1000 milliseconds.
http://userscripts.org/scripts/show/29182
_________________ Eat, Sleep, Live GLB! |
|
| Back to top |
|
 |
mw54finest Site Admin

Joined: 22 Jun 2008 Posts: 160
|
|
| Back to top |
|
 |
RandomBeast Developer
Joined: 22 Jun 2008 Posts: 42
|
Posted: Thu Jun 26, 2008 8:53 pm Post subject: |
|
|
| I like your script better. Nice job. What happens if you have a LOT of players? |
|
| Back to top |
|
 |
SNAITF Developer

Joined: 25 Jun 2008 Posts: 65
|
Posted: Fri Jun 27, 2008 8:35 am Post subject: |
|
|
| RandomBeast wrote: | | I like your script better. Nice job. What happens if you have a LOT of players? |
not sure!
shouldn't be a huge difference if any
also wanted to mention, I've updated it, added an image to the drop down to signify that it is a drop down, more of a visual cue than anything
 |
|
| Back to top |
|
 |
sbuck143
Joined: 28 Jun 2008 Posts: 17
|
Posted: Sat Jun 28, 2008 8:44 pm Post subject: |
|
|
| i have a TON of players and I can report that when I get to the bottom of the screen and try to move the mouse down in a way that would logically "scroll" the list down, it just closes the drop down list entirely as if i moved away from it. So it's limited to 1 screenful of players at the moment. |
|
| Back to top |
|
 |
SNAITF Developer

Joined: 25 Jun 2008 Posts: 65
|
Posted: Sat Jun 28, 2008 9:48 pm Post subject: |
|
|
| sbuck143 wrote: | | i have a TON of players and I can report that when I get to the bottom of the screen and try to move the mouse down in a way that would logically "scroll" the list down, it just closes the drop down list entirely as if i moved away from it. So it's limited to 1 screenful of players at the moment. |
could you post a screen shot here? just curious |
|
| Back to top |
|
 |
sbuck143
Joined: 28 Jun 2008 Posts: 17
|
Posted: Sat Jun 28, 2008 9:57 pm Post subject: |
|
|
i just figured out what has to be done. If you first select inside the list, you can use the down arrow key to get all the way to the bottom of the list, no matter how long it is.
Once the down arrow has "moved" the screen perspective to see the bottom of the list, the mouse can be used to select players like normal.
Here's screenshots:
http://img179.imageshack.us/img179/1152/playernavgk3.jpg
this is how it comes up at first, and you can see the sliver of a name at the bottom. if i use the mouse to move down the list, it will highlight the last name seen "Cowbell Assassin VI", and moving down past that, the list will disappear as if I moved the mouse away from it entirely.
http://img179.imageshack.us/img179/1464/playernavafterarrowkeymw5.jpg
In this screenshot, instead of mousing down the list, I just leaned on the down arrow and it navigates the list just fine. Note all the player names beneath Cowbell Assassin VI can now be seen.
In my mind issue is resolved. Just a note that probably needs to be mentioned somewhere that using the down arrow key is required to navigate a list longer than your screen can display. |
|
| Back to top |
|
 |
SNAITF Developer

Joined: 25 Jun 2008 Posts: 65
|
Posted: Wed Jul 02, 2008 2:27 pm Post subject: |
|
|
sbuck143,
WOW, you own a lot a players
glad you figured it out, the only other route would be to change the font size to accommodate people with a large list of players. |
|
| Back to top |
|
 |
SNAITF Developer

Joined: 25 Jun 2008 Posts: 65
|
Posted: Wed Jul 02, 2008 2:30 pm Post subject: |
|
|
also wanted to say that I've updated this script, same page:
http://userscripts.org/scripts/show/29182
I've removed the GM_xmlhttpRequest call from the script, I noticed it caused the script to perform badly at times. Now for this to work correctly you must visit your home page once before the navigation menu will be created. What it does now is to compile and save a list of your players when you visit the home page. Then when you visit one of your players page it uses this stored list to create the menu.
If at anytime you add/buy another player just revisit the home page once to get that player on the menu. |
|
| Back to top |
|
 |
dotman15
Joined: 24 Jul 2008 Posts: 9
|
Posted: Fri Sep 19, 2008 7:46 am Post subject: |
|
|
I dont have a screenshot of it but with the new training stuff it has replaced the player name with "spend". So as long as you are saving up training points this script will not show the players names any more but the links will still work. I havent looked at the script yet to see if i could find a fix but in the meantime i thought i would let you guys know
|
|
| Back to top |
|
 |
|