Project1
标题: 字体大小和颜色 [打印本页]
作者: sblkhgm    时间: 2012-6-2 19:40
标题: 字体大小和颜色
请教下  怎么更改提示 字的大小  和  字的颜色-   class Interpreter  
 
-   #--------------------------------------------------------------------------
 
-   # ● 增减金钱
 
-   #--------------------------------------------------------------------------
 
-   def command_125
 
-     value = operate_value(@parameters[0], @parameters[1], @parameters[2])
 
-     $game_party.gain_gold(value)
 
-     if $game_switches[$不显示金钱窗口]==false
 
-       g = Window_Base.new((640-160)/2,128,180,100)
 
-       g.contents = Bitmap.new(g.width - 32, g.height - 32)
 
-       if value >= 0
 
-         g.contents.draw_text(0,0,240,32,"获得金钱:")
 
-       else
 
-         g.contents.draw_text(0,0,240,32,"失去金钱:")
 
-       end    
 
-       g.contents.draw_text(0,32,240,32,value.abs.to_s)
 
-       g.contents.draw_text(0,32,140,32,"金钱")
 
-       g.opacity = 160
 
-       for i in 0..30
 
-         Graphics.update
 
-       end
 
-       for i in 0..10
 
-         g.opacity -= 30
 
-         g.contents_opacity -= 30
 
-         Graphics.update
 
-       end
 
-       g.dispose 
 
-     end
 
-     return true
 
-   end