mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 10:40:39 +01:00
Add an RGBA getter for ConsoleColors
This commit is contained in:
1 parent
248ad0ddde
commit
44e671bb0a
2 files changed
+7
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user