赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 575 |
最后登录 | 2012-5-5 |
在线时间 | 1 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 1 小时
- 注册时间
- 2007-2-26
- 帖子
- 40
|
另外根本就没有常量TEXT_COLOR(连帖不是我的错……)
- class Window_windows < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化状态
- #--------------------------------------------------------------------------
- def initialize
- super(10 , 10, 220, 60)
- # 初始化窗口透明度
- self.opacity = 0
- self.back_opacity = 0
- #self.contents_opacity = 0
- self.contents = Bitmap.new(width - 32, height - 32)
- end
- #--------------------------------------------------------------------------
- # ● 输出文字
- #--------------------------------------------------------------------------
- def xitong
- self.contents.clear
- self.contents.font.color = normal_color
- gongji = $game_actors[1].atk
- if gongji >= 300
- chenghao = "正版vista"
- elsif gongji >= 250
- chenghao = "盗版vista"
- elsif gongji >= 200
- chenghao = "正版WindowsXP"
- elsif gongji >= 150
- chenghao = "盗版WindowsXP"
- elsif gongji >= 100
- chenghao = "正版Windows98"
- elsif gongji >= 50
- chenghao = "盗版Windows98"
- elsif gongji >= 30
- chenghao = "正版dos"
- elsif gongji >= 20
- chenghao = "盗版dos"
- elsif gongji >= 10
- chenghao = "汇编语言"
- elsif gongji >= 5
- chenghao = "机器语言"
- else
- chenghao = "裸机"
- end
- # 描绘操作系统
- self.contents.draw_text(4, 0 , width - 40, 32, "操作系统:", 1)
- self.contents.draw_text(30, 0 , width - 40, 32, chenghao.to_s, 2)
- end
- end
- #==============================================================================
- # ■ Scene_Map
- #------------------------------------------------------------------------------
- # 处理地图画面的类。(追加定义)
- #==============================================================================
- class Scene_Map
- alias smn_main main
- def main
- @windowname = Window_windows.new
- smn_main
- @windowname.dispose
- end
- alias x_update update
- def update
- x_update
- @windowname.xitong
- end
- end
复制代码
上面这个是可以显示出字的……但是坐标不对……这个就自己调吧……(按RMXP标准修改) 系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~ |
|