|
效果图:
RUBY 代码
[code]#==============================================================================
# ■ XP行走图描边脚本 - Character Stroker 2026.3.21 By HFDange
#------------------------------------------------------------------------------
# 使用方法:在需要描边的事件名中添加“.stX”后缀。
# X为标记描边颜色的数字,如“.st0”为黑色描边、“.st1”为红色描边。
# 若要更改描边颜色,在CSC_COLORSET中添加或修改。
#==============================================================================
#==============================================================================
# ● 设置部分
#==============================================================================
module CharSt_Config
# 是否八方向描边(默认FALSE)
CSC_IF_8_DIRECTIONS = FALSE
# 描边颜色表(RGBA),默认颜色为:黑 红 绿 蓝 黄 紫 青 白
CSC_COLORSET = [
[64, 56, 56, 255], [255, 18, 18, 255], [18, 255, 18, 255],
[18, 18, 255, 255], [255, 255, 18, 255], [255, 18, 255, 255],
[18, 255, 255, 255], [255, 255, 255, 255]
]
end
#==============================================================================
# ● 描边脚本
#==============================================================================
module CharactorStroker
include CharSt_Config
defself.need?(name)# 从事件名判断是否需要描边
returnfalseif CharactorStroker.type(name) == nil
return name.include?(".st")
end
defself.type(name)# 判断描边颜色
type = name.match(/(? |