Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from cbeck88/wmi_items_preference
add adv. preference for number of menu items displayed at once, and remaining fixups there
- Loading branch information
Showing
8 changed files
with
217 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
{GENERIC_UNIT_TEST "test_max_menu_items" ( | ||
[event] | ||
name=side 1 turn | ||
first_time_only=no | ||
{VARIABLE current_side 1} | ||
[/event] | ||
[event] | ||
name=side 2 turn | ||
first_time_only=no | ||
{VARIABLE current_side 2} | ||
[/event] | ||
[event] | ||
name=start | ||
[set_menu_item] | ||
id=bar1 | ||
description=foo1 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar2 | ||
description=foo2 | ||
[show_if] | ||
{VARIABLE_CONDITIONAL current_side equals 1} | ||
[/show_if] | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar3 | ||
description=foo3 | ||
[command] | ||
[chat] | ||
message="ASDFSAASDF" | ||
[/chat] | ||
[/command] | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar4 | ||
description=foo4 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar5 | ||
description=foo5 | ||
[show_if] | ||
{VARIABLE_CONDITIONAL current_side equals 1} | ||
[/show_if] | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar6 | ||
description=foo6 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar7 | ||
description=foo7 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar8 | ||
description=foo8 | ||
[/set_menu_item] | ||
[clear_menu_item] | ||
id=bar5 | ||
[/clear_menu_item] | ||
[set_menu_item] | ||
id=bar9 | ||
description=foo9 | ||
[show_if] | ||
{VARIABLE_CONDITIONAL current_side equals 1} | ||
[/show_if] | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar10 | ||
description=foo10 | ||
[show_if] | ||
{VARIABLE_CONDITIONAL current_side equals 1} | ||
[/show_if] | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar12 | ||
description=foo12 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar13 | ||
description=foo13 | ||
[command] | ||
[chat] | ||
message="ASDFSAASDF" | ||
[/chat] | ||
[/command] | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar14 | ||
description=foo14 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar15 | ||
description=foo15 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar16 | ||
description=foo16 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar17 | ||
description=foo17 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar18 | ||
description=foo18 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar19 | ||
description=foo19 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar20 | ||
description=foo20 | ||
[/set_menu_item] | ||
[set_menu_item] | ||
id=bar21 | ||
description=foo21 | ||
[/set_menu_item] | ||
[/event] | ||
)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters