| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2016-7-7 |
| 在线时间 | 58 小时 |
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 58 小时
- 注册时间
- 2013-11-9
- 回帖
- 20
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
- #==============================================================================
- # ■ Window_变量
- #------------------------------------------------------------------------------
- # 显示变量的窗口。
- #==============================================================================
- class Window_变量 < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化窗口
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0, 640, 60) #窗口大小200 是宽 200是高
- self.contents = Bitmap.new(width - 32, height - 32)
- self.opacity = 0
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.font.color = Color.new(255, 255, 255, 255) #字体颜色
- self.contents.clear
- self.contents.draw_text(-600, -10, width, 50, "X",2) #这里显示文字类,不需要的话可以删掉
- self.contents.draw_text(-570, -10, width, 50, "Y",2) #这里显示文字类,不需要的话可以删掉
- self.contents.draw_text(-500, -10, width, 50, "年",2) #这里显示文字类,不需要的话可以删掉
- self.contents.draw_text(-450, -10, width, 50, "月",2) #这里显示文字类,不需要的话可以删掉
- self.contents.draw_text(-400, -10, width, 50, "日",2) #这里显示文字类,不需要的话可以删掉
- self.contents.draw_text(-345, -10, width, 50, "时",2) #这里显示文字类,不需要的话可以删掉
- self.contents.draw_text(-300, -10, width, 50, "分",2) #这里显示文字类,不需要的话可以删掉
- self.contents.draw_text(-250, -10, width, 50, "秒",2) #这里显示文字类,不需要的话可以删掉
- self.contents.draw_text(-200, -10, width, 50, "星期",2) #这里显示文字类,不需要的话可以删掉
- self.contents.draw_text(-305, -10, width, 50, $game_variables[1].to_s, 1) #这里显示变量1
- self.contents.draw_text(-270, -10, width, 50, $game_variables[2].to_s, 1) #这里显示变量2
- self.contents.draw_text(-225, -10, width, 50, $game_variables[3].to_s, 1) #这里显示变量3
- self.contents.draw_text(-170, -10, width, 50, $game_variables[4].to_s, 1) #这里显示变量4
- self.contents.draw_text(-115, -10, width, 50, $game_variables[5].to_s, 1) #这里显示变量5
- self.contents.draw_text(-65, -10, width, 50, $game_variables[6].to_s, 1) #这里显示变量6
- self.contents.draw_text(-15, -10, width, 50, $game_variables[7].to_s, 1) #这里显示变量7
- self.contents.draw_text(30, -10, width, 50, $game_variables[8].to_s, 1) #这里显示变量8
- self.contents.draw_text(125, -10, width, 50, $game_variables[9].to_s, 1) #这里显示变量8
- #无限循环自己喜欢添加
-
- end
- end
复制代码 当某开关开启时执行此脚本,怎么做。 |
|