Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #==============================================================================
  2. # ■ Control Character Color Expansion
  3. # By :VIPArcher [email: VIPArcher@sina.com]
  4. #  -- The script comes from http://rm.66rpg.com Please keep the information above.
  5. #  Feel free to use/ reprint
  6. #==============================================================================
  7. $VIPArcherScript ||= {};$VIPArcherScript[:textcolor] = 20141012
  8. #--------------------------------------------------------------------------------
  9. module VIPArcher
  10.   Text_Color = { #<-This line should not be deleted
  11.    #color number  #color code(R  , G  , B [,A ]),
  12.     32 => Color.new(0  , 0  , 255,255),
  13.     33 => Color.new(0  , 255, 0      ),
  14.     34 => Color.new(255, 0  , 0      ),
  15.     35 => Color.new(233, 233, 233    )
  16.     #to continue, add here
  17.     };Text_Color.default = Color.new #<-This line should not be deleted
  18. end
  19. #--------------------------------------------------------------------------------
  20. class Window_Base < Window
  21.   #--------------------------------------------------------------------------
  22.   # ● Get text color
  23.   #     n : Text color number(0..31)
  24.   #--------------------------------------------------------------------------
  25.   alias vip_ex_text_color text_color
  26.   def text_color(n)
  27.     return VIPArcher::Text_Color[n] if n > 31
  28.     vip_ex_text_color(n)
  29.   end
  30. end