eZeth Posted January 14, 2019 Share Posted January 14, 2019 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 More sharing options...
Developer bizziboi Posted January 14, 2019 Developer Share Posted January 14, 2019 Untested, but try: TheInput:AddKeyDownHandler(_G.KEY_B, function() TheFrontEnd:PushScreen(TestOptionsScreen()) end) ...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 More sharing options...
eZeth Posted January 14, 2019 Author Share Posted January 14, 2019 Yeah that makes sense! It needs to be pushed before being popped. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now