- Timestamp:
- Jul 3, 2024, 10:32:52 AM (7 days ago)
- Location:
- ps/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/binaries/data/mods/mod/gui/gui.rng
r28120 r28135 593 593 </optional> 594 594 <optional> 595 596 597 598 599 595 600 <attribute name="heading"/> 596 601 </optional> -
ps/trunk/source/gui/ObjectTypes/CList.cpp
r27965 r28135 1 /* Copyright (C) 202 1Wildfire Games.1 /* Copyright (C) 202 Wildfire Games. 2 2 * This file is part of 0 A.D. 3 3 * … … 369 369 } 370 370 371 DrawText(canvas, i, textColor, rect.TopLeft() - CVector2D(0.f, scroll - m_ItemsYPositions[i]), cliparea); 371 const CGUIColor& finalTextColor = (drawSelected && static_cast<size_t>(selected) == i && *m_TextColorSelected) ? m_TextColorSelected : textColor; 372 373 DrawText(canvas, i, finalTextColor, rect.TopLeft() - CVector2D(0.f, scroll - m_ItemsYPositions[i]), cliparea); 372 374 } 373 375 -
ps/trunk/source/gui/ObjectTypes/COList.cpp
r28120 r28135 220 220 LOGERROR("GUI: Error parsing '%s' (\"%s\")", attr_name.data(), attr_value.c_str()); 221 221 } 222 223 224 225 226 222 227 else if (attr_name == "hidden") 223 228 { … … 436 441 cliparea2.bottom = std::min(cliparea2.bottom, textPos.Y + rowHeight); 437 442 443 444 438 445 // Draw list item 439 DrawText(canvas, objectsCount * (i +/*Heading*/1) + colIdx, column.m_TextColor, textPos, cliparea2);446 DrawText(canvas, objectsCount * (i +/*Heading*/1) + colIdx, TextColor, textPos, cliparea2); 440 447 xpos += width; 441 448 } -
ps/trunk/source/gui/ObjectTypes/COList.h
r27965 r28135 1 /* Copyright (C) 202 3Wildfire Games.1 /* Copyright (C) 202 Wildfire Games. 2 2 * This file is part of 0 A.D. 3 3 * … … 39 39 40 40 CGUIColor m_TextColor; 41 41 42 CStr m_Id; 42 43 float m_Width;
Note:
See TracChangeset
for help on using the changeset viewer.