JacSkulls

Veteran
Veteran
Joined
May 4, 2020
Messages
196
Reaction score
58
First Language
English
Primarily Uses
RMMZ
Hello, everyone. Jac here.

I've been looking online trying to find some way to change UI mid game. Reason being is because of VIsuStella's Core Engine on the Keyboard stuff and me changing the screen to match Widescreen. In other word, if I don't change the UI settings, it wouldn't fit the screen or I'd have a hard time trying to see what I'm typing in.

Is there a way to use Script Call for changing the UI sizes? I mean, it only needs to happen during name input.

If not possible by Script Call, do I need to go for a plugin? If so, what kind of Plugin?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,742
Reaction score
15,312
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Requests. Thank you.



I'm not sure it can be done via a script call, so I'll just move it here.
 

JacSkulls

Veteran
Veteran
Joined
May 4, 2020
Messages
196
Reaction score
58
First Language
English
Primarily Uses
RMMZ
Thank you. Wasn't sure, myself.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,226
Reaction score
1,725
First Language
Portuguese - Br
Primarily Uses
RMMZ
Hi ^^

Hmm.. don't know for sure, never tried that. But maybe, you can try the below script call before the name input scene:

JavaScript:
// Store the current UI area in two variables.
$gameVariables.setValue(AnyVarId, $dataSystem.advanced.uiAreaWidth)
$gameVariables.setValue(AnyVarId, $dataSystem.advanced.uiAreaHeight)

// Change the UI are to your liking.
$dataSystem.advanced.uiAreaWidth = X
$dataSystem.advanced.uiAreaHeight = X

// Maybe need to call that before enter the scene name
SceneManager._scene.adjustBoxSize()

// call the name input scene

// After the name input scene, restore to default:
JavaScript:
$dataSystem.advanced.uiAreaWidth = $gameVariables.value(VarId For Ui Area Width)
$dataSystem.advanced.uiAreaHeight = $gameVariables.value(VarId For Ui Area Height)
SceneManager._scene.adjustBoxSize()

I believe it is a long shot. But maybe it will work.
 

JacSkulls

Veteran
Veteran
Joined
May 4, 2020
Messages
196
Reaction score
58
First Language
English
Primarily Uses
RMMZ
@Eliaquim Tried doing the script call. Definitely a long shot at best. :D Thank you for trying, though. Looking at the console, it kept telling me;

TypeError: SceneManager._scene.adjustBoxSize is not a function

So I tried a few things myself and still couldn't get it to work. And by a few things, I mean I tried to change it from SceneManager._scene.adjustBoxSize() to SceneManager_scene.adjustBoxSize() and then I tried this one SceneManager.scene.adjustBoxSize()

None works, sadly. Though, like I said, thank you for trying.

Still, part of me thinks this would be an interesting thing for others to have. A way to control it. Though, mostly in it for myself.
 

Latest Threads

Latest Profile Posts

I'm so annoyed with myself...I can't get this code to work so it looks like I'm going the plugin route for a problem I should be able to do myself :kaolivid:Great. Now I get to murder save file compatibility. Again.
Can't believe my code from four years ago is still working! Did some expansions, and...
1635194553179.png
In related news, I may have an update for my old Extra status window plugin ready. That is, once I manage to sit down and update the documentation... and the demo project... :kaoswt:
How does one pronounce Godot? I've heard it pronounced a couple of different ways, and I genuinely don't know the proper way.
March 2020 ...
1635188823939.jpeg
... vs October 2021
You look like you had a rough day...Here, have a Baby Panda!

Forum statistics

Threads
116,077
Messages
1,095,547
Members
151,442
Latest member
Sasha_If
Top