RMMV Exclude Message Window from Yanfly's 'Hide Battle Hud'

coucassi

Veteran
Veteran
Joined
Sep 23, 2019
Messages
131
Reaction score
196
First Language
German
Primarily Uses
RMMV
Heyho again!

I am using Yanfly's Action Sequence Packs to create In-Battle-Cut-Scenes and would like to include Dialogue in those Scenes. The command to hide the battle hud however also hides the message window.
An obvious solution would be to show the battle hud, when the message plays and hide it again afterward, but in this case for a tiny moment the full hud becomes visible, before it is hidden again by the message window.
If I have more than one message of dialogue now, the rest of the hud keeps turning on and off, which looks really awkward.

Can I somehow edit the script to manipulate the hide hud command, so that the message window is not affected?

Another way to make it look less unintentional would be to make the rest of the hud stay, when the message window pops out. This way it would at least not turn on and off al the time.

Thanks for any thoughts.
 

Zero_G

Veteran
Veteran
Joined
Mar 28, 2020
Messages
96
Reaction score
60
First Language
English
Primarily Uses
RMVXA
I can look into it, can you tell me which plugin is the the command you are using? And paste here the exact command you are using to hide the battle hud.
 

coucassi

Veteran
Veteran
Joined
Sep 23, 2019
Messages
131
Reaction score
196
First Language
German
Primarily Uses
RMMV
Thank you!

I am using Yanfly's Action Sequence Packs. The Pack that introduces the option to hide the battle hud is YEP_X_ActSeqPack_2. The mother PlugIn is YEP_BattleEngineCore, just in case.

The Sequence Packs allow to create unique Skills via Skill Note Tag. What I have to type in to make the Battle Hud disappear is this:

<target action> HIDE BATTLE HUD </target action>

This way a skill is created that, when it is used hides the battle hud. It stays hidden even after the skill is executed until another skill comes into action whos notetag contains the following:

<target action> SHOW BATTLE HUD </target action>

Please tell me if you need anything else, I'll try to make things as clear as possible.
 

Zero_G

Veteran
Veteran
Joined
Mar 28, 2020
Messages
96
Reaction score
60
First Language
English
Primarily Uses
RMVXA
Ok, I was checking on it, the function that hides or shows the HUD is this:
JavaScript:
BattleManager.actionBattleHud = function(actionName) {
  if (actionName === 'HIDE BATTLE HUD') {
    this._windowLayer.x = Graphics.boxWidth * 495;
  } else if (actionName === 'SHOW BATTLE HUD') {
    this._windowLayer.x = 0;
  }
  return false;
}

Problem with this, is that is this is hiding the whole layer, not each window individually. So the function has to be rewritten to do that, and exclude the message window.
Sadly I don't have the time to do that, so I recommend that you make a thread in "Plugin Requests" about this (Or ask a mod to move this one).

Alternately you can manualy use these script calls instead of the yanfly's hide/show, to fix that "hud keeps turning on and off" problem:
JavaScript:
SceneManager._scene._windowLayer.visible = false // hide it
SceneManager._scene._windowLayer.visible = true // show it
 
Last edited:

coucassi

Veteran
Veteran
Joined
Sep 23, 2019
Messages
131
Reaction score
196
First Language
German
Primarily Uses
RMMV
Thanks for your effort! I will try a few things with your script calls and do as your suggested if it doesn't help.
 

Latest Threads

Latest Posts

Latest Profile Posts

Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.
Woof, haven't touched any game-making elements in a couple of weeks I think.
Doing a thing in MV...

R3PuRjF.png

Forum statistics

Threads
115,285
Messages
1,088,628
Members
149,905
Latest member
Raizus
Top