[[Hotkey improvements]]

* added several default hotkeys

* changed the hotkey for 'Delay Shroud Update' from 'ctrl+k' to 'D'

* moved the hotkey definitions into its own file

* made the indentation of game.cfg consistent
This commit is contained in:
Gunter Labes 2006-06-10 19:36:45 +00:00
parent 0233c52c23
commit 961b650223
2 changed files with 495 additions and 446 deletions

View File

@ -31,495 +31,115 @@
{campaigns}
[advanced_preference]
field=compress_saves
name=_"Binary Saves"
type=boolean
default=yes
field=compress_saves
name=_"Binary Saves"
type=boolean
default=yes
[/advanced_preference]
[advanced_preference]
field=show_combat
name=_"Show Combat"
type=boolean
default=yes
field=show_combat
name=_"Show Combat"
type=boolean
default=yes
[/advanced_preference]
[advanced_preference]
field=mouse_scrolling
name=_"Mouse Scrolling"
type=boolean
default=yes
field=mouse_scrolling
name=_"Mouse Scrolling"
type=boolean
default=yes
[/advanced_preference]
[game_config]
base_income=2
village_income=1
poison_amount=8
rest_heal_amount=2
recall_cost=20
kill_experience=8
base_income=2
village_income=1
poison_amount=8
rest_heal_amount=2
recall_cost=20
kill_experience=8
title="maps/wesnoth.png"
logo="misc/logo.png"
icon="wesnoth-icon.png"
title_music="main_menu_new.ogg"
anonymous_music="main_menu_new.ogg"
victory_music="victory.ogg"
defeat_music="defeat.ogg"
title="maps/wesnoth.png"
logo="misc/logo.png"
icon="wesnoth-icon.png"
title_music="main_menu_new.ogg"
anonymous_music="main_menu_new.ogg"
victory_music="victory.ogg"
defeat_music="defeat.ogg"
buttons_x=760
buttons_y=330
buttons_padding=20
logo_x=292
logo_y=120
tip_x=100
tip_y=500
tip_width=495
tip_padding=20
buttons_x=760
buttons_y=330
buttons_padding=20
logo_x=292
logo_y=120
tip_x=100
tip_y=500
tip_width=495
tip_padding=20
map_image="maps/wesnoth.png"
sidebar_image="misc/rightside.png"
sidebar_image_bottom="misc/rightside-bottom.png"
map_image="maps/wesnoth.png"
sidebar_image="misc/rightside.png"
sidebar_image_bottom="misc/rightside-bottom.png"
energy_image="misc/bar-energy.png"
moved_ball_image="misc/ball-moved.png"
unmoved_ball_image="misc/ball-unmoved.png"
partmoved_ball_image="misc/ball-partmoved.png"
enemy_ball_image="misc/ball-enemy.png"
ally_ball_image="misc/ball-ally.png"
flag_image="terrain/flag-1.png:150,terrain/flag-2.png:150"
energy_image="misc/bar-energy.png"
moved_ball_image="misc/ball-moved.png"
unmoved_ball_image="misc/ball-unmoved.png"
partmoved_ball_image="misc/ball-partmoved.png"
enemy_ball_image="misc/ball-enemy.png"
ally_ball_image="misc/ball-ally.png"
flag_image="terrain/flag-1.png:150,terrain/flag-2.png:150"
cross_image="misc/cross.png"
dot_image="misc/dot.png"
cross_image="misc/cross.png"
dot_image="misc/dot.png"
footprint_left_nw=misc/foot-left-nw.png,misc/foot-left-nw-slow.png
footprint_left_n=misc/foot-left-n.png,misc/foot-left-n-slow.png
footprint_right_nw=misc/foot-right-nw.png,misc/foot-right-nw-slow.png
footprint_right_n=misc/foot-right-n.png,misc/foot-right-n-slow.png
footprint_left_nw=misc/foot-left-nw.png,misc/foot-left-nw-slow.png
footprint_left_n=misc/foot-left-n.png,misc/foot-left-n-slow.png
footprint_right_nw=misc/foot-right-nw.png,misc/foot-right-nw-slow.png
footprint_right_n=misc/foot-right-n.png,misc/foot-right-n-slow.png
missile_n_image=projectiles/missile-n.png
missile_ne_image=projectiles/missile-ne.png
missile_n_image=projectiles/missile-n.png
missile_ne_image=projectiles/missile-ne.png
terrain_mask_image=terrain/alphamask.png
terrain_mask_image=terrain/alphamask.png
observer_image=misc/eye.png
observer_image=misc/eye.png
download_campaign_image=""
download_campaign_image=""
level_image="misc/icon-advance.png"
level_image="misc/icon-advance.png"
ellipsis_image="misc/icon-ellipsis.png"
ellipsis_image="misc/icon-ellipsis.png"
{team_colors.cfg}
{team_colors.cfg}
[/game_config]
[textdomain]
name="wesnoth"
name="wesnoth"
[/textdomain]
[textdomain]
name="wesnoth-lib"
name="wesnoth-lib"
[/textdomain]
[textdomain]
name="wesnoth-editor"
name="wesnoth-editor"
[/textdomain]
[textdomain]
name="wesnoth-tutorial"
name="wesnoth-tutorial"
[/textdomain]
#ifdef APPLE
[hotkey]
command=preferences
key=p
cmd=yes
[/hotkey]
[hotkey]
command=undo
key=u
[/hotkey]
[hotkey]
command=redo
key=r
[/hotkey]
[hotkey]
command=recruit
key=r
cmd=yes
[/hotkey]
[hotkey]
command=repeatrecruit
key=R
cmd=yes
[/hotkey]
[hotkey]
command=recall
key=r
alt=yes
[/hotkey]
[hotkey]
command=cycle
key=n
[/hotkey]
[hotkey]
command=cycleback
key=N
[/hotkey]
[hotkey]
command=endunitturn
key=" "
[/hotkey]
[hotkey]
command=holdposition
key=" "
shift=yes
[/hotkey]
[hotkey]
command=leader
key=l
[/hotkey]
[hotkey]
command=zoomin
key=z
[/hotkey]
[hotkey]
command=zoomout
key=x
[/hotkey]
[hotkey]
command=zoomdefault
key=c
[/hotkey]
[hotkey]
command=fullscreen
key=f
cmd=yes
[/hotkey]
[hotkey]
command=accelerated
key=a
cmd=yes
[/hotkey]
[hotkey]
command=resistance
key=d
cmd=yes
[/hotkey]
[hotkey]
command=describeunit
key=d
[/hotkey]
[hotkey]
command=renameunit
key=n
cmd=yes
[/hotkey]
[hotkey]
command=terraintable
key=t
cmd=yes
[/hotkey]
[hotkey]
command=quit
key=q
cmd=yes
[/hotkey]
[hotkey]
command=save
key=s
cmd=yes
[/hotkey]
[hotkey]
command=load
key=o
cmd=yes
[/hotkey]
[hotkey]
command=statustable
key=s
alt=yes
[/hotkey]
[hotkey]
command=endturn
key=" "
alt=yes
[/hotkey]
[hotkey]
command=togglegrid
key=g
cmd=yes
[/hotkey]
[hotkey]
command=mousescroll
key=l
cmd=yes
[/hotkey]
[hotkey]
command=mute
key=m
cmd=yes
[/hotkey]
[hotkey]
command=labelterrain
key=l
alt=yes
[/hotkey]
[hotkey]
command=showenemymoves
key=v
cmd=yes
[/hotkey]
[hotkey]
command=bestenemymoves
key=b
cmd=yes
[/hotkey]
[hotkey]
command=toggleshroud
key=k
alt=yes
[/hotkey]
[hotkey]
command=updateshroud
key=k
cmd=yes
[/hotkey]
[hotkey]
command=speak
key=m
[/hotkey]
[hotkey]
command=continue
key=t
[/hotkey]
[hotkey]
command=search
key=/
[/hotkey]
[hotkey]
command=speaktoally
key=M
[/hotkey]
[hotkey]
command=speaktoall
key=m
alt=yes
[/hotkey]
[hotkey]
command=help
key=F1
[/hotkey]
[hotkey]
command=command
key=:
[/hotkey]
[hotkey]
command=objectives
key=j
cmd=yes
[/hotkey]
#else
[hotkey]
command=preferences
key=p
ctrl=yes
[/hotkey]
[hotkey]
command=undo
key=u
[/hotkey]
[hotkey]
command=redo
key=r
[/hotkey]
[hotkey]
command=recruit
key=r
ctrl=yes
[/hotkey]
[hotkey]
command=repeatrecruit
key=R
ctrl=yes
[/hotkey]
[hotkey]
command=recall
key=r
alt=yes
[/hotkey]
[hotkey]
command=cycle
key=n
[/hotkey]
[hotkey]
command=cycleback
key=N
[/hotkey]
[hotkey]
command=endunitturn
key=" "
[/hotkey]
[hotkey]
command=holdposition
key=" "
shift=yes
[/hotkey]
[hotkey]
command=leader
key=l
[/hotkey]
[hotkey]
command=zoomin
key=z
[/hotkey]
[hotkey]
command=zoomout
key=x
[/hotkey]
[hotkey]
command=zoomdefault
key=c
[/hotkey]
[hotkey]
command=fullscreen
key=f
ctrl=yes
[/hotkey]
[hotkey]
command=accelerated
key=a
ctrl=yes
[/hotkey]
[hotkey]
command=resistance
key=d
ctrl=yes
[/hotkey]
[hotkey]
command=describeunit
key=d
[/hotkey]
[hotkey]
command=renameunit
key=n
ctrl=yes
[/hotkey]
[hotkey]
command=terraintable
key=t
ctrl=yes
[/hotkey]
[hotkey]
command=quit
key=q
ctrl=yes
[/hotkey]
[hotkey]
command=save
key=s
ctrl=yes
[/hotkey]
[hotkey]
command=load
key=o
ctrl=yes
[/hotkey]
[hotkey]
command=statustable
key=s
alt=yes
[/hotkey]
[hotkey]
command=endturn
key=" "
alt=yes
[/hotkey]
[hotkey]
command=togglegrid
key=g
ctrl=yes
[/hotkey]
[hotkey]
command=mousescroll
key=l
ctrl=yes
[/hotkey]
[hotkey]
command=mute
key=m
ctrl=yes
[/hotkey]
[hotkey]
command=labelterrain
key=l
alt=yes
[/hotkey]
[hotkey]
command=showenemymoves
key=v
ctrl=yes
[/hotkey]
[hotkey]
command=bestenemymoves
key=b
ctrl=yes
[/hotkey]
[hotkey]
command=toggleshroud
key=k
alt=yes
[/hotkey]
[hotkey]
command=updateshroud
key=k
ctrl=yes
[/hotkey]
[hotkey]
command=speak
key=m
[/hotkey]
[hotkey]
command=continue
key=t
[/hotkey]
[hotkey]
command=search
key=/
[/hotkey]
[hotkey]
command=speaktoally
key=M
[/hotkey]
[hotkey]
command=speaktoall
key=m
alt=yes
[/hotkey]
[hotkey]
command=help
key=F1
[/hotkey]
[hotkey]
command=command
key=:
[/hotkey]
[hotkey]
command=objectives
key=j
ctrl=yes
[/hotkey]
#endif
{hotkeys.cfg}
{units.cfg}
#ifdef TUTORIAL
{tutorial/scenarios}
[binary_path]
path=data/tutorial
path=data/tutorial
[/binary_path]
[+units]
{tutorial/units}
{tutorial/units}
[/units]
{tutorial/units}
#endif
{scenario-test.cfg}

