Long hotkeys

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
khonkhortisan
Low Yeek
Posts: 7
Joined: Tue Aug 20, 2013 1:25 am

Long hotkeys

#1 Post by khonkhortisan »

I'm using numpad for movement. I never run, though if I would, I would use numpad dot first. I moved all my hotkeys from the numbers to the numpad. The hotkeys are written right-aligned, and go much past the left side of the icons at both 32px and 64px.
I changed "[A]+[S]+Keypad +" to "ASK+" by changing game/engines/te4-1.0.4.teae/engine/KeyBind.lua to read

Code: Select all

if ctrl then sym = "C"..sym end
if shift then sym = "S"..sym end
if alt then sym = "A"..sym end
if meta then sym = "M"..sym end
sym = string.gsub(sym,"Keypad ","K")
This is a hack, and not the correct way to fix it. However, a visual change like this "offlines" the game, even when compressed again. Maybe hotkeys should bounce sideways like other text does when oversize.
Image
Image

Crim, The Red Thunder
Sher'Tul Godslayer
Posts: 2000
Joined: Fri May 07, 2004 8:26 pm
Location: Nahgharash

Re: Long hotkeys

#2 Post by Crim, The Red Thunder »

Or just adopt his ASK labels into maingame. Certainly fits better. And having ctrl and alt versions of talents be right there on your movement keys, might actually be rather efficient.
Currently playing under the name Aura of the Dawn 4 down, 227 to go!
Proud author of Orc Pit Restoration Project, Faction Allies, Dwarven Adventurer addons
SadistSquirrel wrote:DarkGod has two arms, one with an opened hand, one with a closed fist. You got the fist.

khonkhortisan
Low Yeek
Posts: 7
Joined: Tue Aug 20, 2013 1:25 am

Re: Long hotkeys

#3 Post by khonkhortisan »

I couldn't get an addon to over/superload engine/KeyBind.lua, so I just resized the hotbar so I could still tell what everything was (12x5)
Now my game is validated again and somewhat usable.
Image

khonkhortisan
Low Yeek
Posts: 7
Joined: Tue Aug 20, 2013 1:25 am

Re: Long hotkeys

#4 Post by khonkhortisan »

I made it into a one-liner for the Lua Console

Code: Select all

game.engine.KeyBind.formatKeyString2=game.engine.KeyBind.formatKeyString;game.engine.KeyBind.formatKeyString=function(...)return string.gsub(string.gsub(string.gsub(string.gsub(string.gsub(game.engine.KeyBind.formatKeyString2(...),"%[C]%+","C"),"%[S]%+","S"),"%[A]%+","A"),"%[M]%+","M"),"Keypad ","K")end
and the antidote

Code: Select all

game.engine.KeyBind.formatKeyString=game.engine.KeyBind.formatKeyString2;game.engine.KeyBind.formatKeyString2=nil
...woohoo, it works as an addon!
http://te4.org/games/addons/tome/short-hotkeys

Zireael
Archmage
Posts: 449
Joined: Tue Jun 18, 2013 7:24 pm

Re: Long hotkeys

#5 Post by Zireael »

That's great!

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Long hotkeys

#6 Post by darkgod »

done
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply