MUSH Plugins: Item Collector Menu

Azulli

Villager
Member
Joined
Jun 6, 2020
Messages
10
Reaction score
3
First Language
Portuguese
Primarily Uses
RMMV
Are you simply trying to draw the item drescription in the box you highlighted (meaning you removed the item parameters?)? If so it really takes 2 seconds to change, I could do it for you if you want.
Exactly, I just need the item description (picture below) to be in that window too. Could you please do it then?
1591565623181.png
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,697
Reaction score
4,657
First Language
English
Primarily Uses
RMMZ
Exactly, I just need the item description (picture below) to be in that window too. Could you please do it then?
View attachment 146883
Just replace Window_ItemCollectorInfo.prototype.refresh (the entire function) by this:
Code:
Window_ItemCollectorInfo.prototype.refresh = function() {
    this.contents.clear();
    if (this._nowItem != null && $gameParty.getSeenItem(this._nowItem)) {
        var it = this._nowItem;
        var backColor = $mushFeatures.params['MIT_ParametersBackColor'];
        var u = this.width - 36 - 128;
        this.contents.fillRect(0, 0, 128, 128, backColor);
        this.contents.fillRect(136, 0, u, 32, backColor);
        this.contents.fillRect(136, 54, u / 3 - 2, 32, backColor);
        this.contents.fillRect(140 + u / 3, 54, u / 3 * 2, 32, backColor);
        this.contents.fillRect(136, 96, u / 3 - 2, 32, backColor);
        this.contents.fillRect(140 + u / 3, 96, u / 3 * 2, 32, backColor);
        if (Imported.YEP_X_ItemPictureImg == true) {
            if (it.pictureImg != '' && it.pictureImg != undefined) {
                this.setUpYanflySprite(it.pictureImg, it.pictureHue);
            } else {
                this.clearSpriteYanfly();
                this.mush_drawIconPlus(it.iconIndex, 0, 0, 4);
            }
        } else {
            this.mush_drawIconPlus(it.iconIndex, 0, 0, 4);
        }
        this.changeTextColor(this.systemColor());
        this.drawText(it.name, 140, 0, this.width - 164, 'center');
        this.drawText($mushFeatures.params['MIT_TextId'] + ':', 138, 54, u / 3 - 10, 'left');
        this.drawText($mushFeatures.params['MIT_TextType'] + ':', 140 + u / 3 + 2, 54, u / 3 * 2, 'left');
        this.drawText($mushFeatures.params['MIT_TextOwn'] + ':', 138, 96, u / 3 - 10, 'left');
        this.drawText($mushFeatures.params['MIT_TextPrice'] + ':', 140 + u / 3 + 2, 96, u / 3 * 2, 'left');
        this.resetTextColor();
        var type = this.getItemType(it);
        var typeL = $mushFeatures.params['MIT_TextType'].length * 18;
        var quantity = this.getItemQuantity(it);
        this.drawText(it.id, 140, 54, u / 3 - 8, 'right');
        this.drawText(type, 140 + u / 3 + typeL, 54, u - (u / 3 + 18) - typeL, 'right');
        this.drawText(quantity? quantity : 0, 140, 96, u / 3 - 8, 'right');
        this.drawText(it.price, 140 + u / 3, 96, u - (u / 3 + 18), 'right');
        // Modified from here on
        this.drawTextEx(it.description, 0, 136, this.width - 36);
    } else {
        if (this._sprtYEP) {
            this._sprtYEP.hide();
        }
    }
};
 

Azulli

Villager
Member
Joined
Jun 6, 2020
Messages
10
Reaction score
3
First Language
Portuguese
Primarily Uses
RMMV
That's it, thank you very much, exactly what I needed! =D
 

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
567
Reaction score
196
First Language
English
Primarily Uses
RMMV
Hey, would you be able to help me figure out an issue I'm running into with getting the plugin to function.

After pasting in the plugin (without editing any plugin parameters), I get the following error when trying to open the scene using the plugin command ItemCollector open:

Capture.PNG
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,697
Reaction score
4,657
First Language
English
Primarily Uses
RMMZ
@Vis_Mage What did you name the plugin? The error refers to a line that refers the parameters of the plugin, which usually points to an error due to plugin renaming.
 

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
567
Reaction score
196
First Language
English
Primarily Uses
RMMV
Huh, I never realized renaming plugins would actually affect them. That explains it though, I had removed the $ in the file name. Thank you for the quick help!
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
442
Reaction score
342
First Language
English
Primarily Uses
N/A
@MushroomCake28 Hey how are ya?

I have an update patch for this wonderful plugin, created for my game. However, I do not want to host the update for others because I dunno where I can do so..... just for a free patch?

My patch adds in support for yanfly element absorption etc, and fixes some of the graphical glitches, would you like to host this patch somewhere for anyone who is interested in it?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

rux
The most words I have ever written in an entire document is in my game's script, jeez i have a lot of characters that ramble on
Yes! I finally did something! This is a picture I drew of what I wish I looked like; I hope that you guys like it!
Finished that egg-sitting mini-game I mentioned here a couple weeks back. Now to fix the weather system so it doesn't rain indoors while you're playing it. >.> A simple fix in itself; leave it to me to take it as an excuse to completely revamp the time/weather/lighting system from scratch.
I'm really tempting to pre order cyberpunk 2077... should I do it or not :/ I really want to play the game but don't want to take a big hit to my saving because of it

Forum statistics

Threads
105,486
Messages
1,014,117
Members
137,141
Latest member
Darkrising
Top