赞 | 0 |
VIP | 0 |
好人卡 | 2 |
积分 | 0 |
经验 | 713 |
最后登录 | 2012-2-15 |
在线时间 | 678 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 48
- 在线时间
- 678 小时
- 注册时间
- 2010-8-11
- 帖子
- 1533
|
- module XRXSVDsIn3
- Width = 80
- Height = 9
- Color1 = 20
- Color2 = 21
- end
- class Game_System
- attr_accessor :wide_screen
- end
- class Window_Base < Window
- def draw_actor_level(actor, x, y)
- if draw_exp_gauge_scene?
- w = XRXSVDsIn3::Width * ($game_system.wide_screen ? 3 : 4) / 4
- draw_actor_exp_gauge(actor, x, y, w)
- else
- w = 24
- end
- self.contents.font.color = system_color
- self.contents.draw_text(x, y, 32, WLH, Vocab::level_a)
- self.contents.font.color = normal_color
- self.contents.draw_text(x + 32, y, w - 32, WLH, actor.level, 2)
- end
- def draw_exp_gauge_scene?
- return [Scene_Menu, Scene_Item, Scene_Skill, Scene_Equip].include?($scene.class)
- end
- def draw_actor_exp_gauge(actor, x, y, width = 120)
- gw = width * actor.exp_percent / 100
- gc1 = text_color(XRXSVDsIn3::Color1)
- gc2 = text_color(XRXSVDsIn3::Color2)
- h = XRXSVDsIn3::Height
- self.contents.fill_rect(x, y + WLH - h - 2, width, h, gauge_back_color)
- self.contents.gradient_fill_rect(x, y + WLH - h - 2, gw, h, gc1, gc2)
- end
- end
- class Game_Actor < Game_Battler
- def exp_percent
- need_next_level = @exp_list[self.level + 1] - @exp_list[self.level]
- exp_now_level = @exp - @exp_list[self.level]
- return 100 * exp_now_level / need_next_level
- end
- end
复制代码 于是,我昨天回答的帖子内容
出现了……囧 |
评分
-
查看全部评分
|