赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 447 |
最后登录 | 2012-1-19 |
在线时间 | 118 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 118 小时
- 注册时间
- 2011-7-13
- 帖子
- 182
|
本帖最后由 南宫爱 于 2011-7-23 15:39 编辑
这样子:(注意是def initialize下面)- class Window_MapVar < Window_Base
- def initialize
- if $game_switches[1]
- super(0,420,160,60)
- self.opacity=200
- self.back_opacity=200
- self.contents_opacity=255
- self.contents = Bitmap.new(width - 32, height - 32)
- @var_value_old = -1
- @var_icon = Bitmap.new("Graphics/Icons/纳尼2")
-
- refresh
- end
- def refresh
- if @var_value_old==$game_variables[1] then
- return
- end
- self.contents.clear
- cx = contents.text_size($data_system.words.gold).width
- self.contents.font.color = Color.new(255,255,255)
- self.contents.draw_text(24, 0, 104-cx, 28, $game_variables[1].to_s, 2)
- self.contents.font.color = Color.new(255,255,0)
- self.contents.draw_text(128-cx, 0, cx, 28, "无语")
- self.contents.blt(0, 2, @var_icon, Rect.new(0, 0, 24, 24))
- end
- end
- end
复制代码
南宫爱于2011-7-23 19:30补充以下内容:
18行!?怎么可能!?
南宫爱于2011-7-23 19:30补充以下内容:
18行!?怎么可能!?
南宫爱于2011-7-24 11:11补充以下内容:
不可能的说,你把错误的截图发过来 |
|