Project1

标题: 如何改变这个脚本中姓名框的字体颜色呢? [打印本页]

作者: Goku    时间: 2008-9-29 08:11
提示: 作者被禁止或删除 内容自动屏蔽
作者: 弑宁雷    时间: 2008-9-29 09:13
提示: 作者被禁止或删除 内容自动屏蔽
作者: 天圣的马甲    时间: 2008-9-29 09:15
找到
class Air_Text < Window_Base
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize(x, y, designate_text)
   super(x-16, y-16, 32 + designate_text.size * 12, 56)
   self.opacity = 0
   self.back_opacity = 0
   self.contents = Bitmap.new(self.width - 32, self.height - 32)
   w = self.contents.width
   h = self.contents.height
  self.contents.font.color = Color.new(0, 0, 0, 255) #把這句添加上去
   self.contents.draw_text(0, 0, w, h, designate_text)
end
[LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: 弑宁雷    时间: 2008-9-29 09:19
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1