赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 869 |
最后登录 | 2013-3-20 |
在线时间 | 107 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 107 小时
- 注册时间
- 2010-10-10
- 帖子
- 228
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 梦到叶子了 于 2013-3-3 12:46 编辑
我自己调了一个状态栏的样式,但是调完发现系统默认的文字去不掉,我只想要显示的数值,因为我已经把文字在PS里制作了,默认的不好看。
对了,不要告诉我直接到数据库的系统里删掉属性的名称,那样的话我其他地方会出错的,谢谢。
这是脚本:- #==============================================================================
- # ■ Window_Status
- #------------------------------------------------------------------------------
- # 显示状态画面、完全规格的状态窗口。
- #==============================================================================
- class Window_Status < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对像
- # actor : 角色
- #--------------------------------------------------------------------------
- def initialize(actor)
- super(350, 50, 640, 480)
- self.contents = Bitmap.new(width - 32, height - 32)
- [url=home.php?mod=space&uid=95897]@actor[/url] = actor
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
-
- self.contents.font.color = normal_color #默认字体颜色
- self.contents.font.name = "宋体"
- self.contents.font.size = 14 #字体大小
- self.contents.font.bold = true
-
-
- #draw_actor_graphic(@actor, 40, 112)
-
- # --
-
- # 生成位图
- bitmap = Bitmap.new("Graphics/Face/f_#{@actor.name}.png")
-
- # 生成矩形
- rect = Rect.new(0, 0, bitmap.width, bitmap.height)
-
- # 显示位图
- self.contents.blt(
-
- # x坐标, y坐标
- 30 - rect.width / 2, 72 - rect.height / 2,
-
- # 指向位图
- bitmap,
-
- # 指向矩形
- rect
- )
-
- draw_actor_name(@actor, 160, 12)
- # draw_actor_class(@actor,210, 77)
- draw_actor_level(@actor, -1, 150)
- #draw_actor_state(@actor, 210, 99)
- # draw_actor_hp(@actor, -15, 192, 172)
- # draw_actor_sp(@actor, -15, 222, 172)
- draw_actor_parameter(@actor, 60, 210, 0)#伤害
- draw_actor_parameter(@actor, -80, 194, 1)#物理抗性
- draw_actor_parameter(@actor, -80, 231, 2)#法术抗性
- draw_actor_parameter(@actor, 60, 114, 3)#力量11111111111111
- draw_actor_parameter(@actor, 60, 146, 4)#灵性
- draw_actor_parameter(@actor, 60, 241, 5)#敏捷
- draw_actor_parameter(@actor,60, 179, 6)#法力
- self.contents.font.color = system_color
- # self.contents.draw_text(320, 48, 80, 32, "经验")
- #self.contents.draw_text(320, 80, 80, 32, "需求经验")
- self.contents.font.color = normal_color
- #self.contents.draw_text(320 + 80, 48, 84, 32, @actor.exp_s, 2)
- #self.contents.draw_text(320 + 80, 80, 84, 32, @actor.next_rest_exp_s, 2)
- self.contents.font.color = system_color
- # self.contents.draw_text(320, 160, 96, 32, "装备")
- # draw_item_name($data_weapons[@actor.weapon_id], 320 + 16, 208)
- # draw_item_name($data_armors[@actor.armor1_id], 320 + 16, 256)
- # draw_item_name($data_armors[@actor.armor2_id], 320 + 16, 304)
- # draw_item_name($data_armors[@actor.armor3_id], 320 + 16, 352)
- # draw_item_name($data_armors[@actor.armor4_id], 320 + 16, 400)
- 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
复制代码 |
|