赞 | 38 |
VIP | 2420 |
好人卡 | 100 |
积分 | 33 |
经验 | 75384 |
最后登录 | 2024-7-7 |
在线时间 | 3619 小时 |
Lv3.寻梦者 (暗夜天使) 名侦探小柯
- 梦石
- 0
- 星屑
- 3299
- 在线时间
- 3619 小时
- 注册时间
- 2006-9-6
- 帖子
- 37400
|
问题:
我用的脚本:
- #-----------------------------------------------------------------------------
- # 本脚本来源于66RPG 特别邀请制作 请勿转载
- #-----------------------------------------------------------------------------
- class Window_TFXiaoke < Window_Base
- #-----------------------------------------------------------------------------
- #使用说明:
- #年[50]月[49]日[48]几点几分(X:XX)[46]:[45]
- #天气为变量47为准,控制为1~3.分别为"晴天""雨天""雪天"
- # 该框使用图片
- #-----------------------------------------------------------------------------
- #superufo作品
- class Window_TFXiaoke < Window_Base
- def initialize
- super(324,0,220,128)
- self.opacity = 0
- refresh
- end
-
- def refresh
- self.contents.clear
- self.contents.font.size = 16
- self.contents.draw_text(0, 0, 40, WLH, $game_variables[50], 2)
- self.contents.draw_text(40, 0, 40, WLH, "年", 2)
- self.contents.draw_text(0, WLH, 40, WLH, $game_variables[49], 2)
- self.contents.draw_text(40, WLH, 40, WLH, "月", 2)
- self.contents.draw_text(0, WLH*2, 40, WLH, $game_variables[48], 2)
- self.contents.draw_text(40, WLH*2, 40, WLH, "日", 2)
- self.contents.draw_text(0, WLH*3, 40, WLH, "天气:", 2)
- case $game_variables[47]
- when 1
- tempstr = "晴天"
- when 2
- tempstr = "雨天"
- when 3
- tempstr = "雪天"
- end
- self.contents.draw_text(40, WLH*3, 40, WLH, tempstr, 2)
- self.contents.font.size = 36
- self.contents.draw_text(80, 4, 40, WLH*3, $game_variables[46], 2)
- self.contents.draw_text(120, 4, 20, WLH*3, ":", 2)
- if $game_variables[45] < 10
- self.contents.draw_text(145, 4, 40, WLH*3, "0" + $game_variables[45].to_s, 2)
- else
- self.contents.draw_text(145, 4, 40, WLH*3, $game_variables[45], 2)
- end
- end
- end
- class Scene_Map < Scene_Base
- alias tfxiaoke_start start
- alias tfxiaoke_update update
- alias tfxiaoke_terminate terminate
- def start
- tfxiaoke_start
- @tfxiaoke = Window_TFXiaoke.new
- end
-
- def update
- @tfxiaoke.update
- @tfxiaoke.refresh
- tfxiaoke_update
- end
-
- def terminate
- tfxiaoke_terminate
- @tfxiaoke.dispose
- end
- end
复制代码 |
|