280 lines
6.4 KiB
Plaintext
280 lines
6.4 KiB
Plaintext
-- Companions by Hive Game
|
|
|
|
local key_default = {
|
|
["key_assign"] = DIK_keys.DIK_P,
|
|
["key_cw"] = DIK_keys.DIK_O,
|
|
["key_numpad0"] = DIK_keys.DIK_NUMPAD0,
|
|
["key_numpad1"] = DIK_keys.DIK_NUMPAD1,
|
|
["key_numpad2"] = DIK_keys.DIK_NUMPAD2,
|
|
["key_numpad3"] = DIK_keys.DIK_NUMPAD3,
|
|
["key_move"] = DIK_keys.DIK_J,
|
|
["key_light"] = DIK_keys.DIK_K,
|
|
["key_relax"] = DIK_keys.DIK_U,
|
|
["distance"] = 1,
|
|
["formation"] = true,
|
|
["hud"] = true,
|
|
}
|
|
|
|
function get_key(section, key)
|
|
if ui_mcm then return ui_mcm.get(strformat("hg_companion/%s/%s", section, key))
|
|
else return key_default[key]
|
|
end
|
|
end
|
|
|
|
function on_mcm_load()
|
|
op = {id = "hg_companion", text = "ui_mcm_hg_companion", gr = {
|
|
{id = "option", sh = true, text = "ui_mcm_menu_hg_companion_option", gr = {
|
|
{ id = "title",
|
|
type = "slide",
|
|
link = "ui_options_slider_disguise",
|
|
text = "ui_mcm_hg_companion_option_title",
|
|
size = {512, 50},
|
|
spacing = 20
|
|
},
|
|
{ id = "desc_1",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_1",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_2",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_2",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_3",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_3",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_4",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_4",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_5",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_5",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_6",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_6",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_7",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_7",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_8",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_8",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_9",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_9",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_10",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_10",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_11",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_11",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_12",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_option_desc_12",
|
|
clr = {255,170,170,170},
|
|
},
|
|
}},
|
|
{id = "squad", sh = true, text = "ui_mcm_hg_companion_squad", gr = {
|
|
{ id = "title",
|
|
type = "slide",
|
|
link = "ui_options_slider_disguise",
|
|
text = "ui_mcm_hg_companion_squad_title",
|
|
size = {512, 50},
|
|
spacing = 20
|
|
},
|
|
{ id = "desc_1",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_squad_desc_1",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "key_assign",
|
|
type = "key_bind",
|
|
val = 2,
|
|
def = DIK_keys.DIK_P
|
|
},
|
|
{ id = "key_cw",
|
|
type = "key_bind",
|
|
val = 2,
|
|
def = DIK_keys.DIK_O
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "key_numpad0",
|
|
type = "key_bind",
|
|
val = 2,
|
|
def = DIK_keys.DIK_NUMPAD0
|
|
},
|
|
{ id = "key_numpad1",
|
|
type = "key_bind",
|
|
val = 2,
|
|
def = DIK_keys.DIK_NUMPAD1
|
|
},
|
|
{ id = "key_numpad2",
|
|
type = "key_bind",
|
|
val = 2,
|
|
def = DIK_keys.DIK_NUMPAD2
|
|
},
|
|
{ id = "key_numpad3",
|
|
type = "key_bind",
|
|
val = 2,
|
|
def = DIK_keys.DIK_NUMPAD3
|
|
},
|
|
}},
|
|
{id = "move", sh = true, text = "ui_mcm_hg_companion_move", gr = {
|
|
{ id = "title",
|
|
type = "slide",
|
|
link = "ui_options_slider_disguise",
|
|
text = "ui_mcm_hg_companion_move_title",
|
|
size = {512, 50},
|
|
spacing = 20
|
|
},
|
|
{ id = "desc_1",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_move_desc_1",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "key_move",
|
|
type = "key_bind",
|
|
val = 2,
|
|
def = DIK_keys.DIK_J
|
|
},
|
|
{ id = "key_light",
|
|
type = "key_bind",
|
|
val = 2,
|
|
def = DIK_keys.DIK_K
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "distance",
|
|
type = "track",
|
|
val = 2,
|
|
min = 1,
|
|
max = 3,
|
|
step = 0.1,
|
|
def = 1
|
|
},
|
|
{ id = "formation",
|
|
type = "check",
|
|
val = 1,
|
|
def = true
|
|
},
|
|
{ id = "hud",
|
|
type = "check",
|
|
val = 1,
|
|
def = true
|
|
},
|
|
}},
|
|
{id = "relax", sh = true, text = "ui_mcm_hg_companion_relax", gr = {
|
|
{ id = "title",
|
|
type = "slide",
|
|
link = "ui_options_slider_disguise",
|
|
text = "ui_mcm_hg_companion_relax_title",
|
|
size = {512, 50},
|
|
spacing = 20
|
|
},
|
|
{ id = "desc_1",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_relax_desc_1",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "key_relax",
|
|
type = "key_bind",
|
|
val = 2,
|
|
def = DIK_keys.DIK_U
|
|
},
|
|
}},
|
|
{id = "contact", sh = true, text = "ui_mcm_hg_companion_contact", gr = {
|
|
{ id = "title",
|
|
type = "slide",
|
|
link = "ui_options_slider_disguise",
|
|
text = "ui_mcm_hg_companion_contact_title",
|
|
size = {512, 50},
|
|
spacing = 20
|
|
},
|
|
{ id = "desc_1",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_contact_desc_1",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_2",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_contact_desc_2",
|
|
clr = {255,170,170,170},
|
|
},
|
|
{ id = "line",
|
|
type = "line"
|
|
},
|
|
{ id = "desc_3",
|
|
type = "desc",
|
|
text = "ui_mcm_hg_companion_contact_desc_3",
|
|
clr = {255,170,170,170},
|
|
},
|
|
}},
|
|
}}
|
|
return op
|
|
end |