赞 | 0 |
VIP | 0 |
好人卡 | 1 |
积分 | 1 |
经验 | 762 |
最后登录 | 2015-8-7 |
在线时间 | 40 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 40 小时
- 注册时间
- 2009-9-3
- 帖子
- 64
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 鬼火 于 2010-8-10 00:58 编辑
高手帮忙改改下面的脚本~~~
状态脚本:- #==============================================================================
- # ■ Window_Status
- #------------------------------------------------------------------------------
- # 显示状态画面、完全规格的状态窗口。
- #==============================================================================
- class Window_Status_New < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对像
- # actor : 角色
- #--------------------------------------------------------------------------
- def initialize(actor)
- super(320, 30,280, 415)
- self.windowskin = RPG::Cache.windowskin("../system/menu/windowskins/palskin")
- self.opacity = 100
- self.contents = Bitmap.new(width , height )
- @actor = actor
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- testname = @actor.battler_name+"_h.png"
- if $加密 == true
- bitmap=Bitmap.new("Graphics/system/menu/headp/#{testname}")
- src_rect = Rect.new(0, 0, bitmap.width, bitmap.height) #——可自己调整大小
- self.contents.blt(0, y, bitmap, src_rect)
- self.contents.font.size = 18
- self.contents.font.color = text_color(6)
- draw_actor_name(@actor, 300, 0)
- self.contents.font.color = text_color(1)
-
-
- draw_actor_class(@actor, 400, 32)
- draw_actor_level(@actor, 300, 32)
- draw_actor_state(@actor, 480, 32)
- draw_actor_hp(@actor, 300, 64, 150)
- draw_actor_sp(@actor, 300, 96, 150)
- draw_actor_exp_state(@actor, 300, 128, 150)
- draw_actor_parameter_state(@actor, 480, 66, 0)
- draw_actor_parameter_state(@actor, 480, 98, 1)
- draw_actor_parameter_state(@actor, 480, 130, 2)
- draw_actor_parameter_state(@actor, 320, 162, 3)
- draw_actor_parameter_state(@actor, 320, 194, 4)
- draw_actor_parameter_state(@actor, 480, 162, 5)
- draw_actor_parameter_state(@actor, 480, 194, 6)
- self.contents.font.color = system_color
- self.contents.draw_text(300, 260, 96, 32, "身上装备")
- draw_item_name($data_weapons[@actor.weapon_id], 300, 300)
- draw_item_name($data_armors[@actor.armor1_id], 460, 300)
- draw_item_name($data_armors[@actor.armor2_id], 300, 340)
- draw_item_name($data_armors[@actor.armor3_id], 460, 340)
- draw_item_name($data_armors[@actor.armor4_id], 300, 380)
- else
- if FileTest.exist?("Graphics/system/menu/headp/#{testname}")
- bitmap=Bitmap.new("Graphics/system/menu/headp/#{testname}")
- src_rect = Rect.new(0, 0, bitmap.width, bitmap.height) #——可自己调整大小
- self.contents.blt(160, y + 50, bitmap, src_rect,80)
- self.contents.font.size = 18
- self.contents.font.color = text_color(6)
- @leftless = 296
- draw_actor_name(@actor, 300 - @leftless, 0)
- self.contents.font.color = text_color(1)
- #draw_actor_class(@actor, 400 - @leftless, 32)
- draw_actor_level(@actor, 300 - @leftless, 32)
- draw_actor_state(@actor, 480 - @leftless, 32)
- draw_actor_hp(@actor, 300 - @leftless, 64, 150)
- draw_actor_sp(@actor, 300 - @leftless, 96, 150)
- draw_actor_exp_state(@actor, 300 - @leftless, 128, 150)
- draw_actor_parameter_state(@actor, 480 - @leftless, 66, 0)
- draw_actor_parameter_state(@actor, 480 - @leftless, 98, 1)
- draw_actor_parameter_state(@actor, 480 - @leftless, 130, 2)
- draw_actor_parameter_state(@actor, 320 - @leftless, 162, 3)
- draw_actor_parameter_state(@actor, 320 - @leftless, 194, 4)
- draw_actor_parameter_state(@actor, 480 - @leftless, 162, 5)
- draw_actor_parameter_state(@actor, 480 - @leftless, 194, 6)
- self.contents.font.color = Color.new(0,0,0,255)
- self.contents.draw_text(300 - @leftless, 260, 96, 32, "身上装备")
- @newless = 10
- draw_item_name($data_weapons[@actor.weapon_id], 300 - @leftless, 300 - @newless)
- draw_item_name($data_armors[@actor.armor1_id], 460 - @leftless, 300 - @newless)
- draw_item_name($data_armors[@actor.armor2_id], 620 - @leftless, 300 - @newless)
- draw_item_name($data_armors[@actor.armor3_id], 300 - @leftless, 330 - @newless)
- draw_item_name($data_armors[@actor.armor4_id], 460 - @leftless, 330 - @newless)
- draw_item_name($data_armors[@actor.armor5_id], 620 - @leftless, 330 - @newless)
- draw_item_name($data_armors[@actor.armor6_id], 300 - @leftless, 360 - @newless)
- draw_item_name($data_armors[@actor.armor7_id], 460 - @leftless, 360 - @newless)
- else
- self.contents.font.size = 18
- self.contents.font.bold = true
- # 加粗
- src_rect = Rect.new(340, 70, 640,480)
- back_help = Bitmap.new("Graphics/system/menu/【菜单】状态背景")
- self.contents.blt(0, 0, back_help, src_rect, 255)
-
- draw_actor_graphic(@actor, 40, 135)
- #draw_actor_name(@actor, 4, 0)
- #draw_actor_class(@actor, 4 + 144, 0)
-
- draw_actor_level(@actor, 50, 62)
- draw_actor_state(@actor, 96, 64)
- #draw_actor_hp(@actor, -30, 112, 172)
- #draw_actor_sp(@actor, -30, 144, 172)
- draw_actor_parameter(@actor, 80, 10, 0)
- draw_actor_parameter(@actor, 80, 40, 1)
- draw_actor_parameter(@actor, 80, 70, 2)
- draw_actor_parameter(@actor, 80, 100, 3)
- draw_actor_parameter(@actor, 80, 130, 4)
- draw_actor_parameter(@actor, 80, 160, 5)
- draw_actor_parameter(@actor, 80, 190, 6)
- #self.contents.font.color = system_color
- #self.contents.draw_text(10, 108, 80, 32, "经验")
- #self.contents.draw_text(10, 130, 80, 32, "下一级")
- #self.contents.draw_text(80, 3, 80, 32, "等级")
- self.contents.font.color = Color.new(255,255,255,255)
-
- self.contents.draw_text(10 + 40, 130, 84, 32, @actor.exp_s, 2)
- self.contents.draw_text(10 + 40, 150, 84, 32, @actor.next_rest_exp_s, 2)
- self.contents.font.color = Color.new(0,0,0,255)
- # self.contents.draw_text(120, 60, 96, 32, "装备")
- self.contents.font.bold = false
-
- draw_item_name($data_weapons[@actor.weapon_id], 20, 240)#武器
- draw_item_name($data_armors[@actor.armor1_id], 90 , 310)#鞋
- draw_item_name($data_armors[@actor.armor2_id], 90 , 170)#头
- draw_item_name($data_armors[@actor.armor3_id], 90 , 240)#衣服
- draw_item_name($data_armors[@actor.armor4_id], 160 ,240)#书
- draw_item_name($data_armors[@actor.armor5_id], 20 , 310)#法器
- draw_item_name($data_armors[@actor.armor6_id], 20 , 170)#项链
- draw_item_name($data_armors[@actor.armor7_id], 160 ,310) #戒指
-
-
-
- end
- end
- 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)
- self.contents.draw_text(320, 368, 96, 32, $data_system.words.armor5)
- self.contents.draw_text(320, 368, 96, 32, $data_system.words.armor6)
-
- 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)
- draw_item_name($data_armors[@actor.armor5_id], 320 + 24, 400)
- draw_item_name($data_armors[@actor.armor6_id], 320 + 24, 400)
-
- end
- end
复制代码 |
|