Biud436's HUD (Multiple HUD) 1.2.8
byBiud436
Introduction
This plugin draws the HUD that displays the hp and mp and exp and level of each party members.
Screenshots
Spoiler
How to Use
Spoiler
- Adding a Plugin to your Project
Download the plugin and place it in the folder called
your_project_directory/js/plugins.
Then In Plugin Manager, Select the
RS_HUD_4m plugin and add it.
- Adding Resources to your Project
Download the resources and place them in the folder called
img/pictures.
All the resources can download in the following link.
Resources Download
- Plugin Manager / Plugin Parameters
In Plugin Manager, You have to pre-load the resources using the parameter called
'preloadImportantFaces'. It basically pre-loads the face called
'Actor1' and
'Actor2' and
'Actor3'. (If you do not set this parameter, It can cause errors in the game)
To display in correct place, you need to know which predefined variables are currently available. You can be available predefined variables as belows when specifying the parameter named 'Custom Pos'. So you can quickly set up positions for a hud itself.
Predefined Variables :
W - 'W' is the same as a parameter named 'Width' in Plugin Manager.
H - 'H' is the same as a parameter named 'Height' in Plugin Manager
PD - 'PD' is the same as a parameter named 'Margin' in Plugin Manager
BW - 'BW' is the same as a maximum width of the game canvas.
BH - 'BH' is the same as a maximum height of the game canvas.
Each sprites draw at changing position relative to the background sprite. Therefore, this custom position is pretty important values.
Note Tags
SpoilerInsert the following the notetag into the map property window as below.
<DISABLE_HUD> : A notetag can use in the map that does not wish create each huds.
Code
Spoiler
Set Opacity
Sets the opacity of the HUD to x.
$gameHud.opacity = x;
That is a number between 0 and 255.
For example :
$gameHud.opacity = 128;
Set visibility
This variable will change the visible option of the HUD.
$gameHud.show = true/false;
For example :
$gameHud.show = false;
Refresh Texts
In general, text and gauge sprites refresh when requesting a refresh so this one is not updated on every frame. Therefore if you need to immediately refresh all texts for themselves, you will use as belows.
$gameTemp.notifyHudTextRefresh();
Clear and create all huds
if you need to immediately recreate for all Huds, you will use as belows.
$gameTemp.notifyHudRefresh();
Plugin Commands
SpoilerThis plugin command adjusts the
opacity of the HUD. The
x is number value between
0 and
255.
Code:
This plugin command sets the HUD's visible status to
true.
Code:
This plugin command sets the HUD's visible status to
false.
Code:
Import the parameter as the json file from your data folder.
Code:
Export the current parameter as the json file to your data folder.
Code:
Demo
SpoilerThe demo file can download in the following link.
Demo Download
Plugins
This plugin can be found in the following link.
-
Github RAW
-
Battle Addon : This plugin requires YEP_BattleEngineCore and YEP_X_BattleSysATB files and then you should put
additional image file in your project/img/pictures folder.
Change Log
Spoiler2015.10.31 (v1.0.0) - First Release
2016.02.24 (v1.0.1) - Added the Plugin Command.
2016.03.04 (v1.0.2) - Added the note called @requiredAssets which is added in 1.1.0 version.
2016.03.18 (v1.0.3) - Added the parameter called 'Arrangement'
2016.03.26 (v1.0.4) - Fixed a bug that the HUD is always displayed regardless of the setting whenever transferring the player to the other map.
2016.05.05 (v1.0.5) - Fixed a bug that the text does not change.
2016.05.17 (v1.0.6) - Fixed a structure of the class.
2016.05.21 (v1.0.7) - Added the plugin parameter that can be able to display the plugin in battle mode only.
2016.05.21 (v1.0.8) - Fixed a bug of the opacity.
2016.06.30 (v1.0.9) - Added the parameter that displays the values with commas every three digits.
2016.07.30 (v1.1.0) - Added the parameter for setting fonts.
2016.09.05 (v1.1.1) - Now you can change the image file name, and can also be used the option called 'exclude the unused files'.
2016.09.13 (v1.1.2) - Added Max Exp Text and Fixed the exp rate.
2016.09.26 (v1.1.3) :
- Added the function that could be re-positioning with all the components.
- Added the glittering gauge-bar effects in lower HP or MP value.
- Added the function that can display the name.
- HUD's opacity will decrease if the player is colliding with HUD.
- The HUDs opacity will be decreased if the party member is dead.
2016.09.27 (v1.1.4) :
- HUD's visible setting sets as the false before calling the battle.
- Added the function that allows all plugin parameters to import or export.
2016.10.08 (v1.1.5) - Fixed a bug that happens in battle.
2016.10.11 (v1.1.6) :
- Fixed the bug that happens when certain party member is removed.
- Fixed the bug about the global opacity variable.
2016.10.14 (v1.1.7) - Fixed the bug that causes the error called 'undefined bitmap' when you are adding certain party member.
2016.11.16 (v1.1.8) - Fixed a bug with the Battle Background.
2016.12.19 (v1.1.8b) - Fixed a bug that is not set up the coordinates of the face image.
2016.12.22 (v1.1.9) :
- Now this plugin does not perform a changing opacity and tone in mobile devices, because of poor performance.
- Fixed to update the texts through event handlers.
- Fixed an issue that plugins did not work due to image position data parsing errors in crosswalk.
- Fixed an issue that can not be saved due to this update.
2017.01.06 (v1.2.0) :
- Fixed to redraw the Hud when using the $gameParty.swapOrder method.
- Fixed the hud to process the refresh when the event lisnter listens a refresh request.
$gameHud.refresh() -> $gameTemp.notifyHudRefresh();
2017.01.25 (v1.2.1) - Fixed a bug that causes the null when 'battle only' parameter is true.
2017.01.26 (v1.2.2) :
- Fixed a bug that is not working to preload
- Added a new parameter that could increase the number of the HUD.
- Added parameters for user custom HUD position.
- Fixed an issue that is not working in battle test mode
2017.03.06 (v1.2.3) :
- Added many descriptions for plugin parameters and help section.
- Altered the hud to be updated all parameters once when initializing.
2017.04.13 (v1.2.4) - Fixed the issue that the parameters update function is properly not working in case of you're not using the battle addon, in a community version.
2017.06.08 (v1.2.5) - Fixed the issue that is not displaying specific image in RMMV 1.5
2017.09.17 (v1.2.6) - Fixed the bug that cause the error when restarting the game.
2017.10.26 (v1.2.7) - This plugin has applied with the new plugin manager features in the plugin parameters.
2017.10.27 (v1.2.7b) - Fixed the issue that has the endless loading when using the custom font.
2018.05.09 (v1.2.8) - Supported a face image that is made using SumRndmDde's CharacterCreatorEX plugin.
Credit and Thanks
- Biud436
Terms of Use
Free for commercial and non-commercial use.
本贴来自国际rpgmaker官方论坛作者:biud436处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/biud436s-hud-multiple-hud.58919/