MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / TeardownShell

Method TeardownShell

engine/Poseidon/UI/Options/OptionsShell.cpp:210–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 c->ShowCtrl(show);
209 }
210 if (show)
211 ApplyNotebookTheme(page);
212}
213
214void OptionsShell::ApplyNotebookTheme(OptionsPage* page)
215{
216 if (!page)
217 return;
218 auto* nb = GetNotebook();
219 if (!nb)
220 return;
221
222 PackedColor textColor;
223 bool hasTextColor = NotebookTheme::ResourceColor("RscObjNotebookText", "color", textColor);
224 PackedColor buttonColor;
225 bool hasButtonColor = NotebookTheme::ResourceColor("RscObjNotebookButton", "color", buttonColor);
226 PackedColor buttonActiveColor;
227 bool hasButtonActiveColor = NotebookTheme::ResourceColor("RscObjNotebookButton", "colorActive", buttonActiveColor);
228

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.45
UnmountMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected