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,703
Reaction score
4,669
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,703
Reaction score
4,669
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
443
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

Once again working on a game I'm not sure I'm going to sell or even publish
That feel when you're awake past midnight and suddenly you're one year older :ninja:
I miss collaborations, but I don't know how to find someone to make face parts just to share them with others, and even though I don't like writing or music, I can't trust anyone with writing on my game because it has themes that are easy to mess up, and music needs a clear tone and scenes.
People donating to me for my upcoming birthday so I can pay my team a little. Such angels, I'm so happy. T uT I smile so much my face hurts. Good souls in this world.
Playing Ragnarok Online again is very nostalgic. The last time I played it was 20 years ago, when I was ten-twelve old.
My first mmorpg.^^

Forum statistics

Threads
105,571
Messages
1,014,725
Members
137,245
Latest member
dashstop
Top