Beispiel #1
0
void LineGraph::RenderGraph(int eventsOfset)
{
	primitives_PaintRect16(m_surface, &m_surfaceRect, g_colorSet->GetColor(COLOR_BLACK));
	primitives_FrameRect16(m_surface, &m_surfaceRect, g_colorSet->GetColor(COLOR_WHITE));
	primitives_FrameRect16(m_surface, &m_graphRect, g_colorSet->GetColor(COLOR_WHITE));

	DrawThisStateImage(
		0,
		m_surface,
		&m_surfaceRect );

	LabelAxes();
	DrawLines(eventsOfset);
	if (m_hasIndicator) DrawIndicator();
}
//----------------------------------------------------------------------------
//
// Name       : SpecialAttackWindow::DrawThis
//
// Description: Draws the tileimp tracker window
//
// Parameters : aui_Surface *surface: The surface to draw on
//              sint32 x:             The x coordinate
//              sint32 y:             The y coordinate
//
// Globals    : g_colorSet: The color set
//
// Returns    : Returns always AUI_ERRCODE_OK.
//
// Remark(s)  : -
//
//----------------------------------------------------------------------------
AUI_ERRCODE SpecialAttackWindow::DrawThis( aui_Surface *surface, sint32 x, sint32 y)
{
	if ( !surface ) surface = m_surface;

	RECT rect = { 0, 0, m_width, m_height };
	
	primitives_PaintRect16( surface, &rect, 0x0000 );
	
	C3Window::DrawThis(surface,x,y);

	primitives_FrameRect16(surface, &rect, g_colorSet->GetColor(s_saWindowBorderColor));

	return AUI_ERRCODE_OK;
}
AUI_ERRCODE aui_TipWindow::DrawThis( aui_Surface *surface, sint32 x, sint32 y )
{

	if ( IsHidden() ) return AUI_ERRCODE_OK;

	if ( !surface ) surface = m_surface;

	RECT rect = { 0, 0, m_width, m_height };

	g_ui->TheBlitter()->ColorBlt( surface, &rect, RGB(0,0,0), 0 );

	primitives_FrameRect16(surface, &rect, g_colorSet->GetColor(COLOR_GRAY));

	if ( surface == m_surface )
		AddDirtyRect( &rect );

	return AUI_ERRCODE_OK;
}
Beispiel #4
0
AUI_ERRCODE ChatWindow::DrawThis(aui_Surface *surface, sint32 x, sint32 y)
{
	if ( IsHidden() ) return AUI_ERRCODE_OK;

	if (surface == NULL)
		surface = m_surface;

	RECT rect = { 0, 0, m_width, m_height };

	if (m_pattern)
		m_pattern->Draw(surface, &rect);

	primitives_FrameRect16(surface, &rect, g_colorSet->GetColor(COLOR_GREEN));

	m_dirtyList->AddRect( &rect );

	return AUI_ERRCODE_OK;
}
Beispiel #5
0
AUI_ERRCODE TextSwitch::DrawThis( aui_Surface *surface, sint32 x, sint32 y )
{
	
	

	
	if ( IsHidden() ) return AUI_ERRCODE_OK;

	if ( !surface ) surface = m_window->TheSurface();

	RECT rect = { 0, 0, m_width, m_height };
	OffsetRect( &rect, m_x + x, m_y + y );
	ToWindow( &rect );

	
	if ( m_pattern )
		m_pattern->Draw( surface, &rect );

	primitives_FrameRect16(surface, &rect, g_colorSet->GetColor(COLOR_BLACK));

	











	if ( IsOn() )
		primitives_BevelRect16( surface, &rect, 2, 1, 16, 16 );
	else
		primitives_BevelRect16( surface, &rect, 2, 0, 16, 16 );

	if ( IsActive() )
	{
		
		if ( IsOn() )
		{
			
		}
		else
		{
			
		}

		
		if (m_text) {




			textutils_CenteredDropString(surface, m_text, &rect, 9, COLOR_BUTTON_TEXT_HILITE, 0);
		}
	}
	else
	{
		
		if (m_text) {




			textutils_CenteredDropString(surface, m_text, &rect, 9, COLOR_BUTTON_TEXT_PLAIN, 0);

		}
	}

	if ( surface == m_window->TheSurface() )
		m_window->AddDirtyRect( &rect );

	return AUI_ERRCODE_OK;
}