JacSkulls

Veteran
Veteran
Joined
May 4, 2020
Messages
193
Reaction score
55
First Language
English
Primarily Uses
RMVXA
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,325
Reaction score
15,154
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
193
Reaction score
55
First Language
English
Primarily Uses
RMVXA
Thank you. Wasn't sure, myself.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,162
Reaction score
1,644
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
193
Reaction score
55
First Language
English
Primarily Uses
RMVXA
@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 couldn't help myself, so I edited the tiles a bit and made a birdhouse :LZSsmile: I hope I will finish the town today!Screenshot 2021-09-17 134349.png
How do I find the threads I have watched? It's been so long I've forgotten :kaoswt:
So far, this is how the wall tileset its looking in-editor. :kaoswt2:
1631863283853.png
Still thinking on details to add.
Added a plugin to RMMV Plugin Releases with all relevant info but it looks like the topic wasn't approved for whatever reason. Cool.
Working in the IT industry:
- "How long does it take?".
- "It takes 1 month".
- "What if we add more people to the project?".
- "It would take 2 months".

Forum statistics

Threads
115,129
Messages
1,087,449
Members
149,631
Latest member
Chxn
Top