MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Render

Method Render

Source/SysPSP/UI/PauseOptionsComponent.cpp:180–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178
179
180void IPauseOptionsComponent::Render()
181{
182
183 mElements.Draw( mpContext, LIST_TEXT_LEFT, LIST_TEXT_WIDTH, AT_CENTRE, BELOW_MENU_MIN );
184
185 CUIElement * element( mElements.GetSelectedElement() );
186 if( element != NULL )
187 {
188 const char * p_description( element->GetDescription() );
189
190 mpContext->DrawTextArea( DESCRIPTION_AREA_LEFT,
191 DESCRIPTION_AREA_TOP,
192 DESCRIPTION_AREA_RIGHT - DESCRIPTION_AREA_LEFT,
193 DESCRIPTION_AREA_BOTTOM - DESCRIPTION_AREA_TOP,
194 p_description,
195 DrawTextUtilities::TextWhite,
196 VA_BOTTOM );
197 }
198}
199#ifdef DAEDALUS_DIALOGS
200
201void IPauseOptionsComponent::ExitConfirmation()

Callers 1

ExitConfirmationMethod · 0.45

Calls 3

GetSelectedElementMethod · 0.80
DrawTextAreaMethod · 0.80
DrawMethod · 0.45

Tested by

no test coverage detected