赞 | 0 |
VIP | 0 |
好人卡 | 1 |
积分 | 0 |
经验 | 1211 |
最后登录 | 2012-8-24 |
在线时间 | 35 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 48
- 在线时间
- 35 小时
- 注册时间
- 2011-7-16
- 帖子
- 36
|
Wind2010 发表于 2011-8-11 23:39 ![]()
画框就是生成个窗口,显字就是具体其他的描绘多看看F1里的Bitmap
这些是什么意思?- def initialize
- super(0, 0, 160, 64)
- self.contents = Bitmap.new(width - 32, height - 32)
- refresh
- end
复制代码
xcqxhb2011于2011-8-18 09:39补充以下内容:
改Window_Gold的话……我想就用这种窗口显示位置(在哪个地图),于是我把Window_Gold的内容复制到了新的组“位置”里并修改成:- #==============================================================================
- # ■ Window_Place
- #------------------------------------------------------------------------------
- # 显示位置的窗口。
- #==============================================================================
- class Window_Place < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化窗口
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0, 160, 64)
- self.contents = Bitmap.new(width - 32, height - 32)
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- cx = contents.text_size($data_system.words.gold).width
- self.contents.font.color = normal_color
- self.contents.draw_text(4, 0, 120-cx-2, 32, $game_party.place.to_s, 2)
- end
- end
复制代码 可是,要修改哪里的代码才能让这个“金钱”窗口显示在地图界面上(就是小人仔在地图走的界面)呢?是Window_Base还是什么Map的组?
然后,我想新建一个和gold一样的变量place,再在场景变换时加入条件分歧,地图id为一时place=“XXX”,可是我不知道把这个条件分歧放在哪里…… |
|