Quick Face Border v1.6.1 (Converted from RGSS2)
Original Script by Woratana. I just converted it to RGSS3 and added a Border in the Skill Menu.Credits go to Woratana.
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
Spoiler: RGSS3 - Converted by Evil95 Ruby:
#============================================================
# ? ? Quick Face Border ? 1.6.1 ?
#------------------------------------------------------------
# ? Original by Woratana
# ? RGSS3 Conversion by Evil95
# ? Thaiware RPG Maker Community
# ? Original Released Date: 23/02/2008
# ? Conversion Release Date: 12/06/2020
#------------------------------------------------------------
# Version 1.6.1
# - Added Border in Skill Menu (VX doesn't have Faces in Skill Menu)
# Version 1.6
# - Changed Scenes to RGGS3 (by Evil95)
# - Removed the option "custom image for border"
# - Optimized Border Position in Menu and Status
# - Removed Border in Message (use modern algebra's ATS Series instead)
# Version 1.5
# - Edited Window_Message Bug
# - You can use custom image for border
#------------------------------------------------------------
class Window_Base < Window
#------------------------------
# START SETUP SCRIPT
#---------------------------
BORDER_SKIN = "Window" # Name of Window Skin for Border
BORDER_OPACITY = 255 # Face Border's Opacity (0 - 255)
# (true/false)
USE_BORDER_IN_SKILL_WINDOW = true
USE_BORDER_IN_MENU = true
USE_BORDER_IN_STATUS_WINDOW = true
USE_BORDER_IN_NAME_WINDOW = true
#------------------------------
# END SETUP SCRIPT
#---------------------------
alias wor_facbor_winbas_ini initialize
alias wor_facbor_winbas_dis dispose
alias wor_facbor_winbas_draf draw_face
def initialize(x, y, width, height)
wor_facbor_winbas_ini(x, y, width, height)
@border = Array.new
end
def dispose
delete_border if @border != []
wor_facbor_winbas_dis
end
def draw_face(face_name, face_index, x, y, size = 96)
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)
@border.push Window_Border.new(self.x + x + 12,self.y + y + 12,96,96)
end
wor_facbor_winbas_draf(face_name, face_index, x, y, size)
end
def delete_border
for i in 0..(@border.size - 1)
if !@border.nil?
@border.dispose
end
end
@border = []
end
end
$worale = {} if !$worale
$worale["FaceBorder"] = true
class Window_Border < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
self.windowskin = Cache.system(BORDER_SKIN)
self.opacity = BORDER_OPACITY
self.back_opacity = 0
self.z = 500
end
end
#============================================================
#-----------------ADDED BY EVIL95----------------------------
#============================================================
class Window_SkillStatus < Window_Base
def refresh
contents.clear
return unless @actor
if (SceneManager.scene_is?(Scene_Skill) and USE_BORDER_IN_SKILL_WINDOW)
@border.push Window_Border.new(170,84,98,96)
end
draw_actor_face(@actor, 0, 0)
draw_actor_simple_status(@actor, 108, line_height / 2)
end
end
#============================================================
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/
页:
[1]