赞 | 3 |
VIP | 0 |
好人卡 | 0 |
积分 | 42 |
经验 | 0 |
最后登录 | 2024-11-12 |
在线时间 | 232 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 4164
- 在线时间
- 232 小时
- 注册时间
- 2020-5-21
- 帖子
- 51
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 RyanBern 于 2020-7-16 17:10 编辑
菜单界面 开启 字体描边功能
战斗界面 关闭 字体描边功能
##########下面是脚本 #############
#====================================================================== # 脚本来自[url]www.66rpg.com[/url],使用请保留此信息 # 作者:暴动冲锋NANKONGX;最后升级日期:2007年7月14日 #====================================================================== class Bitmap unless $OK alias NKX_draw_text draw_text unless method_defined? :NKX_draw_text def draw_text(p1, p2, p3 = 0, p4 = 3, p5 = nil, p6 = 0, p7 = 3, p8 = nil) case p1 when Numeric x = p1 y = p2 width = p3 height = p4 text = p5 align = p6 shadow_direction = p7 shadow_color = p8 if shadow_color.nil? shadow_color = Color.new(0, 0, 0, self.font.color.alpha * 0.67) end when Rect x = p1.x y = p1.y width = p1.width height = p1.height text = p2 align = p3 shadow_direction = p4 shadow_color = p5 if shadow_color.nil? shadow_color = Color.new(0, 0, 0, self.font.color.alpha * 0.67) end end color_temp = self.font.color.clone self.font.color = Color.new(0, 0, 0, 125) NKX_draw_text(x + 1,y + 1,width, height, text, align) NKX_draw_text(x + 1,y - 1,width, height, text, align) NKX_draw_text(x - 1,y - 1,width, height, text, align) NKX_draw_text(x - 1,y + 1,width, height, text, align) self.font.color = color_temp $OK = true NKX_draw_text(x, y, width, height, text, align) end end end
#======================================================================
# 脚本来自[url]www.66rpg.com[/url],使用请保留此信息
# 作者:暴动冲锋NANKONGX;最后升级日期:2007年7月14日
#======================================================================
class Bitmap
unless $OK
alias NKX_draw_text draw_text unless method_defined? :NKX_draw_text
def draw_text(p1, p2, p3 = 0, p4 = 3, p5 = nil, p6 = 0, p7 = 3, p8 = nil)
case p1
when Numeric
x = p1
y = p2
width = p3
height = p4
text = p5
align = p6
shadow_direction = p7
shadow_color = p8
if shadow_color.nil?
shadow_color = Color.new(0, 0, 0, self.font.color.alpha * 0.67)
end
when Rect
x = p1.x
y = p1.y
width = p1.width
height = p1.height
text = p2
align = p3
shadow_direction = p4
shadow_color = p5
if shadow_color.nil?
shadow_color = Color.new(0, 0, 0, self.font.color.alpha * 0.67)
end
end
color_temp = self.font.color.clone
self.font.color = Color.new(0, 0, 0, 125)
NKX_draw_text(x + 1,y + 1,width, height, text, align)
NKX_draw_text(x + 1,y - 1,width, height, text, align)
NKX_draw_text(x - 1,y - 1,width, height, text, align)
NKX_draw_text(x - 1,y + 1,width, height, text, align)
self.font.color = color_temp
$OK = true
NKX_draw_text(x, y, width, height, text, align)
end
end
end
|
|