Advertisement
Maliki79

MV_HideIcons

Apr 30th, 2017
1,194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*:
  2.  * @plugindesc adjust visibility of icons.
  3.  * @author Maliki79
  4.  *
  5.  * @help
  6.  *
  7.  *
  8.  * To hide icon, Insert <hideIcon> in the state note
  9.  * To hide icons for YF In-Battle Status, insert <hideIconYFS> in State notes
  10.  *
  11.  */
  12.  
  13. Game_BattlerBase.prototype.stateIcons = function() {
  14.     return this.states().map(function(state) {
  15.         if (!state.meta.hideIcon) return state.iconIndex;
  16.     }).filter(function(iconIndex) {
  17.         return iconIndex > 0;
  18.     });
  19. };
  20.  
  21. Window_InBattleStateList.prototype.includes = function(item) {
  22.   if (!item) return false;
  23.   if (item.name.length <= 0) return false;
  24.   if (item.iconIndex <= 0) return false;
  25.   if (item.meta.hideIconYFS) return false;
  26.   return true;
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement