Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/CGUIScrollBarVertical.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | void CGUIScrollBarVertical::Draw() | ||||
} | } | ||||
if (IsVisible()) | if (IsVisible()) | ||||
{ | { | ||||
CRect outline = GetOuterRect(); | CRect outline = GetOuterRect(); | ||||
m_pGUI.DrawSprite( | m_pGUI.DrawSprite( | ||||
GetStyle()->m_SpriteBackVertical, | GetStyle()->m_SpriteBackVertical, | ||||
m_Z+0.1f, | |||||
CRect( | CRect( | ||||
outline.left, | outline.left, | ||||
outline.top + (GetStyle()->m_UseEdgeButtons ? GetStyle()->m_Width : 0), | outline.top + (GetStyle()->m_UseEdgeButtons ? GetStyle()->m_Width : 0), | ||||
outline.right, | outline.right, | ||||
outline.bottom - (GetStyle()->m_UseEdgeButtons ? GetStyle()->m_Width : 0) | outline.bottom - (GetStyle()->m_UseEdgeButtons ? GetStyle()->m_Width : 0) | ||||
) | ) | ||||
); | ); | ||||
Show All 19 Lines | if (GetStyle()->m_UseEdgeButtons) | ||||
else | else | ||||
button_bottom = &(GetStyle()->m_SpriteButtonBottomOver ? GetStyle()->m_SpriteButtonBottomOver : GetStyle()->m_SpriteButtonBottom); | button_bottom = &(GetStyle()->m_SpriteButtonBottomOver ? GetStyle()->m_SpriteButtonBottomOver : GetStyle()->m_SpriteButtonBottom); | ||||
} | } | ||||
else | else | ||||
button_bottom = &GetStyle()->m_SpriteButtonBottom; | button_bottom = &GetStyle()->m_SpriteButtonBottom; | ||||
m_pGUI.DrawSprite( | m_pGUI.DrawSprite( | ||||
*button_top, | *button_top, | ||||
m_Z+0.2f, | |||||
CRect( | CRect( | ||||
outline.left, | outline.left, | ||||
outline.top, | outline.top, | ||||
outline.right, | outline.right, | ||||
outline.top+GetStyle()->m_Width | outline.top+GetStyle()->m_Width | ||||
) | ) | ||||
); | ); | ||||
m_pGUI.DrawSprite( | m_pGUI.DrawSprite( | ||||
*button_bottom, | *button_bottom, | ||||
m_Z+0.2f, | |||||
CRect( | CRect( | ||||
outline.left, | outline.left, | ||||
outline.bottom-GetStyle()->m_Width, | outline.bottom-GetStyle()->m_Width, | ||||
outline.right, | outline.right, | ||||
outline.bottom | outline.bottom | ||||
) | ) | ||||
); | ); | ||||
} | } | ||||
m_pGUI.DrawSprite( | m_pGUI.DrawSprite( | ||||
GetStyle()->m_SpriteBarVertical, | GetStyle()->m_SpriteBarVertical, | ||||
m_Z + 0.2f, | |||||
GetBarRect() | GetBarRect() | ||||
); | ); | ||||
} | } | ||||
} | } | ||||
void CGUIScrollBarVertical::HandleMessage(SGUIMessage& Message) | void CGUIScrollBarVertical::HandleMessage(SGUIMessage& Message) | ||||
{ | { | ||||
IGUIScrollBar::HandleMessage(Message); | IGUIScrollBar::HandleMessage(Message); | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator