MCPcopy Create free account
hub / github.com/arnaud-jamin/Cog / RenderContent

Method RenderContent

Source/CogSample/CogSampleWindow_Team.cpp:24–36  ·  view source on GitHub ↗

--------------------------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

22
23//--------------------------------------------------------------------------------------------------------------------------
24void FCogSampleWindow_Team::RenderContent()
25{
26 Super::RenderContent();
27
28 if (ICogSampleTeamInterface* TeamInterface = Cast<ICogSampleTeamInterface>(GetSelection()))
29 {
30 int32 Team = TeamInterface->GetTeam();
31 if (ImGui::DragInt("Team", &Team, 0.1f, 0, 10))
32 {
33 TeamInterface->SetTeam(Team);
34 }
35 }
36}
37
38#endif //ENABLE_COG

Callers

nothing calls this directly

Calls 3

RenderContentFunction · 0.85
GetTeamMethod · 0.45
SetTeamMethod · 0.45

Tested by

no test coverage detected