Jump to content

Recommended Posts

17 minutes ago, Rikifive said:

InvSizeREGX = /<inv[\s_]+size\s*:\s*(\d+\.?\d*)>/i

(enter silly cartoonish image of someone screaming 'YEE-HAW!' whilst popping off their revolver pistols)
Yeah, that was it! Merci beaucoup.

Now, I'm going to list every change I made otherwise.

Spoiler

  def inv_max_item(item)
#   return 9999999 if item.nil? || item.inv_size == 0
    return YEA::LIMIT::ITEM_MAX if item.nil? || item.inv_size == 0
    free_slot / item.inv_size
  end
#For if one has YEA-Adjust Limits installed.

class Window_Base < Window
  def draw_inv_slot(x,y,width = contents.width,align = 2)
    txt = sprintf("%1.1f/%1.1f",$game_party.total_inv_size, $game_party.inv_max) #replaces d/d displays one float point for both inv_size and inv_max
    color = Theo::LimInv::NearMaxed_Color
    if $game_party.near_maxed?
      change_color(text_color(color))
    else
      change_color(normal_color)
    end
    draw_text(x,y,width,line_height,txt,align)
    change_color(normal_color)
  end
  
  def draw_itemsize
    item_size = @number * @item.inv_size
    total_size = $game_party.total_inv_size + 
      (@mode == :buy ? item_size : -item_size)
    txt = sprintf("%1.1f/%1.1f",total_size,$game_party.inv_max) #replaces d/d displays one float point for both inv_size and inv_max
    ypos = item_y + line_height * ($imported["YEA-ShopOptions"] ? 5 : 4)
    rect = Rect.new(4,ypos,contents.width-8,line_height)
    change_color(system_color)
    draw_text(rect,Theo::LimInv::InvSlotVocab)
    change_color(normal_color)
    draw_text(rect,txt,2)
  end
  
  def create_liminv_window
#   @lim_inv = Window_MenuLimInv.new(@gold_window.width)
    @lim_inv = Window_MenuLimInv.new(@command_window.width) #if one uses a script that removes/alters the gold window, this works in place of that
    @lim_inv.x = @command_window.x
    @lim_inv.y = @command_window.height
  end

 

 

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted