Need some help with item line sizes

I'm in need of a little help, I googled it but could not find anything on it.


I made a custom equip screen and the items boxes are way to long for what I am trying to do, I need to shorten the length but, I do not know how.


Here are some screenshots of what I mean.


Thank You


equip screen.jpgequip screen 2.jpg


As you can see it looks pretty ugly like that, I'd like the items to fit inside my backpack.


Forgive me if this post is not in the right place. also I have looked in the scripts but I have no idea what to look for, If I knew what to search for in the scripts I might be able to change it.
You have to reduce your window width, but I don't think someone can help you without reading the script. Could you provide a link?
The only scripts I am using that might effect that is


Yanfly Engine Ace - Ace Core Engine v1.09


http://pastebin.com/JixNBpBy


I'm not using a script that would effect my problem. I think the setting is inside one of the default scripts.


I'm just trying to shrink the size of the item bars they are way to wide, like for instance short sword then there is a lot of left over bar after the text. See image above.


it is over laping my background images. I highlighted it in red, I changed the line height but I can't find anyplace to edit width?


I seen something in the script's that shows this


#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
#  This is a super class of all windows within the game.
#==============================================================================


class Window_Base < Window
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(x, y, width, height)
    super
    self.windowskin = Cache.system("Window")
    update_padding
    update_tone
    create_contents
    @opening = @closing = false
  end
  #--------------------------------------------------------------------------
  # * Free
  #--------------------------------------------------------------------------
  def dispose
    contents.dispose unless disposed?
    super
  end
  #--------------------------------------------------------------------------
  # * Get Line Height
  #--------------------------------------------------------------------------
  def line_height
    return 24
That script doesn't change your menu, it only resizes your menu according to the new game window width, and the default menu has windows of a different size of those you show in the picture, so you definitly have a script (not the default one) that changes your equip menu...
That script doesn't change your menu, it only resizes your menu according to the new game window width, and the default menu has windows of a different size of those you show in the picture, so you definitly have a script (not the default one) that changes your equip menu...



Well what I'm trying to do is make it so the game does not draw a huge width when I highlight a weapon in the equip menu


Window.png


the game draws that to wide.


I guess I'll check my scripts again and see if any other script would be doing it, Also I made a new project with no scripts and it does the same thing it draws the items way to wide in the equip menu

Window.png
I know it is supposed to draw that image but that doesn't change the fact that what's wrong is your window size, not your cursor image. If your cursor is larger then it means your window is larger (24 px larger than your cursor), it is difficult to see in your picture because your window has no border but just to get what I mean try to use a windowskin with borders and you will see.


EDIT:


What youre using is probably a script that changes the default appearence of the equip menu. Try looking into the scripts you added and use the search function (Ctrl + F) to look for Scene_Equip.


I am quite sure you have a script that overwrites that scene.
ok let me do some checking...thank you


Is there a way to shrink the blinking curses?
If you don't find it just add this in your Material scection and change HORIZ_SHRINK_R and HORIZ_SHRINK_L to let your windw fit your needs.

Spoiler
Code:
module HEWC
	
	HORIZ_SHRINK_R = 24 #This will reduce your window width
	HORIZ_SHRINK_L = 24 #This will reduce your window width and change your window x
	
end

class Window_EquipItem < Window_ItemList

	def initialize(x, y, width, height)
		super(window_x(x), y, window_width(width), height)
		@actor = nil
		@slot_id = 0
	end
	
	def window_width(width)
		return (width - HEWC::HORIZ_SHRINK_L - HEWC::HORIZ_SHRINK_R)
	end
	
	def window_x(x)
		return (x + HEWC::HORIZ_SHRINK_L)
	end
	
end



This should do the trick.
If you don't find it just add this in your Material scection and change HORIZ_SHRINK_R and HORIZ_SHRINK_L to let your windw fit your needs.

Spoiler
Code:
module HEWC
	
	HORIZ_SHRINK_R = 24 #This will reduce your window width
	HORIZ_SHRINK_L = 24 #This will reduce your window width and change your window x
	
end

class Window_EquipItem < Window_ItemList

	def initialize(x, y, width, height)
		super(window_x(x), y, window_width(width), height)
		@actor = nil
		@slot_id = 0
	end
	
	def window_width(width)
		return (width - HEWC::HORIZ_SHRINK_L - HEWC::HORIZ_SHRINK_R)
	end
	
	def window_x(x)
		return (x + HEWC::HORIZ_SHRINK_L)
	end
	
end



This should do the trick.

Wow thank you very much!! that did the trick, thought I was going nutz. Many thx Heirukichi that was very nice of you!


Mods can close this it is fixed.
When you want a thread closed, please use the Report button on your opening post and ask for it to be closed.  Mods may not see your post, but will see your report.


Thanks.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/need-some-help-with-item-line-sizes.71226/