Project1
标题: 怎么修改这个脚本的字体颜色? [打印本页]
作者: 黑之翅膀 时间: 2011-11-1 22:00
标题: 怎么修改这个脚本的字体颜色?
本帖最后由 黑之翅膀 于 2011-11-1 22:01 编辑
最好能说说原理- class Scene_Map
- alias:fux2:main unless $@
- def main
- @info_fux2 = Fux2.new
- fux2
- @info_fux2.dispose
- end
-
- alias fux2update update unless $@
- def update
- @info_fux2.update
- fux2update
- end
- end
- class Fux2 < Window_Base
- def initialize
- super(0,20,300,132)
- self.opacity = 0
- self.back_opacity = 0
- self.contents_opacity = 255
- self.contents = Bitmap.new(244, 96)
- @oldhp = nil
- @oldmp = nil
- @oldmoney = nil
- end
- def update
- if @oldhp != $game_party.gold
- self.contents.clear
- self.contents.draw_text(0,25,300,50,"金币:#{$game_party.gold}")
- @oldhp,@oldm, @oldmoney= $game_party.gold
- end
- end
- end
-
复制代码