查看: 2922|回复: 4

[已经过期] 怎么更改这个标题字体和颜色?

  [复制链接]
梦石
0
星屑
60
在线时间
47 小时
注册时间
2006-9-24
回帖
27
发表于 2011-6-18 09:09:51 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
如图,这三行字体和颜色。 2.jpg
有实力就有魅力
梦石
0
星屑
229
在线时间
596 小时
注册时间
2010-6-21
回帖
1176
发表于 2011-6-18 09:32:34 | 显示全部楼层
字体可以在Main里调
至于颜色,我不清楚怎么调
如果我是一个美工就好啦!
回复

使用道具 举报

老黄鸡

梦石
4
星屑
45788
在线时间
7954 小时
注册时间
2009-7-6
回帖
13338

MZ评测员RM创作大赛01组委会开拓者贵宾

发表于 2011-6-18 10:05:44 | 显示全部楼层
这个窗口是Scene_Title里创建出来的Window_Command,
原句是@command_window = Window_Command.new(192, [s1, s2, s3, s4])
可以试试@command_window.contents.bitmap.font.size = 字体大小
@command_window.contents.bitmap.font.color = Color.new(255,255,255,0)#这里的四个数字分别为
红色度,绿色度,蓝色度,透明度

点评

虱子正解。  发表于 2011-6-18 18:12
惊现小黄鸡= =  发表于 2011-6-18 12:43
但是new的时候貌似已经描绘了吧?  发表于 2011-6-18 11:23
RGDirect - DirectX驱动的RGSS,点我了解.
(排满,暂停)RM全系列成套系统定制请联系QQ1213237796
不接受对其他插件维护的委托
回复

使用道具 举报

梦石
0
星屑
60
在线时间
47 小时
注册时间
2006-9-24
回帖
27
 楼主| 发表于 2011-6-18 11:53:29 | 显示全部楼层
fux2 发表于 2011-6-18 10:05
这个窗口是Scene_Title里创建出来的Window_Command,
原句是@command_window = Window_Command.new(192, [s1 ...

改完,直接报错。:Q
有实力就有魅力
回复

使用道具 举报

虚構歪曲

梦石
0
星屑
354
在线时间
1196 小时
注册时间
2010-12-18
回帖
3842

贵宾

发表于 2011-6-18 18:21:33 | 显示全部楼层
本帖最后由 忧雪の伤 于 2011-6-18 18:32 编辑

首先插入这段脚本,一般插件的方式。
  1. #==============================================================================
  2. # ** 伪·热心辅导班
  3. #==============================================================================

  4. class Window_Free_Command < Window_Command
  5.   attr_accessor(:free_system)
  6.   def initialize(width, commands, size, font, color)
  7.     self.free_system = [size, font, color]
  8.     super(width, commands)
  9.   end
  10.   def refresh
  11.     self.contents.clear
  12.     @item_max.times {|time| draw_item(time, self.free_system[2]) }
  13.   end
  14.   def draw_item(index, color)
  15.     self.contents.font.size = self.free_system[0]
  16.     self.contents.font.name = self.free_system[1]
  17.     super(index, color)
  18.   end
  19. end
复制代码
Scene_Title中的,
  1. @command_window = Window_Command.new(192, [s1, s2, s3])
复制代码
改成,
  1. @command_window = Window_Free_Command.new(192, [s1, s2, s3], 18, '宋体', Color.new(0, 0, 0))
复制代码
截图,
2.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部