- Timestamp:
- 07/17/11 19:30:07 (13 years ago)
- Location:
- ps/trunk/source/gui
- Files:
-
- 9 edited
-
CButton.cpp (modified) (1 diff)
-
CCheckBox.cpp (modified) (1 diff)
-
CDropDown.cpp (modified) (1 diff)
-
CList.cpp (modified) (1 diff)
-
CText.cpp (modified) (1 diff)
-
CTooltip.cpp (modified) (1 diff)
-
IGUIObject.h (modified) (1 diff)
-
IGUITextOwner.cpp (modified) (1 diff)
-
IGUITextOwner.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/gui/CButton.cpp
r9362 r9862 117 117 118 118 CColor color = ChooseColor(); 119 IGUITextOwner::Draw(0, color, m_TextPos, bz+0.1f);119 DrawText(0, color, m_TextPos, bz+0.1f); 120 120 } -
ps/trunk/source/gui/CCheckBox.cpp
r9362 r9862 176 176 text_pos.y += square_side/2.f - line_height/2.f; 177 177 178 IGUITextOwner::Draw(0, color, text_pos, bz+0.1f, m_CachedActualSize);178 DrawText(0, color, text_pos, bz+0.1f, m_CachedActualSize); 179 179 } -
ps/trunk/source/gui/CDropDown.cpp
r9340 r9862 338 338 339 339 CPos pos(m_CachedActualSize.left, m_CachedActualSize.top); 340 IGUITextOwner::Draw(selected, color, pos, bz+0.1f, cliparea);340 DrawText(selected, color, pos, bz+0.1f, cliparea); 341 341 } 342 342 -
ps/trunk/source/gui/CList.cpp
r9362 r9862 402 402 } 403 403 404 IGUITextOwner::Draw(i, color, rect.TopLeft() - CPos(0.f, scroll - m_ItemsYPositions[i]), 405 bz+0.1f, cliparea); 404 DrawText(i, color, rect.TopLeft() - CPos(0.f, scroll - m_ItemsYPositions[i]), bz+0.1f, cliparea); 406 405 } 407 406 } -
ps/trunk/source/gui/CText.cpp
r9362 r9862 245 245 GUI<CColor>::GetSetting(this, "textcolor", color); 246 246 247 // Draw text248 247 if (scrollbar) 249 IGUITextOwner::Draw(0, color, m_CachedActualSize.TopLeft() - CPos(0.f, scroll), bz+0.1f, cliparea);248 DrawText(0, color, m_CachedActualSize.TopLeft() - CPos(0.f, scroll), bz+0.1f, cliparea); 250 249 else 251 IGUITextOwner::Draw(0, color, m_TextPos, bz+0.1f, cliparea);250 DrawText(0, color, m_TextPos, bz+0.1f, cliparea); 252 251 } 253 252 } -
ps/trunk/source/gui/CTooltip.cpp
r9362 r9862 161 161 GUI<CColor>::GetSetting(this, "textcolor", color); 162 162 163 // Draw text 164 IGUITextOwner::Draw(0, color, m_CachedActualSize.TopLeft(), z+0.1f); 163 DrawText(0, color, m_CachedActualSize.TopLeft(), z+0.1f); 165 164 } 166 165 } -
ps/trunk/source/gui/IGUIObject.h
r9852 r9862 584 584 public: 585 585 586 virtual void HandleMessage(const SGUIMessage& UNUSED(Message)) {}587 586 virtual void Draw() {} 588 587 // Empty can never be hovered. It is only a category. -
ps/trunk/source/gui/IGUITextOwner.cpp
r9340 r9862 79 79 } 80 80 81 void IGUITextOwner::Draw(const int &index, const CColor &color, const CPos &pos, 82 const float &z, const CRect &clipping) 81 void IGUITextOwner::DrawText(int index, const CColor& color, const CPos& pos, float z, const CRect& clipping) 83 82 { 84 83 if (!m_GeneratedTextsValid) -
ps/trunk/source/gui/IGUITextOwner.h
r9340 r9862 89 89 * to get no clipping. 90 90 */ 91 virtual void Draw(const int &index, const CColor &color, const CPos &pos, 92 const float &z, const CRect &clipping = CRect()); 91 virtual void DrawText(int index, const CColor& color, const CPos& pos, float z, const CRect& clipping = CRect()); 93 92 94 93 /**
Note:
See TracChangeset
for help on using the changeset viewer.
