text = "[clock.weekday]" size 36 color "#ffffff" font "agencyb.ttf" xpos 20 ypos 50
text = "[clock.day]" size 32 color "#ffffff" font "agencyb.ttf" xpos 120 ypos 90
text = "[clock.time]" size 32 color "#ffffff" font "agencyb.ttf" xpos 250 ypos 70
I literally tried everything I know, that was the last try before I given up and asked hereWhen your doing string replacement, you still need to use quotes around the brackets. The obvious problem is that, there could be another.
Code:text = "[clock.weekday]" size 36 color "#ffffff" font "agencyb.ttf" xpos 20 ypos 50 text = "[clock.day]" size 32 color "#ffffff" font "agencyb.ttf" xpos 120 ypos 90 text = "[clock.time]" size 32 color "#ffffff" font "agencyb.ttf" xpos 250 ypos 70
hmh ok the problem here is that you're using text in a way I've never seen beforeYeah, I do... It's working fine, it's just that I don't know how to get Day #, day (mon, tue, wed, etc.) and time of day (morning, noon...) to get them into screen text
You don't have permission to view the spoiler content. Log in or register now.
screen ngui:
text "%s" %clock.weekday() size 36 color "#ffffff" font "agencyb.ttf" xpos 20 ypos 50
text "%s" %clock.day() size 32 color "#ffffff" font "agencyb.ttf" xpos 120 ypos 90
text "%s" %clock.time() size 32 color "#ffffff" font "agencyb.ttf" xpos 250 ypos 70
def time(self):
return self.time_of_day[0]
No errors on run, but it doesn't show anythinghmh ok the problem here is that you're using text in a way I've never seen before
try:
also why is the function:Code:screen ngui: text "%s" %clock.weekday() size 36 color "#ffffff" font "agencyb.ttf" xpos 20 ypos 50 text "%s" %clock.day() size 32 color "#ffffff" font "agencyb.ttf" xpos 120 ypos 90 text "%s" %clock.time() size 32 color "#ffffff" font "agencyb.ttf" xpos 250 ypos 70
always and only returning "Morning"?Code:def time(self): return self.time_of_day[0]
ugh yeah can't show anything because I forgot to add some brackets
it should be like this actually:
text ["%s" %clock.weekday()] size 36 color "#ffffff" font "agencyb.ttf" xpos 20 ypos 50
Bro I don't know how to thank youUhm.... remove the -> () <- in the method I gave you and it works....