Project1

标题: 字体的问题? [打印本页]

作者: 裂空座的火    时间: 2008-6-6 07:54
提示: 作者被禁止或删除 内容自动屏蔽
作者: hitlerson    时间: 2008-6-6 07:55
3535来,这个太难了{/gg}
作者: 3535    时间: 2008-6-6 07:57
以下引用裂空座的火于2008-6-5 23:54:17的发言:


本贴悬赏额度如下:VIP:0   积分:100   
怎么样设置开场动画的文字大小和颜色啊?

self.contents.font.color
self.contents.font.size
- -
事件的话就:Font.default_size
Font.default_color

用完再改回来。
[LINE]1,#dddddd[/LINE]系统信息:本贴由本区版主认可,66RPG感谢您的热情解答~
作者: 禾西    时间: 2008-6-6 08:00
Scene_Title
43一下加入
@command_window.draw_item(Index, Color)
文字大小可以用
@command_window.contents.font.size = Size
改变 [LINE]1,#dddddd[/LINE]系统信息:本贴由本区版主认可,66RPG感谢您的热情解答~
作者: hitlerson    时间: 2008-6-6 08:03
Window_Command里


  #--------------------------------------------------------------------------
  # ● 描绘项目
  #     index : 项目编号
  #     color : 文字色
  #--------------------------------------------------------------------------
  def draw_item(index, color)
    color1 = Color.new(0,0,255,255)
    color2 = Color.new(0,255,0,255)
    color3 = Color.new(255,0,0,255)
    self.contents.font.color = color
    if @commands[index] == "新游戏"
      self.contents.font.color = color1
    elsif @commands[index] == "继续"
      self.contents.font.color = color2
    elsif @commands[index] == "退出"
      self.contents.font.color = color3
    end
    rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index])
  end


禾西也来了,呵呵~~~~{/hx}
作者: Infrared    时间: 2008-6-6 08:04
提示: 作者被禁止或删除 内容自动屏蔽
作者: hitlerson    时间: 2008-6-6 08:05
以下引用Infrared于2008-6-6 0:04:34的发言:

开场动画 stand for Scene_Title?晕。


Yes~~~~~~~~~~  你好休息了~~~
作者: 裂空座的火    时间: 2008-6-6 08:18
提示: 作者被禁止或删除 内容自动屏蔽
作者: 禾西    时间: 2008-6-6 08:21
顔色用
Color.new(R,G,B,A)
Size用
數字
作者: 裂空座的火    时间: 2008-6-6 08:29
提示: 作者被禁止或删除 内容自动屏蔽
作者: hitlerson    时间: 2008-6-6 08:31
红绿蓝 透明度




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