| 赞 | 91 |
| VIP | |
| 好人卡 | |
| 积分 | 105 |
| 经验 | |
| 最后登录 | 2024-6-24 |
| 在线时间 | 5019 小时 |
无限の剣制
- 梦石
- 0
- 星屑
- 10450
- 在线时间
- 5019 小时
- 注册时间
- 2013-2-28
- 回帖
- 4942
 
|
发表于 2014-11-19 22:55:20
|
显示全部楼层
以前在@taroxd 君那里get 的技能。
- #==============================================================================
- # ** Window_MapStatus
- #==============================================================================
- class Window_MapStatus < Window_Base
- #----------------------------------------------------------------------------
- # * 初始化
- #----------------------------------------------------------------------------
- def initialize
- super(0, 0, 273, 144)
- self.opacity = 0
- refresh
- end
- #----------------------------------------------------------------------------
- # * 检查内容变化
- #----------------------------------------------------------------------------
- def map_status_to_draw
- [$game_party.members[0],$game_party.gold,$game_variables[97],$game_variables[98],
- $game_variables[99],$game_variables[100]]
- end
- #----------------------------------------------------------------------------
- # * 刷新画面
- #----------------------------------------------------------------------------
- def update
- super
- refresh if @map_status_to_draw != map_status_to_draw #检查内容变化
- end
- #----------------------------------------------------------------------------
- # * 更新内容
- #----------------------------------------------------------------------------
- def refresh
- self.contents.clear
-
- @map_status_to_draw = map_status_to_draw #设置变化
-
- draw_actor_face($game_party.members[0], 0, 0)
- draw_actor_icons($game_party.members[0], 0, 72)
- draw_actor_name($game_party.members[0], 101, 24)
- draw_currency_value($game_party.gold, Vocab::currency_unit, 72, 0, self.contents.width-101)
- draw_actor_nickname($game_party.members[0], 101, 48)
- draw_text(101,72, self.contents.width,24,$game_variables[97])
- draw_text(137,72, self.contents.width,24,"时")
- draw_text( 0,96, self.contents.width,24,$game_variables[100])
- draw_text( 51,96, self.contents.width,24,"年")
- draw_text( 85,96, self.contents.width,24,$game_variables[99])
- draw_text(119,96, self.contents.width,24,"月")
- draw_text(153,96, self.contents.width,24,$game_variables[98])
- draw_text(187,96, self.contents.width,24,"日")
- end
- end
- class Scene_Map < Scene_Base
- #----------------------------------------------------------------------------
- # * 重命名方法
- #----------------------------------------------------------------------------
- alias ms_sta start
- #----------------------------------------------------------------------------
- # * 开始处理
- #----------------------------------------------------------------------------
- def start
- ms_sta
- @mapstatus_window = Window_MapStatus.new
- end
- end
复制代码 未测试 |
评分
-
查看全部评分
|