Page 1 of 1

How to make a day counter at the top of the screen?

Posted: Mon Nov 16, 2020 5:42 pm
by Watercolorheart
How do I create a displayable at the top of the screen on top of everything that shows the amount of days currently passed?

Re: How to make a day counter at the top of the screen?

Posted: Mon Nov 16, 2020 5:52 pm
by hell_oh_world
Maybe try creating your own layer and show your screen in that layer.

Code: Select all

init python:
  config.layers.append("top")

default persistent.days_passed = 0

screen top():
  layer "top"

  text str(persistent.days_passed)

label splashscreen:
  show screen top
  
  return