Missing contextual-menu option?

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderators: Forum Moderators, Developers

Forum rules
Before posting a new idea, you must read the following:
Post Reply
Eponymous-Archon
Posts: 558
Joined: February 1st, 2004, 6:17 pm
Location: New Jersey, USA

Missing contextual-menu option?

Post by Eponymous-Archon »

I like to use my mouse. I can sit back in my chair, with my beverage of choice in my left hand and my right on the mouse. I can do everything this way once the game starts...but move to the next unit. For that, I need the keyboard.

So I would request having "Next unit" added to the CM.

What do others think?
The Eponymous Archon

Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

We may consider adding it, but FYI, it's fairly easy to add yourself -- just edit data/themes/default.cfg, and go down to the [menu] tag for the context menu. I.e. the one that looks like this:

Code: Select all

        [menu]
        is_context_menu=true
        items=describeunit,speak,recruit,recall,createunit,endturn
        [/menu]
Just add to the list of items 'cycle'.

It's being able to show off cool things like this that makes a theming system seem all worth while :)

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming

Eponymous-Archon
Posts: 558
Joined: February 1st, 2004, 6:17 pm
Location: New Jersey, USA

Post by Eponymous-Archon »

Dave wrote:It's being able to show off cool things like this that makes a theming system seem all worth while :)
Indeed, I'll try this. Any docs on what else one might add to this menu?
The Eponymous Archon

Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

Eponymous-Archon wrote: Indeed, I'll try this. Any docs on what else one might add to this menu?
Uhh...see src/hotkeys.cpp in the function 'string_to_command' :)

Code: Select all

		m.insert(val("cycle",HOTKEY_CYCLE_UNITS));
		m.insert(val("endunitturn",HOTKEY_END_UNIT_TURN));
		m.insert(val("leader",HOTKEY_LEADER));
		m.insert(val("undo",HOTKEY_UNDO));
		m.insert(val("redo",HOTKEY_REDO));
		m.insert(val("zoomin",HOTKEY_ZOOM_IN));
		m.insert(val("zoomout",HOTKEY_ZOOM_OUT));
		m.insert(val("zoomdefault",HOTKEY_ZOOM_DEFAULT));
		m.insert(val("fullscreen",HOTKEY_FULLSCREEN));
		m.insert(val("accelerated",HOTKEY_ACCELERATED));
		m.insert(val("resistance",HOTKEY_ATTACK_RESISTANCE));
		m.insert(val("terraintable",HOTKEY_TERRAIN_TABLE));
		m.insert(val("describeunit",HOTKEY_UNIT_DESCRIPTION));
		m.insert(val("renameunit",HOTKEY_RENAME_UNIT));
		m.insert(val("save",HOTKEY_SAVE_GAME));
		m.insert(val("recruit",HOTKEY_RECRUIT));
		m.insert(val("repeatrecruit",HOTKEY_REPEAT_RECRUIT));
		m.insert(val("recall",HOTKEY_RECALL));
		m.insert(val("endturn",HOTKEY_ENDTURN));
		m.insert(val("togglegrid",HOTKEY_TOGGLE_GRID));
		m.insert(val("statustable",HOTKEY_STATUS_TABLE));
		m.insert(val("mute",HOTKEY_MUTE));
		m.insert(val("speak",HOTKEY_SPEAK));
		m.insert(val("createunit",HOTKEY_CREATE_UNIT));
		m.insert(val("preferences",HOTKEY_PREFERENCES));
		m.insert(val("objectives",HOTKEY_OBJECTIVES));
		m.insert(val("unitlist",HOTKEY_UNIT_LIST));
		m.insert(val("quit",HOTKEY_QUIT_GAME));
Those are all the possible things you can add to the menu. (Note that they generally won't be displayed unless they're possible to use -- e.g. 'undo' won't be displayed unless there's a command you can undo).

David

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming

Post Reply