Advertisement
Double_X

DoubleX RMMV Status Bars Compatibility v100a

Feb 6th, 2022 (edited)
1,206
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*============================================================================
  2.  *    ## Plugin Info
  3.  *----------------------------------------------------------------------------
  4.  *    # Plugin Name
  5.  *      DoubleX RMMV Status Bars Compatiblity
  6.  *----------------------------------------------------------------------------
  7.  *    # Terms Of Use
  8.  *      1. Commercial use's always allowed and crediting me's always optional.
  9.  *      2. You shall keep this plugin's Plugin Info part's contents intact.
  10.  *      3. You shalln't claim that this plugin's written by anyone other than
  11.  *         DoubleX or my aliases. I always reserve the right to deny you from
  12.  *         using any of my plugins anymore if you've violated this.
  13.  *      4. CC BY 4.0, except those conflicting with any of the above, applies
  14.  *         to this plugin, unless you've my permissions not needing follow so.
  15.  *      5. I always reserve the right to deny you from using this plugin
  16.  *         anymore if you've violated any of the above.
  17.  *----------------------------------------------------------------------------
  18.  *    # Prerequisites
  19.  *      Plugins:
  20.  *      1. DoubleX RMMV Status Bars
  21.  *      Abilities:
  22.  *      1. Nothing special
  23.  *----------------------------------------------------------------------------
  24.  *    # Links
  25.  *      DoubleX RMMV Status Bars:
  26.  *      1. https://pastebin.com/5BMvWPbu
  27.  *      This plugin:
  28.  *      1. https://pastebin.com/AXm9hePk
  29.  *----------------------------------------------------------------------------
  30.  *    # Author
  31.  *      DoubleX
  32.  *----------------------------------------------------------------------------
  33.  *    # Changelog
  34.  *      v1.00a(GMT 0700 6-2-2022):
  35.  *      1. 1st version of this plugin finished
  36.  *============================================================================*/
  37. /*:
  38.  * @plugindesc Fixes DoubleX RMMV Status Bars compatibility issues
  39.  * @author DoubleX
  40.  *
  41.  * @help
  42.  *============================================================================
  43.  *    ## Addressed Plugins
  44.  *----------------------------------------------------------------------------
  45.  *    # Yanfly Engine Plugins - Battle Engine Extension -
  46.  *      Animated Sideview Enemies
  47.  *      1. The status bars in DoubleX RMMV Status Bars are needlessly mirrored
  48.  *         as well when mirroring animated sideview enemies
  49.  *         - Reference tag: YEP_X_AnimatedSVEnemies_UnmirrorMirroredStatusBars
  50.  *         - Extended Window_Patb_Bar.prototype.updateBar to mirror the status
  51.  *           bars again if their parents are mirrored
  52.  *         - This fix might cause minor performance issues on low-end mobiles
  53.  *============================================================================
  54.  */
  55.  
  56. var DoubleX_RMMV = DoubleX_RMMV || {};
  57. DoubleX_RMMV['Status Bars Compatibility'] = 'v1.00a';
  58.  
  59. /*============================================================================
  60.  *    ## Plugin Implementations
  61.  *       You need not edit this part as it's about how this plugin works
  62.  *----------------------------------------------------------------------------
  63.  *    # Plugin Support Info:
  64.  *      1. Prerequisites
  65.  *         - Basic knowledge of how DoubleX RMMV Status Bars and each
  66.  *           addressed plugin work
  67.  *         - Some RMMV plugin development proficiency to fully comprehend this
  68.  *----------------------------------------------------------------------------*/
  69.  
  70. if (DoubleX_RMMV["Status Bars"]) {
  71.  
  72. DoubleX_RMMV.Status_Bars_Compatibility = {};
  73.  
  74. /*----------------------------------------------------------------------------*/
  75.  
  76. // Don't check if animated sideview enemies are on as it's a general problem
  77. if (Imported.YEP_BattleEngineCore) {
  78.  
  79. (function(SBC) {
  80.  
  81.     'use strict';
  82.  
  83.     SBC.Window_Status_Bar = {};
  84.     var _WSB = SBC.Window_Status_Bar;
  85.  
  86.     _WSB._updateBarStatuses = Window_Status_Bar.prototype._updateBarStatuses;
  87.     Window_Status_Bar.prototype._updateBarStatuses = function(battler) {
  88.     // v1.00a - v1.00a; Extended
  89.         _WSB._updateBarStatuses.apply(this, arguments);
  90.         // Added to mirror the status bar again if its parent's mirrored
  91.         if (this.visible) Sprite_StateIcon.prototype.updateMirror.call(this);
  92.         // YEP_X_AnimatedSVEnemies_UnmirrorMirroredStatusBars
  93.     }; // Window_Status_Bar.prototype._updateBarStatuses
  94.  
  95. })(DoubleX_RMMV.Status_Bars_Compatibility);
  96.  
  97. } // if (Imported.YEP_BattleEngineCore)
  98.  
  99. /*----------------------------------------------------------------------------*/
  100.  
  101. } else {
  102.     alert("Place Status Bars Compatibility below Status Bars.");
  103. }
  104.  
  105. /*============================================================================*/
Advertisement
RAW Paste Data Copied
Advertisement