mirror of https://github.com/PCSX2/pcsx2.git
Add an RGBA getter for ConsoleColors
This commit is contained in:
parent
248ad0ddde
commit
44e671bb0a
|
@ -231,6 +231,11 @@ void ConsoleLogFrame::ColorArray::SetFont( const wxFont& font )
|
|||
// m_table[i].SetFont( font );
|
||||
}
|
||||
|
||||
u32 ConsoleLogFrame::ColorArray::GetRGBA( const ConsoleColors color )
|
||||
{
|
||||
return m_table[color].GetTextColour().GetRGBA();
|
||||
}
|
||||
|
||||
enum MenuIDs_t
|
||||
{
|
||||
MenuId_FontSize_Small = 0x10,
|
||||
|
|
|
@ -108,6 +108,7 @@ protected:
|
|||
|
||||
void SetFont( const wxFont& font );
|
||||
void SetFont( int fontsize );
|
||||
u32 GetRGBA( const ConsoleColors color );
|
||||
|
||||
const wxTextAttr& operator[]( ConsoleColors coloridx ) const
|
||||
{
|
||||
|
@ -184,6 +185,7 @@ public:
|
|||
// Retrieves the current configuration options settings for this box.
|
||||
// (settings change if the user moves the window or changes the font size)
|
||||
const ConLogConfig& GetConfig() const { return m_conf; }
|
||||
u32 GetRGBA( const ConsoleColors color ) { return m_ColorTable.GetRGBA( color ); }
|
||||
|
||||
bool Write( ConsoleColors color, const wxString& text );
|
||||
bool Newline();
|
||||
|
|
Loading…
Reference in New Issue