赞 | 0 |
VIP | 3 |
好人卡 | 0 |
积分 | 0 |
经验 | 11284 |
最后登录 | 2016-8-13 |
在线时间 | 228 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 49
- 在线时间
- 228 小时
- 注册时间
- 2010-8-11
- 帖子
- 475
|
本帖最后由 Cola酱 于 2010-10-1 10:59 编辑
呼 改好了
效果图:
话说那个13个字符的限制很BT啊
这样只能放下5个了
==========================分 割 线=========================
脚本Scene_Battle 3###(就是他改的那个)
82行:@kjj = Window_Skill_s.new(@active_battler) 改为@kjj = Window_Skill_s.new(@active_battler)
下面这个替换原来的Window_Skill_s- class Window_Skill_s < Window_Selectable
- #--------------------------------------------------------------------------
- # ● 初始化对像
- #--------------------------------------------------------------------------
- def initialize(actor)
- @actor = actor
- super(0, 480-96, 640, 96)
- #super(480, 0, 160, 480)
- self.contents = Bitmap.new(width - 32, height - 32)
- @item_max = 5
- @column_max = 5
- @commands = ["1","2","3","4","5"]
- refresh
- self.index = 0
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- for i in 0...@item_max
- draw_item(i)
- end
- end
- #--------------------------------------------------------------------------
- # ● 描绘项目
- # index : 项目编号
- #--------------------------------------------------------------------------
- def draw_item(index)
- x = index*60*2+30#4 + index * 160
- self.contents.font.size = 18
- self.contents.draw_text(x-25, 0, 32, 32, @commands[index])
- if @actor.skill_s[index] != ""
-
- bitmap = RPG::Cache.icon($data_skills[@actor.skill_s[index]].icon_name)
- opacity = self.contents.font.color == normal_color ? 255 : 128
- self.contents.blt(x-10, 8, bitmap, Rect.new(0, 0, 24, 24), opacity)
-
- self.contents.draw_text(x-48, 32, 160, 32, $data_skills[@actor.skill_s[index]].name,1)
- end
- end
- #--------------------------------------------------------------------------
- # ● 刷新光标矩形
- #--------------------------------------------------------------------------
- def update_cursor_rect
- if @index < 0
- self.cursor_rect.empty
- else
- if $game_temp.in_battle
- self.cursor_rect.empty
- else
- self.cursor_rect.set(@index*120, 0, 64+48+12, 64)
- end
- end
- end
- end
复制代码 再把这个插入到MAIN前- class Window_Skill_sr < Window_Selectable
- #--------------------------------------------------------------------------
- # ● 初始化对像
- #--------------------------------------------------------------------------
- def initialize(actor)
- @actor = actor
- #super(0, 480-96, 640, 96)
- super(480, 0, 160, 320)
- self.contents = Bitmap.new(width - 32, height - 32)
- @item_max = 5
- @column_max = 1
- @commands = ["1","2","3","4","5"]
- refresh
- self.index = 0
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- for i in 0...@item_max
- draw_item(i)
- end
- end
- #--------------------------------------------------------------------------
- # ● 描绘项目
- # index : 项目编号
- #--------------------------------------------------------------------------
- def draw_item(index)
- x = 32
- y = index*60
- self.contents.font.size = 18
- self.contents.draw_text(x-25, y, 32, 32, @commands[index])
- if @actor.skill_s[index] != ""
-
- bitmap = RPG::Cache.icon($data_skills[@actor.skill_s[index]].icon_name)
- opacity = self.contents.font.color == normal_color ? 255 : 128
- self.contents.blt(x-12, 8+y, bitmap, Rect.new(0, 0, 24, 24), opacity)
-
- self.contents.draw_text(x-48 , y+32, 160, 32, $data_skills[@actor.skill_s[index]].name,1)
- end
- end
- #--------------------------------------------------------------------------
- # ● 刷新光标矩形
- #--------------------------------------------------------------------------
- def update_cursor_rect
- if @index < 0
- self.cursor_rect.empty
- else
- if $game_temp.in_battle
- self.cursor_rect.empty
- else
- self.cursor_rect.set(@index*60, 0, 64, 64)
- end
- end
- end
- end
复制代码 MS就可以了
这个是工程
快捷键gx.rar
(187.21 KB, 下载次数: 129)
不过高度不是480
因为这样会有一大块空白
等会再改一下吧 |
|