Removing the indent reserved for icons in Item/Skill/Equipment menus

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
275
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

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I think it will also affect weapons and armors.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Is that what you want it to do?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top