Solo

Veteran
Veteran
Joined
Jul 26, 2013
Messages
1,104
Reaction score
154
First Language
English
Primarily Uses
RMVXA
I realize this deals with the preset scripts and might belong in the script help forum, sorry about that.

Anyway, I don't want to use icons and I was looking for a way to decrease the indent when items are displayed in selectable windows like the item and skill menus, etc... I was able to accomplish this in Yanfly's battle system (to remove action icons), but I couldn't figure out how to do it in these other menus.

Without icons, there is an indent before every item in a list; I want to remove the indent. This would probably involve changing the x-coordinate of the text or something like that, but I don't know how.

Thanks.
 

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
277
First Language
English
Primarily Uses
RMMV
I believe this is the solution you seek. Icon drawing is handled in Window_Base, along with Draw_Item_Name for menus, which contains:

#-------------------------------------------------------------------------- # * Draw Item Name # enabled : Enabled flag. When false, draw semi-transparently. #-------------------------------------------------------------------------- def draw_item_name(item, x, y, enabled = true, width = 172) return unless item draw_icon(item.icon_index, x, y, enabled) change_color(normal_color, enabled) draw_text(x + 24, y, width, line_height, item.name) endBasically remove the +24. You can also remove (or comment out) the Draw_Icon as a bonus for efficiency along with the removal of the +24.

This will affect Items and Skills if I am correct.
 
Last edited by a moderator:

Solo

Veteran
Veteran
Joined
Jul 26, 2013
Messages
1,104
Reaction score
154
First Language
English
Primarily Uses
RMVXA
I do believe that's what I was looking for. Thank you so much, Kerbonklin. :)
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,757
Reaction score
15,892
First Language
English
Primarily Uses
RMMV
I think it will also affect weapons and armors.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,757
Reaction score
15,892
First Language
English
Primarily Uses
RMMV
Is that what you want it to do?
 

Ronyunderen

Veteran
Veteran
Joined
Jun 2, 2017
Messages
102
Reaction score
90
First Language
English
Primarily Uses
N/A
I will use this script for commercial, thank you!
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,151
Reaction score
1,110
First Language
English
Primarily Uses
RMVXA
I will use this script for commercial, thank you!
Did you format it correctly? The code posted above will not do anything on it's own.
It is also converted to one line.

This is the code
Ruby:
class Window_Base
    #--------------------------------------------------------------------------
    # * Draw Item Name
    # enabled : Enabled flag. When false, draw semi-transparently.
    #--------------------------------------------------------------------------
    def draw_item_name(item, x, y, enabled = true, width = 172)
        return unless item
        draw_icon(item.icon_index, x, y, enabled)
        change_color(normal_color, enabled)
        draw_text(x + 24, y, width, line_height, item.name)
    end
end
Then if you follow the instructions,
Remove the draw_icon line and remove the + 24
 

Latest Threads

Latest Profile Posts

I now have an idea of how to approach my IGMC entry for this year's theme, as well as a working title (TBA). Given the limited time I can spare, I'm going with a game design that doesn't require a battle system. Something that could be expanded if I want to make it a longer game, but can probably be played through within 2 hours (the goal for now), at least on a speed run.
In last 5 years, I have bought 4 MSI computer components and had issues with all 4 of them. With two of them these issues were so huge the board was quite unusable. I think it's safe to day it's my last MSI product purchase.
Thanks Thesaurus.com for letting me know another word for 'noted' is 'noted'.
The capital city of Lindenburg everyone. "Capital"


Map043.png
been trying to up my action sequence game and I'm not entirely sure what to do, even with tutorials out there. but I think I'm heading in the right direction with some attacks.

Forum statistics

Threads
123,361
Messages
1,156,066
Members
161,801
Latest member
NeoBlake
Top