JacSkulls

Veteran
Veteran
Joined
May 4, 2020
Messages
196
Reaction score
57
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,688
Reaction score
15,294
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
57
First Language
English
Primarily Uses
RMMZ
Thank you. Wasn't sure, myself.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,223
Reaction score
1,720
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
57
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

Ugh... 4:53AM over here and I can't sleep so why not just game make.
I just love the MV feature that allows you to create your own animations!
I typically ask this on my normal social media channels, but figured there may be good replies here. Anyone got any good horror movie recommendations? I've seen a lot, but I always love getting suggestions! Bonus points if you know which service it is streaming on (in the US) - bring on the spOoooOky!
 After a few distractions (and my annual rough second week of October), I’m getting back on track with my OMGC project.
 Am I overcomplicating it? Yes. Am I going to tone it down? Almost certainly not.
 At least the dialogue stuff is almost done. I need to do the map itself, and then all that’s left is combat.
 Getting there!

Forum statistics

Threads
115,907
Messages
1,093,876
Members
151,158
Latest member
Nspace
Top