429
data/hotkeys.cfg Normal file
View File

@ -0,0 +1,429 @@
#ifdef APPLE
[hotkey]
command=accelerated
key=a
cmd=yes
[/hotkey]
[hotkey]
command=bestenemymoves
key=b
cmd=yes
[/hotkey]
[hotkey]
command=changeside
key=U
[/hotkey]
[hotkey]
alt=yes
command=chatlog
key=c
[/hotkey]
[hotkey]
command=clearlabels
cmd=yes
key=c
[/hotkey]
[hotkey]
command=createunit
key=C
[/hotkey]
[hotkey]
command=command
key=:
[/hotkey]
[hotkey]
command=continue
key=t
[/hotkey]
[hotkey]
command=cycle
key=n
[/hotkey]
[hotkey]
command=cycleback
key=N
[/hotkey]
[hotkey]
command=delayshroud
key=D
[/hotkey]
[hotkey]
command=describeunit
key=d
[/hotkey]
[hotkey]
command=endunitturn
key=" "
[/hotkey]
[hotkey]
command=endturn
key=" "
alt=yes
[/hotkey]
[hotkey]
command=fullscreen
key=f
cmd=yes
[/hotkey]
[hotkey]
command=help
key=F1
[/hotkey]
[hotkey]
command=holdposition
key=" "
shift=yes
[/hotkey]
[hotkey]
command=labelterrain
key=l
alt=yes
[/hotkey]
[hotkey]
command=leader
key=l
[/hotkey]
[hotkey]
command=load
key=o
cmd=yes
[/hotkey]
[hotkey]
command=mousescroll
key=l
cmd=yes
[/hotkey]
[hotkey]
command=mute
key=m
cmd=yes
[/hotkey]
[hotkey]
command=objectives
key=j
cmd=yes
[/hotkey]
[hotkey]
command=preferences
key=p
cmd=yes
[/hotkey]
[hotkey]
command=quit
key=q
cmd=yes
[/hotkey]
[hotkey]
command=recall
key=r
alt=yes
[/hotkey]
[hotkey]
command=recruit
key=r
cmd=yes
[/hotkey]
[hotkey]
command=redo
key=r
[/hotkey]
[hotkey]
command=renameunit
key=n
cmd=yes
[/hotkey]
[hotkey]
command=repeatrecruit
key=R
cmd=yes
[/hotkey]
[hotkey]
command=save
key=s
cmd=yes
[/hotkey]
[hotkey]
command=search
key=/
[/hotkey]
[hotkey]
command=showenemymoves
key=v
cmd=yes
[/hotkey]
[hotkey]
command=speak
key=m
[/hotkey]
[hotkey]
command=speaktoall
key=m
alt=yes
[/hotkey]
[hotkey]
command=speaktoally
key=M
[/hotkey]
[hotkey]
command=statistics
key=s
[/hotkey]
[hotkey]
command=statustable
key=s
alt=yes
[/hotkey]
[hotkey]
command=togglegrid
key=g
cmd=yes
[/hotkey]
[hotkey]
command=toggleshroud
key=k
alt=yes
[/hotkey]
[hotkey]
command=undo
key=u
[/hotkey]
[hotkey]
alt=yes
command=unitlist
key=u
[/hotkey]
[hotkey]
command=updateshroud
key=S
cmd=yes
[/hotkey]
[hotkey]
command=zoomdefault
key=c
[/hotkey]
[hotkey]
command=zoomin
key=z
[/hotkey]
[hotkey]
command=zoomout
key=x
[/hotkey]
#else
[hotkey]
command=accelerated
key=a
ctrl=yes
[/hotkey]
[hotkey]
command=bestenemymoves
key=b
ctrl=yes
[/hotkey]
[hotkey]
command=changeside
key=U
[/hotkey]
[hotkey]
alt=yes
command=chatlog
key=c
[/hotkey]
[hotkey]
command=clearlabels
ctrl=yes
key=c
[/hotkey]
[hotkey]
command=createunit
ctrl=yes
key=C
[/hotkey]
[hotkey]
command=continue
key=t
[/hotkey]
[hotkey]
command=command
key=:
[/hotkey]
[hotkey]
command=cycle
key=n
[/hotkey]
[hotkey]
command=cycleback
key=N
[/hotkey]
[hotkey]
command=delayshroud
key=D
[/hotkey]
[hotkey]
command=describeunit
key=d
[/hotkey]
[hotkey]
command=endunitturn
key=" "
[/hotkey]
[hotkey]
command=endturn
key=" "
alt=yes
[/hotkey]
[hotkey]
command=fullscreen
key=f
ctrl=yes
[/hotkey]
[hotkey]
command=help
key=F1
[/hotkey]
[hotkey]
command=holdposition
key=" "
shift=yes
[/hotkey]
[hotkey]
command=labelterrain
key=l
alt=yes
[/hotkey]
[hotkey]
command=leader
key=l
[/hotkey]
[hotkey]
command=load
key=o
ctrl=yes
[/hotkey]
[hotkey]
command=mousescroll
key=l
ctrl=yes
[/hotkey]
[hotkey]
command=mute
key=m
ctrl=yes
[/hotkey]
[hotkey]
command=objectives
key=j
ctrl=yes
[/hotkey]
[hotkey]
command=preferences
key=p
ctrl=yes
[/hotkey]
[hotkey]
command=quit
key=q
ctrl=yes
[/hotkey]
[hotkey]
command=recall
key=r
alt=yes
[/hotkey]
[hotkey]
command=recruit
key=r
ctrl=yes
[/hotkey]
[hotkey]
command=redo
key=r
[/hotkey]
[hotkey]
command=renameunit
key=n
ctrl=yes
[/hotkey]
[hotkey]
command=repeatrecruit
key=R
ctrl=yes
[/hotkey]
[hotkey]
command=resistance
key=d
ctrl=yes
[/hotkey]
[hotkey]
command=save
key=s
ctrl=yes
[/hotkey]
[hotkey]
command=search
key=/
[/hotkey]
[hotkey]
command=showenemymoves
key=v
ctrl=yes
[/hotkey]
[hotkey]
command=speak
key=m
[/hotkey]
[hotkey]
command=speaktoall
key=m
alt=yes
[/hotkey]
[hotkey]
command=speaktoally
key=M
[/hotkey]
[hotkey]
command=statistics
key=s
[/hotkey]
[hotkey]
command=statustable
key=s
alt=yes
[/hotkey]
[hotkey]
command=togglegrid
key=g
ctrl=yes
[/hotkey]
[hotkey]
command=undo
key=u
[/hotkey]
[hotkey]
alt=yes
command=unitlist
key=u
[/hotkey]
[hotkey]
command=updateshroud
key=S
[/hotkey]
[hotkey]
command=zoomdefault
key=c
[/hotkey]
[hotkey]
command=zoomin
key=z
[/hotkey]
[hotkey]
command=zoomout
key=x
[/hotkey]
#endif