summaryrefslogtreecommitdiff
path: root/src/setup
diff options
context:
space:
mode:
authorFabian Greffrath2014-03-13 07:25:31 +0100
committerFabian Greffrath2014-03-13 07:25:31 +0100
commitae2c47344237e341a979adba4b2a20b68e4de559 (patch)
treeb0ff4ab6bc4ecd4399f134dc25b4a5b8c51b69ce /src/setup
parentecf457ddcbf481b451f37474b057a06e7d843b66 (diff)
downloadchocolate-doom-ae2c47344237e341a979adba4b2a20b68e4de559.tar.gz
chocolate-doom-ae2c47344237e341a979adba4b2a20b68e4de559.tar.bz2
chocolate-doom-ae2c47344237e341a979adba4b2a20b68e4de559.zip
Allow to rebind artifact keys in Hexen.
Diffstat (limited to 'src/setup')
-rw-r--r--src/setup/keyboard.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/setup/keyboard.c b/src/setup/keyboard.c
index 0e576870..670f0c92 100644
--- a/src/setup/keyboard.c
+++ b/src/setup/keyboard.c
@@ -49,6 +49,10 @@ static int *controls[] = { &key_left, &key_right, &key_up, &key_down,
&key_weapon1, &key_weapon2, &key_weapon3,
&key_weapon4, &key_weapon5, &key_weapon6,
&key_weapon7, &key_weapon8,
+ &key_arti_all, &key_arti_health, &key_arti_poisonbag,
+ &key_arti_blastradius, &key_arti_teleport,
+ &key_arti_teleportother, &key_arti_egg,
+ &key_arti_invulnerability,
&key_prevweapon, &key_nextweapon, NULL };
static int *menu_nav[] = { &key_menu_activate, &key_menu_up, &key_menu_down,
@@ -184,7 +188,7 @@ static void ConfigExtraKeys(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(unused))
table = TXT_NewTable(2);
- TXT_SetColumnWidths(table, 20, 9);
+ TXT_SetColumnWidths(table, 21, 9);
if (extra_keys)
{
@@ -229,6 +233,20 @@ static void ConfigExtraKeys(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(unused))
{
AddKeyControl(table, "Use artifact", &key_useartifact);
}
+
+ if (gamemission == hexen)
+ {
+ AddSectionLabel(table, "Artifacts", true);
+
+ AddKeyControl(table, "One of each", &key_arti_all);
+ AddKeyControl(table, "Quartz Flask", &key_arti_health);
+ AddKeyControl(table, "Flechette", &key_arti_poisonbag);
+ AddKeyControl(table, "Disc of Repulsion", &key_arti_blastradius);
+ AddKeyControl(table, "Chaos Device", &key_arti_teleport);
+ AddKeyControl(table, "Banishment Device", &key_arti_teleportother);
+ AddKeyControl(table, "Porkalator", &key_arti_egg);
+ AddKeyControl(table, "Icon of the Defender", &key_arti_invulnerability);
+ }
}
else
{