Add WMI hotkey testcases

This commit is contained in:
Alexander van Gessel 2013-09-29 15:45:31 +02:00
parent 1c5fc2dcd5
commit 1bb0e94d87

View file

@ -3673,6 +3673,67 @@ unplagueable: %s"
id=assert
name="Neutral healer guy"
[/unit]
[set_menu_item]
description = "Menu 1"
id = "Menu_1"
[show_if]
[have_unit]
x,y=$x1,$y1
side=$side_number
[not]
[filter_wml]
attacks_left=0
[/filter_wml]
[/not]
[/have_unit]
[/show_if]
[filter_location]
terrain=C*,C*^*,*^C*,K*,K*^*,*^K*
[/filter_location]
[command]
[message]
message = "Menu 1(only clickable on own units on castle terrain)"
[/message]
[/command]
[/set_menu_item]
[set_menu_item]
description = "Menu 2"
id = "Menu_2"
use_hotkey = no
[show_if]
[have_unit]
x,y=$x1,$y1
side=$side_number
[/have_unit]
[/show_if]
[command]
[message]
message = "Menu 2 (use_hotkey = no so i cannot assign hotkeys to it)"
[/message]
[/command]
[/set_menu_item]
[set_menu_item]
description = "menu 3"
id = "menu_3"
[default_hotkey]
key="f6"
[/default_hotkey]
[command]
[message]
message = "menu 3 default f6"
[/message]
[/command]
[/set_menu_item]
[set_menu_item]
description = "menu 4"
id = "menu 4"
use_hotkey = "only"
[command]
[message]
message = "menu 4, only acessible via hotkeys"
[/message]
[/command]
[/set_menu_item]
[/event]
[/test]