#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
# This class is for all in-game windows.
#==============================================================================
class Window_Base < Window
#--------------------------------------------------------------------------
# * Get Text Color
# n : text color number (0-7)
#--------------------------------------------------------------------------
def text_color(n)
case n
when 0
return Color.new(255, 255, 255, 255) # White
when 1
return Color.new(128, 128, 255, 255) # Blue
when 2
return Color.new(255, 128, 128, 255) # Red
when 3
return Color.new(128, 255, 128, 255) # Green
when 4
return Color.new(128, 255, 255, 255) # Cyan
when 5
return Color.new(255, 128, 255, 255) # Magenta
when 6
return Color.new(255, 255, 128, 255) # Yellow
when 7
return Color.new(192, 192, 192, 255) # Gray
else
normal_color
end
end
#--------------------------------------------------------------------------
# * Get Normal Text Color
#--------------------------------------------------------------------------
def normal_color
return Color.new(255, 255, 255, 255) # White
end
#--------------------------------------------------------------------------
# * Get Disabled Text Color
#--------------------------------------------------------------------------
def disabled_color
return Color.new(255, 255, 255, 128) # Faded White looks Gray
end
#--------------------------------------------------------------------------
# * Get System Text Color
#--------------------------------------------------------------------------
def system_color
return Color.new(192, 224, 255, 255) # Blue-ish
end
#--------------------------------------------------------------------------
# * Get Crisis Text Color
#--------------------------------------------------------------------------
def crisis_color
return Color.new(255, 255, 64, 255) # Yellow-ish
end
#--------------------------------------------------------------------------
# * Get Knockout Text Color
#--------------------------------------------------------------------------
def knockout_color
return Color.new(255, 64, 0) # Bright Red
end
end