Guest User

Shopaholic Page 10

a guest
Jul 29th, 2012
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #-------------------------------------------------------------------------------
  2. # page 10 of 12
  3. # Shopoholic v 2.0
  4. # code by cmpsr2000
  5. # available exclusively @ rpgrevolution.com/forums
  6. # Released June 25, 2008
  7. #
  8. #-------------------------------------------------------------------------------
  9. #-------------------------------------------------------------------------------
  10. # ** Window_Shop_Gold
  11. #-------------------------------------------------------------------------------
  12. # This window displays the amount of gold and available credit from banks.
  13. #-------------------------------------------------------------------------------
  14. class Window_Shop_Gold < Window_Base
  15. #--------------------------------------------------------------------------
  16. # * Object Initialization
  17. # x : window X coordinate
  18. # y : window Y coordinate
  19. #--------------------------------------------------------------------------
  20. def initialize(x, y)
  21. super(x, y, 160, WLH + 32)
  22. refresh
  23. end
  24. #--------------------------------------------------------------------------
  25. # * Refresh
  26. #--------------------------------------------------------------------------
  27. def refresh
  28. self.contents.clear
  29. if $game_shopping.shopsAcceptDebit
  30. draw_currency_value($game_party.netLiquidity, 4, 0, 120)
  31. else
  32. draw_currency_value($game_party.gold, 4, 0, 120)
  33. end
  34. end
  35. end
RAW Paste Data