Skip to content

Another TouchControlsEnabler fix(sorry)#2058

Merged
colinator27 merged 2 commits intoUnderminersTeam:masterfrom
NC-devC:master
Mar 19, 2025
Merged

Another TouchControlsEnabler fix(sorry)#2058
colinator27 merged 2 commits intoUnderminersTeam:masterfrom
NC-devC:master

Conversation

@NC-devC
Copy link
Copy Markdown
Contributor

@NC-devC NC-devC commented Mar 11, 2025

Description

Why i did this PR? I found that i was made an issue, while was trying to make this script work more stable, and im doing this to fix it. What kind of issue? I forgot to change scaling offset for the vertical part of controlers. So, visual interface was worked fine, but controls wasnt on their right spots technicaly. I fixed that now. Also, i deleted part, that was checked if user's device is mobile, because its useless, and could be dissapointing. So, now script should hopefully work more stable.

Caveats

image
For some reason, on NXTALE version of Undertale, controls doesnt takes the right scale. But, i think it should work fine on mobile devices, because screen size would be different.

Notes

Now touchcontrols should work more stable. But i think if game would change the gui size, controllers wouldn't take their correct spots technicaly. I dont know any sort of examples now.

Tests:

Tests was made on destkop version of the UT Yellow(gms 2023) and Undertale(gms 1.0.6)
image
image

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 11, 2025

@colinator27
Copy link
Copy Markdown
Member

Hmm... Has this actually been tested on some varying mobile device/monitor resolutions? Want to make sure that this doesn't negatively affect anything accidentally before merging it in.

@NC-devC
Copy link
Copy Markdown
Contributor Author

NC-devC commented Mar 19, 2025

I would test it now, thx for answer

Now scr_add_keys() deletes old keys, and issue with display_set_gui_size() was fixed.
@NC-devC
Copy link
Copy Markdown
Contributor Author

NC-devC commented Mar 19, 2025

Screenshot_2025-03-19-16-48-03-002_com.PultecSoftware.tobyfoxdeltarunetechdemo.jpg

Screenshot_2025-03-19-16-50-58-837_com.PultecSoftware.tobyfoxdeltarunetechdemo.jpg

Screenshot_2025-03-19-16-48-46-920_com.PultecSoftware.tobyfoxdeltarunetechdemo.jpg

Screenshot_2025-03-19-16-49-14-855_com.PultecSoftware.tobyfoxdeltarunetechdemo.jpg

I tested it on the Deltarune(used booker's port as a base for test), and it works, but in deltarune for some reason(maybe other gui scale) text in the settings wasn't scaled right. But it dont influes on the game.

Copy link
Copy Markdown
Member

@colinator27 colinator27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, then. Thank you! Feel free to make further PRs if any other issues arise.

@colinator27 colinator27 merged commit 3da31a4 into UnderminersTeam:master Mar 19, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants