Release 0.0.1.8.8.7
This commit is contained in:
1 parent
3c8a17aa78
commit
c7beab414c
16283 files changed
+768761
-2
No files matched your search
@@ -0,0 +1,42 @@
|
||||
#==============================================================================
|
||||
# This script has been altered by Kslander for the need of LonaRPG
|
||||
#==============================================================================
|
||||
#==============================================================================
|
||||
# ** Window_ShopCommand
|
||||
#------------------------------------------------------------------------------
|
||||
# This window is for selecting buy/sell on the shop screen.
|
||||
#==============================================================================
|
||||
|
||||
class Window_ShopCommand < Window_HorzCommand
|
||||
#--------------------------------------------------------------------------
|
||||
# * Object Initialization
|
||||
#--------------------------------------------------------------------------
|
||||
def initialize(window_width, purchase_only)
|
||||
@window_width = window_width
|
||||
@purchase_only = purchase_only
|
||||
super(0, 0)
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Get Window Width
|
||||
#--------------------------------------------------------------------------
|
||||
def window_width
|
||||
@window_width
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Get Digit Count
|
||||
#--------------------------------------------------------------------------
|
||||
def col_max
|
||||
return 3
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Create Command List
|
||||
#--------------------------------------------------------------------------
|
||||
def make_command_list
|
||||
add_command($game_text["menu:Shop/Buy"], :buy)
|
||||
add_command($game_text["menu:Shop/Sell"], :sell, !@purchase_only)
|
||||
add_command($game_text["menu:Shop/Cancel"], :cancel)
|
||||
#add_command(Vocab::ShopBuy, :buy)
|
||||
#add_command(Vocab::ShopSell, :sell, !@purchase_only)
|
||||
#add_command(Vocab::ShopCancel, :cancel)
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user