ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Mon Mar 01, 2021 4:26 pm

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [v1.3.0+] Menu Keys
PostPosted: Wed Jan 29, 2020 1:42 am 
Sher'Tul Godslayer

Joined: Thu Jan 23, 2003 8:13 pm
Posts: 1993
Location: A shallow water area south of Bree
Inspired by an idea on the Steam forum, I've whipped up a quick Menu Keys addon which adds shortcut keys to the <Esc> game menu. We add mnemonics for all the actions defined by the engine and the game module, and addons that add actions to the game menu via the Game:alterGameMenu hook can also specify their preferred mnemonic in the action definition:
class:bindHook('Game:alterGameMenu', function(self, data)[] = {
    -- The usual stuff for adding a game menu action.
    "Do a Thing",
    function() do_thing() end,
    -- Your preferred mnemonic.
    mnemonic = 'T',

In particular, by the time you see this, I should have updated releases of Go to Landmark and Savefile Notes that define mnemonics for their respective game menu actions.

[And looking ahead, this seems like an obvious candidate for eventual inclusion in a future version of ZOmnibus.]

"Blessed are the yeeks, for they shall inherit Arda..."

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group