Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*:
- * @plugindesc adjust visibility of icons.
- * @author Maliki79
- *
- * @help
- *
- *
- * To hide icon, Insert <hideIcon> in the state note
- * To hide icons for YF In-Battle Status, insert <hideIconYFS> in State notes
- *
- */
- Game_BattlerBase.prototype.stateIcons = function() {
- return this.states().map(function(state) {
- if (!state.meta.hideIcon) return state.iconIndex;
- }).filter(function(iconIndex) {
- return iconIndex > 0;
- });
- };
- Window_InBattleStateList.prototype.includes = function(item) {
- if (!item) return false;
- if (item.name.length <= 0) return false;
- if (item.iconIndex <= 0) return false;
- if (item.meta.hideIconYFS) return false;
- return true;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement