Guide Quickbar Tutorial (Premium)

DeletedUser17088

Guest
a9l6wj.png


Editing Sub sections

106yiiv.png


1) select the main section you wish to add/edit the subsections within

2) This is where you add the java script code and the name of the toolbar (Golden cross adds another sub menu, red cross deletes sub menu)

3) always save once you have finished editing, then check your toolbar to make sure it all works

How to edit a Main section

jagf9u.png


1) Edit/add the main title you wish

2) Once again you can have as many or as few sub sections as you wish

3) Save your work as always


Adding your own toolbar Items

When constructing your own tool bar item from scratch (if you completely delete a tool bar item and want to add a new one) there are 2 options available: you can create a menu item, or you can create a submenu.

When constructing a tool bar item from scratch which will contain submenus

- Select 'new sub menu'
- Name it and save
- Go back to your new item and then add all the sub menus that you wish (remember to save when finished)

When adding a 'direct link' toolbar item (like the default senate toolbar item does)

- Select 'new menu item'
- Name it
- Add the Javascript
- Save
(This can be handy for windows you use very often, such as the farming overview (captain needed) or possibly the barracks or harbour, which are separate menu items as standard)

Once you have messed around with the toolbar you will eventually find what works best for you, here is my usual setup

rwi8ea.png


Java script codes (copy from 'javascript' onwards)

Code:
Building
Senate: javascript: MainWindowFactory.openMainWindow ()
Barracks: javascript: BarracksWindowFactory.openBarracksWindow ()
Port: javascript: DocksWindowFactory.openDocksWindow ()
Temple: javascript: TempleWindowFactory.openTempleWindow ()
Cave: javascript: HideWindowFactory.openHideWindow ()
Academy: javascript: AcademyWindowFactory.openAcademyWindow ()
Farm: javascript: BuildingWindowFactory.open ('farm')
Market: javascript: BuildingWindowFactory.open ('Market')
Defense (Agora): javascript: PlaceWindowFactory.openPlaceWindow ('index', open)
Outside (Agora): javascript: PlaceWindowFactory.openPlaceWindow ('units_beyond', open)
Simulator (Agora): javascript: PlaceWindowFactory.openPlaceWindow ('simulator', open)
Culture (Agora): javascript: PlaceWindowFactory.openPlaceWindow ()
Wall: javascript: BuildingWindowFactory.open ('Wall')
Lumberjacks: javascript: LumberWindowFactory.openLumberWindow ()
Quarry: javascript: StonerWindowFactory.openStonerWindow ()
Silver Mine: javascript: IronerWindowFactory.openIronerWindow ()
Stock: javascript: BuildingWindowFactory.open ('storage')
Premium Overviews
Trade overview: javascript: Overviews.openOverview ('trade_overview')
Command overview: javascript: Overviews.openOverview ('command_overview')
Recruiting overview: javascript: Overviews.openOverview ('recruit_overview')
Troops Overview: javascript: Overviews.openOverview ('unit_overview')
Troops outside: javascript: Overviews.openOverview ('outer_units')
Building overview: javascript: Overviews.openOverview ('building_overview')
Culture Overview: javascript: Overviews.openOverview ('culture_overview')
Gods Overview: javascript: Overviews.openOverview ('gods_overview')
Cave Overview: javascript: Overviews.openOverview ('hides_overview')
Stadtgruppenübersicht: javascript:Overviews.openOverview('town_group_overview','town_group_overviews')
Towns list: javascript: Overviews.openOverview ('towns_overview')
Bauerndorfübersicht: javascript:GPWindowMgr.Create(GPWindowMgr.TYPE_FARM_TOWN_OVERVIEWS,'Bauerndörfer',{})
Attack Planner: javascript: GPWindowMgr.Create (GPWindowMgr.TYPE_ATTACK_PLANER, 'Attack Planner')
Other
Booking Tool: javascript: hOpenWindow.openReservationList (); void (0);

*Important notes*

A) Currently you need to re-add the farm all (farm overveiw) code every time you edit any aspect of the toolbar - true on 12th sept

B)If you mess up really badly, there is always the 'reset quick bar'

C)Please post anything that will help improve this guide or fix mistakes


Constructed By [user]Fist of the North star[/user] and [user]Pythagorus[/user]
 
Last edited by a moderator:

DeletedUser17088

Guest
Sometimes your Quickbar items may not work, A possible fix is to delete the Javascript and re-add the code > Save
 

DeletedUser17088

Guest
javascript:Layout.buildingWindow.open('place',{},'simulator')

The simulator Javascript for the quickbar does not appear to be working, anyone else have this problem?
 

DeletedUser

Guest
Just an FYI, i've put a link to this on the wiki.
(Just a link to this page from the little section on the quick bar, haven't ripped your work :p)
 

DeletedUser

Guest
i've been having this for a while, but richard still hasn't found out what the new js should be :supermad:

If you have find out the new js for the simulator please update it guys. I sorta need it :)
 

DeletedUser17613

Guest
Any idea how to add link to Alliance forum and link to messages?
 

DeletedUser27700

Guest
I am not sure its possible, or necessary really.
Your alliance forum is at the bottom of the screen at all times, so why would you want it at the top as well?
 

DeletedUser17613

Guest
My problem is that bottom menu is not working on iPad and through the quickbar I can make it availabe ...
 

DeletedUser27700

Guest
That is a known problem and has been discussed HERE.

Please have a look at that, it should resolve that problem.
 

DeletedUser17613

Guest
Unbelievable, but its really true ... sound settings make the difference !!!

MANY THANKS !!!
 

DeletedUser

Guest
Try this it worked for me:

javascript:Layout.buildingWindow.open('place',{},'Simulator')

Note the capital S in Simulator.
 

DeletedUser

Guest
Is there any way to implement other items in the quickbar, such as the administrator tools?
 

DeletedUser19042

Guest
You can. But you would need to get the javascript code. :)

Send the creators of this a message and they'll be able to help you further.
 

DeletedUser

Guest
Thats made such a difference to my mouse clicks lol,

Thanks loads for this!

Rep to the Fist of the North Star!
 

DeletedUser

Guest
Just a question really, Has anybody noticed that "Miscellaneous" function a bit temperamental?

It takes about 10 times hovering over it sometimes before you can actually access a function. I've noticed when you are over certain objects it does it but other times it does it on its own too.

Any bug fixes etc for it?
 

DeletedUser

Guest
cities list

Trying to get the 'cities list' javascript code right.

The Farm overview works fine so I've tried variations on the following with no success:

javascript:Layout.wnd.Create(Layout.wnd.TYPE_TOWN_OVERVIEW,"towns_overview");void(0)

Could anyone help me to correct this?
 

DeletedUser

Guest
Trying to get the 'cities list' javascript code right.

The Farm overview works fine so I've tried variations on the following with no success:

javascript:Layout.wnd.Create(Layout.wnd.TYPE_TOWN_OVERVIEW,"towns_overview");void(0)

Could anyone help me to correct this?

Which one are you referring to exactly? Are you referring to the drop down menu that pops out when you click the city name on the upper left?
 
Top