Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 在游戏内时,仅在进入了世界时,才会保持亮屏 #636

Open
1 task done
EatHatsuneShallots opened this issue Sep 30, 2024 · 2 comments
Open
1 task done

Comments

@EatHatsuneShallots
Copy link

Before making issue / 在发布提问之前...

  • I understand this is a request, not a wish.我明白这是在提出请求而不是在许愿。

Description / 描述

在游戏内时,仅当玩家加入了世界(包括本地服务器)时,才会保持亮屏
就像基岩版一样

Why / 原因

防止在进入世界后,因不小心睡着了而忘记关游戏,从而导致烧屏

@block13566
Copy link

貌似只能检测是不是在操作游戏状态,如果游戏外要息屏拿背包暂停界面这样的全都得息屏

@EatHatsuneShallots
Copy link
Author

貌似只能检测是不是在操作游戏状态,如果游戏外要息屏拿背包暂停界面这样的全都得息屏

你的意思是指通过鼠标捕获(Pointer Capture)的状态判断吗,我的意思是通过是否进入了服务器来判断

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants