121
BloxGaming SB3 / Re: DIALING A UNIVERSE GATE TO ONLY A SG1 GATE WITH ONLY 7 CHEVRONS WTF
« on: July 30, 2015, 08:47:11 pm »
I didn't watch it. I think you may be the only one in SB that cares about this.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
@name Blox_The_Time
@inputs HUD:wirelink
@outputs
@persist K ScreenHeight ScreenWidth
@trigger
interval(1000) # update every second (1000ms)
if (first() | dupefinished()) {
ScreenWidth = egpScrW(owner())
ScreenHeight= egpScrH(owner())
K = 230 # This can be any number 1-300. If you have other HUD elements, you may need to adjust this
}
TimeHour = time("hour")
TimeMin = time("min")
TimeSec = time("sec")
# Convert GMT to EST (12 hour clock)
if (TimeHour < 5) {
TimeHour = TimeHour + 8
} else {
TimeHour = TimeHour - 4
}
# Make it look pretty
if (TimeHour < 10) {
StrHour = "0" + TimeHour
} else {
StrHour = "" + TimeHour
}
if (TimeMin < 10) {
StrMin = "0" + TimeMin
} else {
StrMin = "" + TimeMin
}
if (TimeSec < 10) {
StrSec = "0" + TimeSec
} else {
StrSec = "" + TimeSec
}
# Place the time in the lower left-hand corner
HUD:egpText(K,"Time: " + StrHour + ":" + StrMin + ":" + StrSec,vec2(10,ScreenHeight - 30))
HUD:egpSize(K,30)
Let me know if you have any questions / suggestions / optimizations!