设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 120|回复: 0

[转载发布] Quick Face Border v1.6.1 (Converted from RGSS2)

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    58883
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    68848

    灌水之王

    发表于 2026-8-2 13:51:09 | 显示全部楼层 |阅读模式
    Original Script by Woratana. I just converted it to RGSS3 and added a Border in the Skill Menu.
    Credits go to Woratana.



    Spoiler: RGSS3 - Converted by Evil95
                    Ruby:       
    1. #============================================================
    2. # ? [VXAce] ? Quick Face Border ? 1.6.1 ?
    3. #------------------------------------------------------------
    4. # ? Original by Woratana [woratana@hotmail.com]
    5. # ? RGSS3 Conversion by Evil95
    6. # ? Thaiware RPG Maker Community
    7. # ? Original Released Date: 23/02/2008
    8. # ? Conversion Release Date: 12/06/2020
    9. #------------------------------------------------------------
    10. # Version 1.6.1
    11. # - Added Border in Skill Menu (VX doesn't have Faces in Skill Menu)
    12. # Version 1.6
    13. # - Changed Scenes to RGGS3 (by Evil95)
    14. # - Removed the option "custom image for border"
    15. # - Optimized Border Position in Menu and Status
    16. # - Removed Border in Message (use modern algebra's ATS Series instead)
    17. # Version 1.5
    18. # - Edited Window_Message Bug
    19. # - You can use custom image for border
    20. #------------------------------------------------------------
    21. class Window_Base < Window
    22.   #------------------------------
    23.   # START SETUP SCRIPT
    24.   #---------------------------
    25.   BORDER_SKIN = "Window" # Name of Window Skin for Border
    26.   BORDER_OPACITY = 255 # Face Border's Opacity (0 - 255)
    27.   # (true/false)
    28.   USE_BORDER_IN_SKILL_WINDOW = true
    29.   USE_BORDER_IN_MENU = true
    30.   USE_BORDER_IN_STATUS_WINDOW = true
    31.   USE_BORDER_IN_NAME_WINDOW = true
    32.   #------------------------------
    33.   # END SETUP SCRIPT
    34.   #---------------------------
    35.   alias wor_facbor_winbas_ini initialize
    36.   alias wor_facbor_winbas_dis dispose
    37.   alias wor_facbor_winbas_draf draw_face
    38.   def initialize(x, y, width, height)
    39.     wor_facbor_winbas_ini(x, y, width, height)
    40.     @border = Array.new
    41.   end
    42.   def dispose
    43.     delete_border if @border != []
    44.     wor_facbor_winbas_dis
    45.   end
    46.   def draw_face(face_name, face_index, x, y, size = 96)
    47.     if (SceneManager.scene_is?(Scene_Menu) and USE_BORDER_IN_MENU) or (SceneManager.scene_is?(Scene_Status) and USE_BORDER_IN_STATUS_WINDOW) or (SceneManager.scene_is?(Scene_Name) and USE_BORDER_IN_NAME_WINDOW)
    48.         @border.push Window_Border.new(self.x + x + 12,self.y + y + 12,96,96)
    49.     end
    50.     wor_facbor_winbas_draf(face_name, face_index, x, y, size)
    51.   end
    52.   def delete_border
    53.       for i in 0..(@border.size - 1)
    54.         if !@border[i].nil?
    55.           @border[i].dispose
    56.         end
    57.       end
    58.       @border = []
    59.   end
    60. end
    61. $worale = {} if !$worale
    62. $worale["FaceBorder"] = true
    63. class Window_Border < Window_Base
    64.   def initialize(x,y,width,height)
    65.     super(x,y,width,height)
    66.     self.windowskin = Cache.system(BORDER_SKIN)
    67.     self.opacity = BORDER_OPACITY
    68.     self.back_opacity = 0
    69.     self.z = 500
    70.   end
    71. end
    72. #============================================================
    73. #-----------------ADDED BY EVIL95----------------------------
    74. #============================================================
    75. class Window_SkillStatus < Window_Base
    76.   def refresh
    77.     contents.clear
    78.     return unless @actor
    79.     if (SceneManager.scene_is?(Scene_Skill) and USE_BORDER_IN_SKILL_WINDOW)
    80.       @border.push Window_Border.new(170,84,98,96)
    81.     end
    82.     draw_actor_face(@actor, 0, 0)
    83.     draw_actor_simple_status(@actor, 108, line_height / 2)
    84.   end
    85. end
    86. #============================================================
    复制代码


    Link to the original VX Script:
    https://rmrk.net/index.php/topic,24926.0.html


    本贴来自国际rpgmaker官方论坛作者:Evil95处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/quick-face-border-v1-6-1-converted-from-rgss2.122844/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-17 11:37 , Processed in 0.112567 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表