hotkeys = {
HomeWindow = { name = vkeys.key_names[HLcfg.hotkeys.HomeWindow], edit = false, ticked = os.clock(), tickedState = false, sName = "Активация главного меню" },
AutoReport = { name = vkeys.key_names[HLcfg.hotkeys.AutoReport], edit = false, ticked = os.clock(), tickedState = false, sName = "Активация авто-репорта" },
answerOnLastReport = { name = vkeys.key_names[HLcfg.hotkeys.answerOnLastReport], edit = false, ticked = os.clock(), tickedState = false, sName = "Ответить на последний репорт" },
teleportMenu = { name = vkeys.key_names[HLcfg.hotkeys.teleportMenu], edit = false, ticked = os.clock(), tickedState = false, sName = "Активация меню с телепортами" },
spectateOfTheLastReport = { name = vkeys.key_names[HLcfg.hotkeys.spectateOfTheLastReport], edit = false, ticked = os.clock(), tickedState = false, sName = "Следить за игроком написавшим в репорт" },
forwardLastReport = { name = vkeys.key_names[HLcfg.hotkeys.forwardLastReport], edit = false, ticked = os.clock(), tickedState = false, sName = "Переслать репорт в админ-чат" },
wallHack = { name = vkeys.key_names[HLcfg.hotkeys.wallHack], edit = false, ticked = os.clock(), tickedState = false, sName = "Активация WallHack" },
leaveRecon = { name = vkeys.key_names[HLcfg.hotkeys.leaveRecon], edit = false, ticked = os.clock(), tickedState = false, sName = "Активация AirBrake" },
airBrake = { name = vkeys.key_names[HLcfg.hotkeys.airBrake], edit = false, ticked = os.clock(), tickedState = false, sName = "Активация главного меню" },
circle = { name = vkeys.key_names[HLcfg.hotkeys.circle], edit = false, ticked = os.clock(), tickedState = false, sName = "Активация круга" },
changeCircle = { name = vkeys.key_names[HLcfg.hotkeys.changeCircle], edit = false, ticked = os.clock(), tickedState = false, sName = "Сменить режим в круге" },
carJump = { name = vkeys.key_names[HLcfg.hotkeys.carJump], edit = false, ticked = os.clock(), tickedState = false, sName = "Прыжок машины" },
carCoup = { name = vkeys.key_names[HLcfg.hotkeys.carCoup], edit = false, ticked = os.clock(), tickedState = false, sName = "Переворот машины" },
carDrift = { name = vkeys.key_names[HLcfg.hotkeys.carDrift], edit = false, ticked = os.clock(), tickedState = false, sName = "Дрифт машиной" },
acceptForm = { name = vkeys.key_names[HLcfg.hotkeys.acceptForm], edit = false, ticked = os.clock(), tickedState = false, sName = "Принять форму" },
cancelForm = { name = vkeys.key_names[HLcfg.hotkeys.cancelForm], edit = false, ticked = os.clock(), tickedState = false, sName = "Отклонить форму" }
}
elseif selectSide == 3 then
for k,v in pairs(hotkeys) do
if v.edit then
local downKey = getDownKeys()
HLcfg.hotkeys[k] = downKey
if downKey == '' then
if os.clock() - v.ticked > 0.5 then
v.ticked = os.clock()
v.tickedState = not v.tickedState
end
v.name = v.tickedState and "No" or "##isNo "..v.ticked
else
v.name = vkeys.key_names[HLcfg.hotkeys[k]]
v.edit = false
save()
end
end
if imgui.Button(u8(tostring(HLcfg.hotkeys[k] == nil and "Отсутствует".."##"..k or v.name.."##"..k)), imgui.ImVec2(110, 0)) then
v.edit = true
end imgui.SameLine() imgui.Text(u8(v.sName))
end