You've already forked rdsspy-lua-host
mirror of
https://github.com/KubaPro010/rdsspy-lua-host.git
synced 2026-02-26 18:35:01 +01:00
large pi and better readme
This commit is contained in:
20
examples/large_pi.lua
Normal file
20
examples/large_pi.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
set_console_mode(true)
|
||||
set_font_size(148)
|
||||
|
||||
local last_pi = "----"
|
||||
local last_ps = "--------"
|
||||
function group(...)
|
||||
local pi = db.read_value("PI") or "----"
|
||||
local ps = db.read_value("PS") or "--------"
|
||||
if last_pi ~= pi or last_ps ~= ps then
|
||||
set_console(string.format("%s\r\n%s", pi, ps))
|
||||
last_pi = pi
|
||||
last_ps = ps
|
||||
end
|
||||
end
|
||||
|
||||
function event(event)
|
||||
if event == 1 then
|
||||
set_window_stick(not get_window_stick())
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user