make basicbutton no-key DRY
This commit is contained in:
@@ -12,18 +12,20 @@
|
||||
/// @file
|
||||
/// Preset button specifications for cThreeChoice
|
||||
|
||||
cKey no_key = {true,key_none,mod_none};
|
||||
|
||||
/// A list of preset button types.
|
||||
bbtt basic_buttons[71] = {
|
||||
{BTN_DONE, " ", {true,key_enter,mod_none}, "Done"},
|
||||
{BTN_REG, "OK", {true,key_enter,mod_none}},
|
||||
{BTN_REG, "Yes", {false,'y',mod_none}},
|
||||
{BTN_REG, "No", {false,'n',mod_none}},
|
||||
{BTN_REG, "Ask", {false,0,mod_none}},
|
||||
{BTN_REG, "Ask", no_key},
|
||||
{BTN_REG, "Keep", {false,'k',mod_none}},
|
||||
{BTN_REG, "Cancel", {true,key_esc,mod_none}},
|
||||
{BTN_REG, "Buy", {false,0,mod_none}},
|
||||
{BTN_REG, "Enter", {false,0,mod_none}},
|
||||
{BTN_REG, "Leave", {false,0,mod_none}},
|
||||
{BTN_REG, "Buy", no_key},
|
||||
{BTN_REG, "Enter", no_key},
|
||||
{BTN_REG, "Leave", no_key},
|
||||
{BTN_REG, "Get", {false,'g',mod_none}},
|
||||
{BTN_REG, "1", {false,'1',mod_none}},
|
||||
{BTN_REG, "2", {false,'2',mod_none}},
|
||||
@@ -31,58 +33,58 @@ bbtt basic_buttons[71] = {
|
||||
{BTN_REG, "4", {false,'4',mod_none}},
|
||||
{BTN_REG, "5", {false,'5',mod_none}},
|
||||
{BTN_REG, "6", {false,'6',mod_none}},
|
||||
{BTN_REG, "Cast", {false,0,mod_none}},
|
||||
{BTN_REG, "Save", {false,0,mod_none}},
|
||||
{BTN_REG, "Take", {false,0,mod_none}},
|
||||
{BTN_REG, "Stay", {false,0,mod_none}},
|
||||
{BTN_REG, "Steal", {false,0,mod_none}},
|
||||
{BTN_REG, "Attack", {false,0,mod_none}},
|
||||
{BTN_LG, "Step In", {false,0,mod_none}},
|
||||
{BTN_REG, "Climb", {false,0,mod_none}},
|
||||
{BTN_REG, "Flee", {false,0,mod_none}},
|
||||
{BTN_REG, "Onward", {false,0,mod_none}},
|
||||
{BTN_REG, "Answer", {false,0,mod_none}},
|
||||
{BTN_REG, "Drink", {false,0,mod_none}},
|
||||
{BTN_LG, "Approach", {false,0,mod_none}},
|
||||
{BTN_REG, "Land", {false,0,mod_none}},
|
||||
{BTN_REG, "Under", {false,0,mod_none}},
|
||||
{BTN_REG, "Quit", {false,0,mod_none}},
|
||||
{BTN_REG, "Rest", {false,0,mod_none}},
|
||||
{BTN_REG, "Read", {false,0,mod_none}},
|
||||
{BTN_REG, "Pull", {false,0,mod_none}},
|
||||
{BTN_REG, "Push", {false,0,mod_none}},
|
||||
{BTN_REG, "Pray", {false,0,mod_none}},
|
||||
{BTN_REG, "Wait", {false,0,mod_none}},
|
||||
{BTN_REG, "Give", {false,0,mod_none}},
|
||||
{BTN_REG, "Destroy", {false,0,mod_none}},
|
||||
{BTN_REG, "Pay", {false,0,mod_none}},
|
||||
{BTN_REG, "Free", {false,0,mod_none}},
|
||||
{BTN_REG, "Touch", {false,0,mod_none}},
|
||||
{BTN_REG, "Burn", {false,0,mod_none}},
|
||||
{BTN_REG, "Insert", {false,0,mod_none}},
|
||||
{BTN_REG, "Remove", {false,0,mod_none}},
|
||||
{BTN_REG, "Accept", {false,0,mod_none}},
|
||||
{BTN_REG, "Refuse", {false,0,mod_none}},
|
||||
{BTN_REG, "Open", {false,0,mod_none}},
|
||||
{BTN_REG, "Close", {false,0,mod_none}},
|
||||
{BTN_REG, "Sit", {false,0,mod_none}},
|
||||
{BTN_REG, "Stand", {false,0,mod_none}},
|
||||
{BTN_REG, "Cast", no_key},
|
||||
{BTN_REG, "Save", no_key},
|
||||
{BTN_REG, "Take", no_key},
|
||||
{BTN_REG, "Stay", no_key},
|
||||
{BTN_REG, "Steal", no_key},
|
||||
{BTN_REG, "Attack", no_key},
|
||||
{BTN_LG, "Step In", no_key},
|
||||
{BTN_REG, "Climb", no_key},
|
||||
{BTN_REG, "Flee", no_key},
|
||||
{BTN_REG, "Onward", no_key},
|
||||
{BTN_REG, "Answer", no_key},
|
||||
{BTN_REG, "Drink", no_key},
|
||||
{BTN_LG, "Approach", no_key},
|
||||
{BTN_REG, "Land", no_key},
|
||||
{BTN_REG, "Under", no_key},
|
||||
{BTN_REG, "Quit", no_key},
|
||||
{BTN_REG, "Rest", no_key},
|
||||
{BTN_REG, "Read", no_key},
|
||||
{BTN_REG, "Pull", no_key},
|
||||
{BTN_REG, "Push", no_key},
|
||||
{BTN_REG, "Pray", no_key},
|
||||
{BTN_REG, "Wait", no_key},
|
||||
{BTN_REG, "Give", no_key},
|
||||
{BTN_REG, "Destroy", no_key},
|
||||
{BTN_REG, "Pay", no_key},
|
||||
{BTN_REG, "Free", no_key},
|
||||
{BTN_REG, "Touch", no_key},
|
||||
{BTN_REG, "Burn", no_key},
|
||||
{BTN_REG, "Insert", no_key},
|
||||
{BTN_REG, "Remove", no_key},
|
||||
{BTN_REG, "Accept", no_key},
|
||||
{BTN_REG, "Refuse", no_key},
|
||||
{BTN_REG, "Open", no_key},
|
||||
{BTN_REG, "Close", no_key},
|
||||
{BTN_REG, "Sit", no_key},
|
||||
{BTN_REG, "Stand", no_key},
|
||||
{BTN_LEFT, " ", {true,key_left,mod_none}, "Left Arrow"},
|
||||
{BTN_RIGHT, " ", {true,key_right,mod_none}, "Right Arrow"},
|
||||
{BTN_UP, " ", {true,key_up,mod_none}, "Up Arrow"},
|
||||
{BTN_DOWN, " ", {true,key_down,mod_none}, "Down Arrow"},
|
||||
{BTN_REG, "Sell", {false,0,mod_none}},
|
||||
{BTN_REG, "Identify", {false,0,mod_none}},
|
||||
{BTN_REG, "Enchant", {false,0,mod_none}},
|
||||
{BTN_REG, "Train", {false,0,mod_none}},
|
||||
{BTN_LG, "Heal Party", {false,0,mod_none}},
|
||||
{BTN_LG, "Bash Door", {false,0,mod_none}},
|
||||
{BTN_LG, "Pick Lock", {false,0,mod_none}},
|
||||
{BTN_REG, "Sell", no_key},
|
||||
{BTN_REG, "Identify", no_key},
|
||||
{BTN_REG, "Enchant", no_key},
|
||||
{BTN_REG, "Train", no_key},
|
||||
{BTN_LG, "Heal Party", no_key},
|
||||
{BTN_LG, "Bash Door", no_key},
|
||||
{BTN_LG, "Pick Lock", no_key},
|
||||
{BTN_REG, "Record", {false,'r',mod_none}},
|
||||
{BTN_REG, "Climb", {false,0,mod_none}},
|
||||
{BTN_REG, "Restore", {false,0,mod_none}},
|
||||
{BTN_REG, "Restart", {false,0,mod_none}},
|
||||
{BTN_REG, "Create", {false,0,mod_none}},
|
||||
{BTN_REG, "Choose", {false,0,mod_none}},
|
||||
{BTN_LG, "Go Back", {false,0,mod_none}},
|
||||
{BTN_REG, "Climb", no_key},
|
||||
{BTN_REG, "Restore", no_key},
|
||||
{BTN_REG, "Restart", no_key},
|
||||
{BTN_REG, "Create", no_key},
|
||||
{BTN_REG, "Choose", no_key},
|
||||
{BTN_LG, "Go Back", no_key},
|
||||
};
|
||||
|
Reference in New Issue
Block a user