Initial import
This commit is contained in:
28
Scripts/RPG/Window_ShopSell.rb
Normal file
28
Scripts/RPG/Window_ShopSell.rb
Normal file
@@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#==============================================================================
|
||||
# ** Window_ShopSell
|
||||
#------------------------------------------------------------------------------
|
||||
# This window displays a list of items in possession for selling on the shop
|
||||
# screen.
|
||||
#==============================================================================
|
||||
|
||||
class Window_ShopSell < Window_ItemList
|
||||
#--------------------------------------------------------------------------
|
||||
# * Object Initialization
|
||||
#--------------------------------------------------------------------------
|
||||
def initialize(x, y, width, height)
|
||||
super(x, y, width, height)
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Get Activation State of Selection Item
|
||||
#--------------------------------------------------------------------------
|
||||
def current_item_enabled?
|
||||
enable?(@data[index])
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Display in Enabled State?
|
||||
#--------------------------------------------------------------------------
|
||||
def enable?(item)
|
||||
item && item.price > 0
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user