Jump to content

Learning screens

Recommended Posts

Currently I am trying to learn how to make screens so I created a local mod just to start a prototype.

All I did was copy the pausescreen.lua script to my own screen script with some bits of code modified to make it run.

The problem is the screen that I made was not focused. When the screen was called, I cannot click on it. Can you guys help me out?

Script is here

Link to comment
Share on other sites

  • Developer

Untested, but try:

TheInput:AddKeyDownHandler(_G.KEY_B, function()

...it needs to be pushed on the screenstack - the topmost screen is active (it's why it pops itself when it closes)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...