赞 | 1 |
VIP | 171 |
好人卡 | 21 |
积分 | 4 |
经验 | 59678 |
最后登录 | 2024-7-30 |
在线时间 | 1292 小时 |
- 梦石
- 0
- 星屑
- 362
- 在线时间
- 1292 小时
- 注册时间
- 2013-1-12
- 帖子
- 3590
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
Screen shot:
Credits:
Panda King(76213585)
Usage:
Plug and play if you want to go with default setting....
This script....................:
1.Draw icon for stats
2.Can draw icon in both Skill and Menu window
Free for commercial use if you like (but if you use my system.... it probably isn't a serious commercial game....)- =begin
- ===============================================================================
- 角色状态前绘制图标/Draw Icon Before Stuts 2.0V
- By:Panda King(76213585)
- ===============================================================================
- 【內容说明/Script Usage】
-
- 在原本菜单的绘製角色状态加入了绘制图标的功能.(有什麽用呢...?)/
- Add draw_icon command in the draw stats method.(Who on earth need this?)
- 更新加入了技能界面也绘制图标....../
- For this update, also support drawing icon in skill window
- =end
- module Menu_Icon_Setting
- Function = true #是否使用腳本?/Run script?
- Menu_Window = true #是否在菜单界面绘制图标?/Draw icon stats in menu?
- Skill_Window = false #是否在技能界面绘制图标?/Draw icon stats in skill window?
- Name_Draw = [true, 360] #是否在名字前绘制图标? [是/否, 图标号码]/Draw Icon before name?[true/false, icon index]
- Class_Draw = [true, 180] #是否在职业前绘制图标? [是/否, 图标号码]/Draw Icon before class?[true/false, icon index]
- Level_Draw = [true, 280] #是否在等级前绘制图标? [是/否, 图标号码]/Draw Icon before level?[true/false, icon index]
- HP_Draw = [true, 80] #是否在生命前绘制图标? [是/否, 图标号码]/Draw Icon before hp?[true/false, icon index]
- MP_Draw = [true, 130] #是否在魔力前绘制图标? [是/否, 图标号码]/Draw Icon before mp?[true/false, icon index]
- end
- class Window_Base
- include Menu_Icon_Setting
- #--------------------------------------------------------------------------
- # ● 新写法 - 绘制简单的状态/New Method - draw icon status
- #--------------------------------------------------------------------------
- def draw_actor_simple_status_x(actor, x, y)
- fx = x
- fx += 24 if Name_Draw[0]
- draw_icon(Name_Draw[1], x, y) if Name_Draw[0]
- draw_actor_name(actor, fx, y)
- fx = x
- fx += 24 if Level_Draw[0]
- draw_icon(Level_Draw[1], x, y + line_height * 1) if Level_Draw[0]
- draw_actor_level(actor, fx, y + line_height * 1)
- draw_actor_icons(actor, x, y + line_height * 2)
- fx = x
- fx += 24 if Class_Draw[0]
- draw_icon(Class_Draw[1], x + 120, y) if Class_Draw[0]
- draw_actor_class(actor, fx + 120, y)
- draw_icon(HP_Draw[1], x + 96, y + line_height * 1) if HP_Draw[0]
- draw_actor_hp(actor, x + 120, y + line_height * 1)
- draw_icon(MP_Draw[1], x + 96, y + line_height * 2) if MP_Draw[0]
- draw_actor_mp(actor, x+ 120, y + line_height * 2)
- end
- end
- class Window_MenuStatus < Window_Selectable
- include Menu_Icon_Setting
- if Function and Menu_Window
- #--------------------------------------------------------------------------
- # ● 绘制项目/Draw_item
- #--------------------------------------------------------------------------
- def draw_item(index)
- actor = $game_party.members[index]
- enabled = $game_party.battle_members.include?(actor)
- rect = item_rect(index)
- draw_item_background(index)
- draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled)
- draw_actor_simple_status_x(actor, rect.x + 108, rect.y + line_height / 2)
- end
- end
- end
- class Window_SkillStatus < Window_Base
- include Menu_Icon_Setting
- if Function and Skill_Window
- #--------------------------------------------------------------------------
- # ● 刷新/Refresh
- #--------------------------------------------------------------------------
- def refresh
- contents.clear
- return unless @actor
- draw_actor_face(@actor, 0, 0)
- draw_actor_simple_status_x(@actor, 108, line_height / 2)
- end
- end
- end
复制代码 |
|