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

Changed my avatar, goodbye Alan Sugar, hello George Carlin (one of my favorite human beings ever)
If you still don't subscribe our Polish channel please consider it :)
1.png
Who wants to see my review of the worst star wars movie? This movie has all the excitement of being on Jury Duty of the most boring case ever about trade negotiations.
A lot to learn to make a game. Can I handle it?
I've been working on status effects since last thursday, and today I finished the core mechanic of Zombie, Teleport, Curse and Recall. Zombie and Curse are lacking a few things to make them complete atm. Teleport though is the "HAHA" spell for some of my mobs, but can "NOPE" at them with Recall.

Forum statistics

Threads
115,169
Messages
1,087,780
Members
149,712
Latest member
Darksynergy
Top