赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 809 |
最后登录 | 2013-12-18 |
在线时间 | 56 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 56 小时
- 注册时间
- 2010-9-18
- 帖子
- 7
|
脚Window_Status New! 的62行发生了NoMethodError
undefined method draw_actor_parameter_state for Window_Status New- #==============================================================================
- # ■ Window_Status
- #------------------------------------------------------------------------------
- # 显示状态画面、完全规格的状态窗口。
- #==============================================================================
- class Window_Status_New < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对像
- # actor : 角色
- #--------------------------------------------------------------------------
- def initialize(actor)
- super(-10, -10, 480, 640)
- self.windowskin = RPG::Cache.windowskin("../system/menu/windowskins/palskin")
- self.opacity =0
- self.contents = Bitmap.new(width , height )
- @actor = actor
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- bitmap1=Bitmap.new("Graphics/system/menu/人物底板")
- src_rect1 = Rect.new(0, 0, bitmap1.width, bitmap1.height)
- bitmap=Bitmap.new("Graphics/system/menu/headp/"[email protected]+"-1")
- src_rect = Rect.new(0, 0, bitmap.width, bitmap.height)
- bitmap2=Bitmap.new("Graphics/system/menu/状态底板.png")
- src_rect2 = Rect.new(0, 0,bitmap2.width, bitmap2.height)
- self.contents.blt(0, 0, bitmap1, src_rect1,255)
- self.contents.blt(10, 30, bitmap, src_rect,255)
- self.contents.blt(150, 0, bitmap2, src_rect2,255)
-
-
- self.contents.font.name = ["华文行楷","隶书","黑体","楷体","宋体"]
- self.contents.font.color.set(0,0,0)
- self.contents.font.size = 20
- $zzhok = false
-
- self.contents.draw_text(15, 327, 64, 32, "经验值")
- self.contents.draw_text(25, 345, 96, 32, @actor.exp.to_s)
- self.contents.draw_text(15, 363, 128, 32, "升级所需经验值")
- self.contents.draw_text(25, 381, 64, 32, @actor.next_exp.to_s)
- self.contents.draw_text(115, 20, 32, 32, @actor.level.to_s)
- self.contents.draw_text(110, 35, 32, 32, "级")
-
-
-
- @leftless = 296
- self.contents.font.size = 24
- self.contents.font.name = ["隶书","黑体","楷体","宋体"]
- draw_actor_name(@actor, 15, 5)
-
-
- self.contents.font.size = 22
- #draw_actor_class(@actor, 400 - @leftless, 32)
- #draw_actor_state(@actor, 480 - @leftless, 32)
-
-
- self.contents.font.name = ["华文行楷","隶书","黑体","楷体","宋体"]
- draw_actor_parameter_state(@actor, 480 - @leftless, 20, 0)
- draw_actor_parameter_state(@actor, 480 - @leftless, 40, 1)
- draw_actor_parameter_state(@actor, 480 - @leftless, 60, 2)
- draw_actor_parameter_state(@actor, 480 - @leftless, 80, 3)
- draw_actor_parameter_state(@actor, 480 - @leftless, 100, 4)
- draw_actor_parameter_state(@actor, 480 - @leftless, 120, 5)
- draw_actor_parameter_state(@actor, 480 - @leftless, 140, 6)
-
-
- self.contents.font.color = system_color
- self.contents.font.size = 24
- self.contents.draw_text(540 - @leftless, 180, 96, 32, "装备")
- @newless = 10
- self.contents.font.size = 22
- draw_item_name($data_weapons[@actor.weapon_id], 460 - @leftless, 230 - @newless)
- draw_item_name($data_armors[@actor.armor1_id], 580 - @leftless, 230 - @newless)
- draw_item_name($data_armors[@actor.armor2_id], 460 - @leftless, 260 - @newless)
- draw_item_name($data_armors[@actor.armor3_id], 580 - @leftless, 260 - @newless)
- draw_item_name($data_armors[@actor.armor4_id], 460 - @leftless, 290 - @newless)
- draw_item_name($data_armors[@actor.armor5_id], 580 - @leftless, 290 - @newless)
- $zzhok = false
- end
- def dummy
- self.contents.font.color = system_color
- self.contents.draw_text(320, 112, 96, 32, $data_system.words.weapon)
- self.contents.draw_text(320, 176, 96, 32, $data_system.words.armor1)
- self.contents.draw_text(320, 240, 96, 32, $data_system.words.armor2)
- self.contents.draw_text(320, 304, 96, 32, $data_system.words.armor3)
- self.contents.draw_text(320, 368, 96, 32, $data_system.words.armor4)
- draw_item_name($data_weapons[@actor.weapon_id], 320 + 24, 144)
- draw_item_name($data_armors[@actor.armor1_id], 320 + 24, 208)
- draw_item_name($data_armors[@actor.armor2_id], 320 + 24, 272)
- draw_item_name($data_armors[@actor.armor3_id], 320 + 24, 336)
- draw_item_name($data_armors[@actor.armor4_id], 320 + 24, 400)
- end
- end
复制代码 |
|