Widget Idea: Bind for temp minimap enlargement

Widget Idea: Bind for temp minimap enlargement

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
BattleShorts
Posts: 11
Joined: 19 Aug 2005, 09:26

Widget Idea: Bind for temp minimap enlargement

Post by BattleShorts »

Hi

My idea is for a widget that allows you to bind a key to toggle between the current minimap size and a larger one (say 1/3 of the screen wide).

If someone good give me a few pointers on this and widget coding in general I'll give it a try. Or if someone wants to make it that'd be much appreciated.

Cheers
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

You can bind maximizing the minimap to a key set:

Code: Select all

minimap <"max" | "maximize"> [0|1]
is done like this

Code: Select all

bind 		  Meta+tab   minimap max
in uikeys.txt but to use that key combo, you need to set meta to space:

Code: Select all

fakemeta 0x020
And unbind any+tab and rebind only tab to toggleoverview

Code: Select all

unbind            Any+tab    toggleoverview
bind                  tab    toggleoverview
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

press tab
BattleShorts
Posts: 11
Joined: 19 Aug 2005, 09:26

Post by BattleShorts »

Cheers LordMatt
Post Reply

Return to “Lua Scripts”