DoubleX RMMV Status Bars Compatibility
#1
DoubleX RMMV Status Bars Compatibility

Version: v1.00a

Introduction

* Fixes DoubleX RMMV Status Bars compatibility issues

Prerequisites

DoubleX RMMV Status Bars
* Nothing special for most rudimetary use cases


Script

Code:
/*============================================================================
*    ## Plugin Info
*----------------------------------------------------------------------------
*    # Plugin Name
*      DoubleX RMMV Status Bars Compatiblity
*----------------------------------------------------------------------------
*    # Terms Of Use
*      1. Commercial use's always allowed and crediting me's always optional.
*      2. You shall keep this plugin's Plugin Info part's contents intact.
*      3. You shalln't claim that this plugin's written by anyone other than
*         DoubleX or my aliases. I always reserve the right to deny you from
*         using any of my plugins anymore if you've violated this.
*      4. CC BY 4.0, except those conflicting with any of the above, applies
*         to this plugin, unless you've my permissions not needing follow so.
*      5. I always reserve the right to deny you from using this plugin
*         anymore if you've violated any of the above.
*----------------------------------------------------------------------------
*    # Prerequisites
*      Plugins:
*      1. DoubleX RMMV Status Bars
*      Abilities:
*      1. Nothing special
*----------------------------------------------------------------------------
*    # Links
*      DoubleX RMMV Status Bars:
*      1. https://pastebin.com/5BMvWPbu
*      This plugin:
*      1. https://pastebin.com/AXm9hePk
*      Mentioned Patreon Supporters:
*      https://www.patreon.com/posts/71738797
*----------------------------------------------------------------------------
*    # Author
*      DoubleX
*----------------------------------------------------------------------------
*    # Changelog
*      v1.00a(GMT 0700 6-2-2022):
*      1. 1st version of this plugin finished
*============================================================================*/
/*:
* @plugindesc Fixes DoubleX RMMV Status Bars compatibility issues
* @author DoubleX
*
* @help
*============================================================================
*    ## Addressed Plugins
*----------------------------------------------------------------------------
*    # Yanfly Engine Plugins - Battle Engine Extension -
*      Animated Sideview Enemies
*      1. The status bars in DoubleX RMMV Status Bars are needlessly mirrored
*         as well when mirroring animated sideview enemies
*         - Reference tag: YEP_X_AnimatedSVEnemies_UnmirrorMirroredStatusBars
*         - Extended Window_Patb_Bar.prototype.updateBar to mirror the status
*           bars again if their parents are mirrored
*         - This fix might cause minor performance issues on low-end mobiles
*============================================================================
*/

var DoubleX_RMMV = DoubleX_RMMV || {};
DoubleX_RMMV['Status Bars Compatibility'] = 'v1.00a';

/*============================================================================
*    ## Plugin Implementations
*       You need not edit this part as it's about how this plugin works
*----------------------------------------------------------------------------
*    # Plugin Support Info:
*      1. Prerequisites
*         - Basic knowledge of how DoubleX RMMV Status Bars and each
*           addressed plugin work
*         - Some RMMV plugin development proficiency to fully comprehend this
*----------------------------------------------------------------------------*/

if (DoubleX_RMMV["Status Bars"]) {

DoubleX_RMMV.Status_Bars_Compatibility = {};

/*----------------------------------------------------------------------------*/

// Don't check if animated sideview enemies are on as it's a general problem
if (Imported.YEP_BattleEngineCore) {

(function(SBC) {

    'use strict';

    SBC.Window_Status_Bar = {};
    var _WSB = SBC.Window_Status_Bar;

    _WSB._updateBarStatuses = Window_Status_Bar.prototype._updateBarStatuses;
    Window_Status_Bar.prototype._updateBarStatuses = function(battler) {
    // v1.00a - v1.00a; Extended
        _WSB._updateBarStatuses.apply(this, arguments);
        // Added to mirror the status bar again if its parent's mirrored
        if (this.visible) Sprite_StateIcon.prototype.updateMirror.call(this);
        // YEP_X_AnimatedSVEnemies_UnmirrorMirroredStatusBars
    }; // Window_Status_Bar.prototype._updateBarStatuses

})(DoubleX_RMMV.Status_Bars_Compatibility);

} // if (Imported.YEP_BattleEngineCore)

/*----------------------------------------------------------------------------*/

} else {
    alert("Place Status Bars Compatibility below Status Bars.");
}

/*============================================================================*/

FAQ

* None so far

Credits and Thanks

* None

Author's Notes

* None so far

Terms and Conditions

* Commercial use's always allowed and crediting me's always optional.
* You shall keep this plugin's Plugin Info part's contents intact.
*
You shalln't claim that this plugin's written by anyone other than DoubleX or my aliases. I always reserve the right to deny you from using any of my plugins anymore if you've violated this.
* CC BY 4.0, except those conflicting with any of the above, applies to this plugin, unless you've my permissions not needing follow so.
* I always reserve the right to deny you from using this plugin anymore if you've violated any of the above.

Changelog

v1.00a(GMT 0700 6-2-2022):
1. 1st version of this script finished
My RMVXA/RMMV/RMMZ scripts/plugins:
http://rpgmaker.net/users/DoubleX/scripts/
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   DoubleX RMMV Popularized ATB Compatibility DoubleX 16 23,154 12-26-2022, 06:17 AM
Last Post: DoubleX
   DoubleX RMMV Confusion Edit DoubleX 3 7,633 09-09-2022, 11:12 AM
Last Post: DoubleX
   DoubleX RMMV Popularized ATB Clock DoubleX 2 6,473 03-25-2022, 01:04 PM
Last Post: DoubleX
   DoubleX RMMV Popularized ATB Bar DoubleX 3 8,564 05-19-2021, 06:10 AM
Last Post: DoubleX
   DoubleX RMMV Skill Hotkeys DoubleX 2 6,009 02-13-2021, 04:59 AM
Last Post: DoubleX
   DoubleX RMMZ Skill Item Cooldown DoubleX 4 6,133 02-07-2021, 04:11 PM
Last Post: DoubleX
   DoubleX RMMZ Skill Item Triggers DoubleX 3 5,573 12-26-2020, 04:00 PM
Last Post: DoubleX
   DoubleX RMMZ TPBS Configurations Edit DoubleX 3 5,670 12-25-2020, 12:30 PM
Last Post: DoubleX
   DoubleX RMMV Superlative ATB DoubleX 2 4,463 12-11-2020, 02:25 PM
Last Post: DoubleX
   DoubleX RMMZ Targeting AI DoubleX 3 4,680 12-02-2020, 04:22 AM
Last Post: DoubleX



Users browsing this thread: 2 Guest(s)