Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # [RPGVXACE] Hiện Thanh Thông Tin Map
- # Phiên Bản : 1.0
- # Trang Chủ : https://rpgmakervn.blogspot.com/
- # (Ngôn Ngữ Tiếng Việt)
- # =============================================================================
- ($imported ||= {})[:Theo_SimpleMenuInfo] = true
- # =============================================================================
- # Trạng Thái:
- # -----------------------------------------------------------------------------
- # 2013.07.20 - Hoàn Thành
- # =============================================================================
- =begin
- Công Dụng :
- Hiện Thông tin map và số tiền vs thời gian
- Cách sử dụng:
- gắn vào xài thôi
- Điều khoản sử dụng :
- Tác giả đã viết scirpt này phục vụ ae làm game nên ae khi làm nhớ tên tác giả nhé
- Tên tác giả là Theolized
- =end
- # =============================================================================
- # Konfigurasi ada di script
- # =============================================================================
- class Window_MenuInfo < Window_Base
- TimeVocab = "Thời Gian :" # Vocab untuk time
- # -----------------------------------------------------------------------
- # Do not touch pass this line
- # -----------------------------------------------------------------------
- def initialize(width)
- super(0,0,width,fitting_height(3))
- update_placement
- refresh
- end
- def update_placement
- self.y = Graphics.height - self.height
- end
- def refresh
- contents.clear
- change_color(normal_color)
- draw_location(0,0)
- draw_playtime(0,line_height)
- draw_currency_value(value,currency_unit,0,line_height*2,contents.width)
- end
- def draw_location(x,y)
- rect = Rect.new(x,y,contents.width,line_height)
- draw_text(rect,$game_map.display_name,2)
- end
- def draw_playtime(x,y)
- rect = Rect.new(x,y,contents.width,line_height)
- change_color(system_color)
- draw_text(rect,TimeVocab)
- change_color(normal_color)
- draw_text(rect,$game_system.playtime_s,2)
- end
- def value
- $game_party.gold
- end
- def currency_unit
- Vocab::currency_unit
- end
- def update
- super
- refresh if Graphics.frame_count % 60 == 0
- end
- end
- class Scene_Menu < Scene_MenuBase
- def create_gold_window
- width = @command_window.width
- @gold_window = Window_MenuInfo.new(width)
- end
- end
Add Comment
Please, Sign In to add comment