赞 | 18 |
VIP | 94 |
好人卡 | 0 |
积分 | 111 |
经验 | 60791 |
最后登录 | 2022-2-2 |
在线时间 | 1155 小时 |
Lv4.逐梦者 ST戰士
- 梦石
- 11
- 星屑
- 82
- 在线时间
- 1155 小时
- 注册时间
- 2007-5-5
- 帖子
- 3489
|
- # メニュー画面立ち絵表示 Ver 1.00
- # 配布元・サポートURL
- # http://members.jcom.home.ne.jp/cogwheel/
- #==============================================================================
- # ■ Window_Status
- #------------------------------------------------------------------------------
- # ステータス画面で表示する、フル仕様のステータスウィンドウです。
- #==============================================================================
- class Window_Status < Window_Base
- #--------------------------------------------------------------------------
- # ● オブジェクト初期化
- # actor : アクター
- #--------------------------------------------------------------------------
- def initialize(actor)
- super(0, 0, 640, 480)
- self.contents = Bitmap.new(width - 32, height - 32)
- @actor = actor
- @graphic = Sprite.new(self.viewport)
- @graphic.z = self.z + 1
- @graphic.x = 500
- @graphic.y = 480
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 解放
- #--------------------------------------------------------------------------
- def dispose
- @graphic.dispose
- super
- end
- #--------------------------------------------------------------------------
- # ● リフレッシュ
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- draw_actor_name(@actor, 4, 0)
- draw_actor_class(@actor, 4 + 144, 0)
- draw_actor_level(@actor, 16, 32)
- draw_actor_state(@actor, 16, 64)
- draw_actor_hp(@actor, 32, 112, 172)
- draw_actor_sp(@actor, 32, 144, 172)
- draw_actor_parameter(@actor, 32, 192, 0)
- draw_actor_parameter(@actor, 32, 224, 1)
- draw_actor_parameter(@actor, 32, 256, 2)
- draw_actor_parameter(@actor, 32, 304, 3)
- draw_actor_parameter(@actor, 32, 336, 4)
- draw_actor_parameter(@actor, 32, 368, 5)
- draw_actor_parameter(@actor, 32, 400, 6)
- self.contents.font.color = system_color
- self.contents.draw_text(160, 40, 80, 32, "EXP")
- self.contents.draw_text(160, 72, 80, 32, "NEXT")
- self.contents.font.color = normal_color
- self.contents.draw_text(160 + 80, 40, 84, 32, @actor.exp_s, 2)
- self.contents.draw_text(160 + 80, 72, 84, 32, @actor.next_rest_exp_s, 2)
- self.contents.font.color = system_color
- self.contents.fill_rect(224, 256, 272, 176, Color.new(255, 240, 128, 192))
- self.contents.fill_rect(225, 257, 270, 174, Color.new(0, 0, 0, 128))
- self.contents.fill_rect(236, 240, 52, 32, Color.new(192, 255, 240, 192))
- self.contents.fill_rect(237, 241, 50, 30, Color.new(0, 32, 16, 128))
- self.contents.draw_text(240, 240, 96, 32, "装備")
- draw_item_name($data_weapons[@actor.weapon_id], 240 + 16, 272)
- draw_item_name($data_armors[@actor.armor1_id], 240 + 16, 304)
- draw_item_name($data_armors[@actor.armor2_id], 240 + 16, 336)
- draw_item_name($data_armors[@actor.armor3_id], 240 + 16, 368)
- draw_item_name($data_armors[@actor.armor4_id], 240 + 16, 400)
- name = RPG::Face.seek(@actor.character_name)+"t"
- begin
- @graphic.bitmap=RPG::Cache.face(name)
- @graphic.ox = @graphic.bitmap.width * 3 / 5
- @graphic.oy = @graphic.bitmap.height
- rescue
- end
- end
- end
复制代码 |
评分
-
查看全部评分
|