|
|
|
@ -138,7 +138,7 @@ menu.update = function() |
|
|
|
|
menu.show = { true, "main" } |
|
|
|
|
end |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
{ -->> Комната |
|
|
|
|
title = menu.color..">{ffffff} Комната\t"..config.data.room, |
|
|
|
|
click = function(button, list, input , outs) |
|
|
|
|
if button ~= 1 then return end |
|
|
|
@ -153,14 +153,14 @@ menu.update = function() |
|
|
|
|
end, config.data.room} |
|
|
|
|
end |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
{ -->> Участники |
|
|
|
|
title = menu.color..">{ffffff} Участники комнаты\t"..count, |
|
|
|
|
click = function(button, list, input , outs) |
|
|
|
|
if button ~= 1 then return end |
|
|
|
|
menu.show = { true, "members" } |
|
|
|
|
end |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
{ -->> Список блокировщика |
|
|
|
|
title = menu.color..">{ffffff} Список блокировщика\t", |
|
|
|
|
click = function(button, list, input , outs) |
|
|
|
|
if button ~= 1 then return end |
|
|
|
@ -171,7 +171,7 @@ menu.update = function() |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
{ -->> Использовать список как |
|
|
|
|
title = menu.color..">{ffffff} Использовать список как:\t"..(config.data.list_block and "Черный список" or "Белый список"), |
|
|
|
|
click = function(button, list, input , outs) |
|
|
|
|
if button ~= 1 then return end |
|
|
|
@ -179,7 +179,31 @@ menu.update = function() |
|
|
|
|
config.save(config.data) |
|
|
|
|
menu.show = { true, "main" } |
|
|
|
|
end |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ -->> Настройка отображения |
|
|
|
|
title = menu.color.."Настройка отображения\t", |
|
|
|
|
click = function(button, list, input , outs) |
|
|
|
|
if button ~= 1 then return end |
|
|
|
|
menu.show = { true, "main" } |
|
|
|
|
end |
|
|
|
|
}, |
|
|
|
|
{ -->> Рендер |
|
|
|
|
title = menu.color..">{ffffff} Показать на экране\t"..(config.data.render and "вкл" or "выкл"), |
|
|
|
|
click = function(button, list, input , outs) |
|
|
|
|
if button ~= 1 then return end |
|
|
|
|
config.data.render = not config.data.render |
|
|
|
|
config.save(config.data) |
|
|
|
|
menu.show = { true, "main" } |
|
|
|
|
end |
|
|
|
|
}, |
|
|
|
|
{ -->> Смена позиции |
|
|
|
|
title = menu.color..">{ffffff} Сменить позицию\t", |
|
|
|
|
click = function(button, list, input , outs) |
|
|
|
|
if button ~= 1 then return end |
|
|
|
|
config.data.render = true |
|
|
|
|
ammo_timer.setpos = true |
|
|
|
|
end |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
["edit"] = { |
|
|
|
@ -362,23 +386,27 @@ ammo_timer.loop = function() |
|
|
|
|
end |
|
|
|
|
while true do |
|
|
|
|
wait(0) |
|
|
|
|
local text = string.format("%s\n%s\n%s\n%s", getText("ls"), getText("sf"), getText("lv"), getText("mhcars")) |
|
|
|
|
renderFontDrawText(font,text,config.data.timer_pos.x,config.data.timer_pos.y,-1) |
|
|
|
|
if config.data.render then |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ammo_timer.setpos then |
|
|
|
|
sampSetCursorMode(3) |
|
|
|
|
local x, y = getCursorPos() |
|
|
|
|
config.data.timer_pos.x = x |
|
|
|
|
config.data.timer_pos.y = y |
|
|
|
|
if isKeyJustPressed(1) then |
|
|
|
|
sampSetCursorMode(0) |
|
|
|
|
config.save(config.data) |
|
|
|
|
ammo_timer.setpos = false |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
local text = string.format("%s\n%s\n%s\n%s", getText("ls"), getText("sf"), getText("lv"), getText("mhcars")) |
|
|
|
|
renderFontDrawText(font,text,config.data.timer_pos.x,config.data.timer_pos.y,-1) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
ammo_timer.setpos = function() |
|
|
|
|
repeat |
|
|
|
|
wait(0) |
|
|
|
|
sampSetCursorMode(3) |
|
|
|
|
local x, y = getCursorPos() |
|
|
|
|
config.data.timer_pos.x = x |
|
|
|
|
config.data.timer_pos.y = y |
|
|
|
|
until isKeyDown(1) |
|
|
|
|
sampSetCursorMode(0) |
|
|
|
|
config.save(config.data) |
|
|
|
|
end |
|
|
|
|
ammo_timer.setpos = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-->> 2 MIN TIMER |
|
|
|
@ -431,6 +459,7 @@ config.default = { |
|
|
|
|
room = "all", |
|
|
|
|
list = {}, -->> Список |
|
|
|
|
list_block = true, -->> Использовать как Черный или Белый список |
|
|
|
|
render = false |
|
|
|
|
} |
|
|
|
|
config.directory = string.format("%s\\moonloader\\config\\%s\\", getGameDirectory(), thisScript().name) |
|
|
|
|
config.init = function() |
|
|
|
|