Clock Widget

Clock Widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Clock Widget

Post by CaptainMaim »

How can I edit the clock widget so that it won't get covered up by the ping value on the last player? Cause that makes it impossible to read what the game time is.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

*move to lua forum*
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

Silly AF, mod powers are for mods.
User avatar
caldera
Posts: 388
Joined: 18 Oct 2005, 20:56

Post by caldera »

i have this problem too, so i changed the position of the clock and fps-digits.

i have no idea of programming with lua, so this is probably not a very elegant solution, but it works:

Code: Select all

function widget:DrawScreen()
  gl.Color(color)
  gl.Text(GetTimeString(), xpos-390, ypos, size, format)
end
Post Reply

Return to “Lua Scripts”