You've already forked rdsspy-lua-host
mirror of
https://github.com/KubaPro010/rdsspy-lua-host.git
synced 2026-02-27 10:55:04 +01:00
script: change logic further
This commit is contained in:
@@ -576,7 +576,7 @@ local function render_menu()
|
|||||||
else out = out .. string.format("RDS-System time offset: ~0\r\n") end
|
else out = out .. string.format("RDS-System time offset: ~0\r\n") end
|
||||||
out = out .. string.format("Local time: %s\r\n", time_display_local)
|
out = out .. string.format("Local time: %s\r\n", time_display_local)
|
||||||
out = out .. string.format("UTC time: %s\r\n", time_display_utc)
|
out = out .. string.format("UTC time: %s\r\n", time_display_utc)
|
||||||
elseif current_menu == event_count then
|
elseif current_menu == event_count and menu_extended then
|
||||||
out = out .. "Toggled windows stickness"
|
out = out .. "Toggled windows stickness"
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -588,8 +588,10 @@ local function render_menu()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function event(event)
|
function event(event)
|
||||||
if current_menu == event_count then set_window_stick(not get_window_stick()) end
|
if event > event_count then
|
||||||
if event > event_count then menu_extended = true else
|
menu_extended = true
|
||||||
|
if event-event_count == event_count then set_window_stick(not get_window_stick()) end
|
||||||
|
else
|
||||||
menu_extended = false
|
menu_extended = false
|
||||||
current_menu = event
|
current_menu = event
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user