Show description for hovered items in 'Select Item' event

Discussion in 'JS Plugin Requests' started by Geoff Moore, Oct 12, 2017.

  1. Geoff Moore

    Geoff Moore Composer for Hire Veteran

    Messages:
    1,402
    Likes Received:
    739
    First Language:
    English
    Primarily Uses:
    N/A
    It would be really helpful to be able to show the item's description while hovering over a key item in the 'Select Item' effect. It looks like someone did this with a single line of code in Ace if it helps as a reference:

    https://forums.rpgmakerweb.com/index.php?threads/select-key-item-with-item-descriptions.34521/

    The description would appear in a separate window below the 'select item' dialogue, or in a 'show message' at the bottom of the screen.

    If anyone has the time to look at this that would be amazing, it would be very helpful for my IGMC entry. Thanks for reading!
     
    #1
  2. Poryg

    Poryg Dark Lord of the Castle of Javascreeps Veteran

    Messages:
    3,929
    Likes Received:
    9,926
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    Just to be safe - what kind of a description do you mean? The item description defined in the editor or some kind of a custom field for a completely custom description? Because you can achieve a custom description box with Yanfly's item core :)
    Screenshot_335.png
    As you can see, up there there is a description box... The default one :D And down there I have a little story describing that item :D
     
    Last edited: Oct 12, 2017
    #2
    Geoff Moore likes this.
  3. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    Here is a super-ultra quick and dirty solution. Should hopefully play nice with other plugins.

     
    #3
    Geoff Moore likes this.
  4. Geoff Moore

    Geoff Moore Composer for Hire Veteran

    Messages:
    1,402
    Likes Received:
    739
    First Language:
    English
    Primarily Uses:
    N/A
    @Poryg: I might well check that plugin out shortly... thanks!

    @Ossra: I really appreciate that, it works perfectly! Ideally for my game the windows would appear the other way round, so the description is below the select window. Would that be an easy tweak? Thank you so much again :D
     
    #4
  5. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    841
    Likes Received:
    602
    First Language:
    English
    Primarily Uses:
    RMMV
    @Geoff Moore Sure! Just change line 8 ~ 10 :

    Code:
        if (this._helpWindow) {
          this._helpWindow.y = this.y + this.height;
        }
    
     
    #5
    Geoff Moore likes this.
  6. Geoff Moore

    Geoff Moore Composer for Hire Veteran

    Messages:
    1,402
    Likes Received:
    739
    First Language:
    English
    Primarily Uses:
    N/A
    @Ossra: It's perfect! I'll be sure to include you in my credits, thank you so much : )
     
    #6

Share This Page