Skip to content

Window Settings #1991

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

Closed
wants to merge 3 commits into from
Closed

Window Settings #1991

wants to merge 3 commits into from

Conversation

WAYLIVES
Copy link

@WAYLIVES WAYLIVES commented Feb 28, 2025

🧱 Extension "Window Settings"

Window Settings2

HEY, friends! I've created a new extension for TurboWarp "Window Settings" :D

Perhaps many of you'll say, "Oh, dude, why did you create this extension?! After all, such an extension already exists in the TurboWarp gallery!" Therefore, I will tell you in advance why I made this extension =)

There is such an extension as "Window Controls" in the TurboWarp gallery. With this extension, you can control the window where your project is located. But then why did I make a new similar extension? The problem is that this "Windows Controls" extension is not very convenient.

For example:

For example, I want to set the width and height of the scene: width = 640, height = 420. It is impossible to do this through this block, which you see in the screenshot, since the width and height of the window are set, not the stage, and the stage width and height will be smaller:
изображение

This can be fixed through the following code, which you will see in the following screenshot. But the problem is that you will have to set a delay of more than 0 seconds. Which is not very convenient:
изображение

Okay, then let's try to set the width and height through the next block, but again nothing worked out:
изображение

But here everything is fast, everything is clear, the width and height of the stage are set without any delay, but at the same time the width and height of the window are changed:
изображение

https://github.com/WAYLIVES/TurboWARP/blob/main/extensions/WindowSettings/1.1.1.js

🖼 NEW EXTENSION IMAGES
@WAYLIVES WAYLIVES closed this Feb 28, 2025
@github-actions github-actions bot added the pr: other Pull requests that neither add new extensions or change existing ones label Feb 28, 2025
@WAYLIVES WAYLIVES reopened this Feb 28, 2025
@WAYLIVES
Copy link
Author

How do I add a file here (.js)?

@WAYLIVES
Copy link
Author

!format

@WAYLIVES
Copy link
Author

!format

Copy link

The formatting bot didn't find any formatting issues. It currently only checks the extensions folder. The author or a maintainer can run terminal command 'npm run format' manually to format all files.

@WAYLIVES WAYLIVES closed this Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: other Pull requests that neither add new extensions or change existing ones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants