Jump to content

Horizontal Menu Bar


Recommended Posts

Task: Horizontal Sidebar



Whilst experimenting, has anyone ever managed to get a functioning horizontal sidebar? I created a mock up recently and I've been experimenting with it since. I am halfway there though I've hit a snag.

The first image I have attached is the mock up and the second is what I have achieved so far.


What I did initially:

  • I created a 36x36 container and put the sidebar widget from 'client object browser' into it.
  • I used the inset method to adjust which portion of the sidebar is visible so as to get a different icon in each 36x36 container.
  • The buttons work and you can navigate as normal.


The Problem:

  • As the 'sidebar menu table' is inside a tabbed container for when you are in charge of both a club and a national side, the widget/tab doesn't refresh properly and so you can't switch back and forth between club and country.
  • Additionally, as the national sidebar is slightly different from the club sidebar, the insets for the club sidebar do not match the ones for the national sidebar.


New Developments:

The container/inset method was interesting, though not a great solution to the overall problem. Instead, a search has begun for all event_id/event_target pairings in order to create a horizontal sidebar.


Important ID's still missing:

  • Competition Overview
  • Development Centre
  • All National Icons (Except National Pool)


EDIT: Below are all the event_ids and their event_targets discovered for buttons within the game:


Action					Click  Event / Target
Ask To Print      			<event id="click_event" event_id="APRN"/>
Bookmarks      				<event id="click_event" event_id="ADBK" event_target="scrC"/>
Change User       			<event id="click_event" event_id="CPLR" event_target="glob"/>
Club Info				<event id="click_event" event_id="sINF" event_target="scrC" />
Club Vision				<event id="click_event" event_id="GBOR" event_target="glob" />
Continue Game      			<event id="click_event" event_id="sCNT" event_target="scrC"/>
Copy      				<event id="click_event" event_id="COPY"/>
Create Note      			<event id="click_event" event_id="CRNO" event_target="scrC"/>
Cut      				<event id="click_event" event_id="CUT"/>
Dynamics      				<event id="click_event" event_id="stDY" event_target="scrC"/>
Exit      				<event id="click_event" event_id="QUIT" event_target="scrC"/>
Finances: Expenditure   		<event id="click_event" event_id="sfEX" event_target="scrC"/>
Finances: Income      			<event id="click_event" event_id="sfIN" event_target="scrC"/>
Finances: Projection    		<event id="click_event" event_id="sfPR" event_target="scrC"/>
Finances: Salary      			<event id="click_event" event_id="sfSL" event_target="scrC"/>
Finances: Summary      			<event id="click_event" event_id="GMFI" event_target="glob"/>
Fixtures      				<event id="click_event" event_id="sFIX" event_target="scrC"/>
Fixtures & Results			<event id="click_event" event_id="GCMq" event_target="glob" />
Focus Backward      			<event id="click_event" event_id="sfBW"/>
Focus Forward      			<event id="click_event" event_id="sfFW"/>
Game Status				<event id="click_event" event_id="GDES" event_target="glob" />
Game Status      			<event id="click_event" event_id="sGST" event_target="scrC"/>
Go To Main Menu       			<event id="click_event" event_id="MAMR" event_target="scrC"/>
Help      				<event id="click_event" event_id="sHLP" event_target="scrC"/>
Home					<event id="click_event" event_id="HOME" event_target="scrC" />
Manager Home      			<event id="click_event" event_id="GCMH" event_target="glob"/>
Inbox      				<event id="click_event" event_id="INBX" event_target="scrC"/>
Job Centre      			<event id="click_event" event_id="GCJC" event_target="glob"/>
League Table      			<event id="click_event" event_id="GCMC" event_target="glob"/>
League Table (Different ID)		<event id="click_event" event_id="GCDR" event_target="glob" />
Load Game      				<event id="click_event" event_id="OPN?" event_target="glob"/>
Manager Home				<event id="click_event" event_id="GCMH" event_target="glob" />
Match Preparation      			<event id="click_event" event_id="GMMP" event_target="glob"/>
Match Speed - Fast      		<event id="click_event" event_id="msFA" event_target="glob"/>
Match Speed - Medium      		<event id="click_event" event_id="msME" event_target="glob"/>
Match Speed - Slow      		<event id="click_event" event_id="msSL" event_target="glob"/>
Medical Centre				<event id="click_event" event_id="stMC" event_target="scrC" />
Move Rail Cam Left      		<event id="click_event" event_id="stRL" event_target="scrC"/>
Move Rail Cam Right      		<event id="click_event" event_id="stRR" event_target="scrC"/>
New Game      				<event id="click_event" event_id="NEW " event_target="glob"/>
New User / New Game/ Add Manager	<event id="click_event" event_id="ADDM" event_target="glob"/>
News Overview      			<event id="click_event" event_id="GCNE" event_target="scrC"/>
Paste      				<event id="click_event" event_id="PAST"/>
Player Instructions			<event id="click_event" event_id="GPLI" event_target="glob" />
Player Search				<event id="click_event" event_id="GPLS" event_target="glob" />
Preferences      			<event id="click_event" event_id="sPRF" event_target="scrC"/>
Quick Search Dialog      		<event id="click_event" event_id="PLse" event_target="scrC"/>
Quickflick Next      			<event id="click_event" event_id="stNQ" event_target="brow"/>
Quickflick Previous      		<event id="click_event" event_id="stPQ" event_target="brow"/>
Reload Skin      			<event id="click_event" event_id="sRDS" event_target="scrC"/>
Reset Zoom      			<event id="click_event" event_id="stRZ" event_target="scrC"/>
Resume Last Game      			<event id="click_event" event_id="RLGA" event_target="glob"/>
Save      				<event id="click_event" event_id="SAVE" event_target="glob"/>
Save As      				<event id="click_event" event_id="SAVA" event_target="glob"/>
Schedule				<event id="click_event" event_id="GCCA" event_target="glob" />
Scout Knowledge      			<event id="click_event" event_id="stSK" event_target="scrC"/>
Scout Search      			<event id="click_event" event_id="GMSC" event_target="glob"/>
Scouting Knowledge			<event id="click_event" event_id="stSK" event_target="scrC" />
Screen History Backward      		<event id="click_event" event_id="shBW" event_target="brow"/>
Screen History Forward      		<event id="click_event" event_id="shFW" event_target="brow"/>
Screenshot      			<event id="click_event" event_id="SCSH"/>
Second Managed Team			<event id="click_event" event_id="GCSS" event_target="glob" />
Select All      			<event id="click_event" event_id="ALL"/>
Send Message (Multiplayer)      	<event id="click_event" event_id="SMAH" event_target="scrC"/>
Set Pieces      			<event id="click_event" event_id="GSEP" event_target="glob"/>
Shortlist      				<event id="click_event" event_id="GCSH" event_target="glob"/>
Staff					<event id="click_event" event_id="sSTF" event_target="scrC" />
Subscribe/Unsubscribe To Object 	<event id="click_event" event_id="stSU" event_target="brow"/>
Tactics      				<event id="click_event" event_id="GCMT" event_target="glob"/>
Team Report				<event id="click_event" event_id="GCMr" event_target="glob" />
Team/Squad      			<event id="click_event" event_id="GCMS" event_target="glob"/>
Toggle Full Screen      		<event id="click_event" event_id="FULL"/>
Training: Team      			<event id="click_event" event_id="stTM" event_target="scrC"/>
Transfer Centre      			<event id="click_event" event_id="stTC" event_target="scrC"/>
Transfers      				<event id="click_event" event_id="sTRN" event_target="scrC"/>
Undo      				<event id="click_event" event_id="UNDO" event_target="glob"/>
World Overview      			<event id="click_event" event_id="stWO" event_target="scrC"/>
World Transfers      			<event id="click_event" event_id="sWTR" event_target="scrC"/>
Zoom In      				<event id="click_event" event_id="stZI" event_target="scrC"/>
Zoom Out      				<event id="click_event" event_id="stZO" event_target="scrC"/>
Team Confidence				<event id="click_event" event_id="stcn" event_target="scrC" />
National Pool				<event id="click_event" event_id="GMNP" event_target="glob" />




Edited by Guest
Additional Information
Link to post
Share on other sites

@wkdsoul Cheers for the info fella. Yeah it seems as though changing the existing menu is out of the question. However I have made considerable progress.


@bluestillidie00 It may be possible after all. I have managed to put together an entire row of working icons except for "Competitions" and "Development Centre". Once I have the event ID's for them, we'll be in business.


Using all of the ID's I have. I can try and guess the remaining two IDs but that has been troublesome so far.


Finally, this is only half the battle as we would also need event IDs for all of the National Team sidebar icons. Once all icon IDs have been acquired, a tab container can be used to switch between the icon sets for National and International management if dual managing.


It's still a work in progress but bit by bit I'm getting there.


Link to post
Share on other sites

Unfortunately so @Wozzie. As of several minutes ago I have checked every single XML file possible, including every one in the Football Manager 2020 Program Files folder. I even checked the App Data at App Data/Local/Sports Interactive and there's nothing listed anywhere. I can however tell you in case you are interested, the event_id and event_target pairings I have so far came from the shortcut_entries.xml.

I had a brainwave and thought that there must be a list of the event_ids for the shortcuts and I was right. Listed in there is an event_id and event_target for most sidebar buttons as well as some extras, though it is missing a few key ones.

Edited by Guest
Link to post
Share on other sites

Haha @wkdsoul I did this morning 😂 I added them all on Twitter and politely asked a couple if they could lend me a hand. I do however think that their workload will be pretty high if they have only just gone back after COVID.


Fingers crossed though. Till then, it's trial and error. I'm generating several hundred buttons at a time and clicking them one by one to see which ones work. I've identified a couple other ID's that way but not the ones I'm after. Could be a while. Should be ready for FM21 😂

Link to post
Share on other sites

@wkdsoul Haha you found it too. Annoyingly, whilst testing, I realised that it doesn't lead to the true Competition Overview. It takes you to your domestic league table which is somewhat of a sub section. Same as:

<event id="click_event" event_id="GCDR" event_target="glob" />

GCMS and GCDR both lead to almost the same place. Quite bizarre, It is however an option. I have now tested over 3000 buttons and will perhaps wait on an answer from one of the Devs on Twitter. I am now in conversation with one of the lovely chaps at SI and he said he'll get back to me properly tomorrow/over the weekend.


In the meanwhile if you find any more, take note of them and I'll pool them all together and add them to the initial post for others to see.

EDIT: I have now added to the initial post, all of event_id/event_target pairings discovered so far in this thread.

Edited by Guest
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...