New backup 2026-01-22 12:50:02
This commit is contained in:
parent
1bff2a3344
commit
dca591eb7a
1 changed files with 11 additions and 2 deletions
|
|
@ -20,7 +20,7 @@
|
|||
:space-evenly false
|
||||
(box
|
||||
:orientation 'v'
|
||||
:space-evenly true
|
||||
:space-evenly false
|
||||
(for server in json
|
||||
(box
|
||||
:class 'server'
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
:class 'icon'
|
||||
:valign 'center'
|
||||
:width 75
|
||||
:height 75
|
||||
:height {((server.ping!=0.0) ? 75 : 25 )}
|
||||
:style 'background-image: url("${server.icon_path}");'
|
||||
)
|
||||
)
|
||||
|
|
@ -44,10 +44,12 @@
|
|||
:text "${server.address}"
|
||||
)
|
||||
(label
|
||||
:visible {(server.ping!=0.0)}
|
||||
:xalign 0
|
||||
:text "${server.players.online}/${server.players.max} players online"
|
||||
)
|
||||
(label
|
||||
:visible {(server.ping!=0.0)}
|
||||
:class 'motd'
|
||||
:text "${server.motd}"
|
||||
:wrap true
|
||||
|
|
@ -55,9 +57,16 @@
|
|||
; :truncate true
|
||||
)
|
||||
(label
|
||||
:visible {(server.ping!=0.0)}
|
||||
:xalign 0
|
||||
:text " ${round(server.ping,0)}ms"
|
||||
)
|
||||
(label
|
||||
:visible {(server.ping==0.0)}
|
||||
:style "color: red"
|
||||
:xalign 0
|
||||
:text " offline"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue