MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / MakeAddonStatic

Function MakeAddonStatic

ogsr_engine/xrGame/ui/UICellCustomItems.cpp:417–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417CUIStatic* MakeAddonStatic(CUIDragItem* i, CIconParams& params)
418{
419 CUIStatic* s = xr_new<CUIStatic>();
420 params.set_shader(s);
421 s->SetAutoDelete(true);
422 s->SetColor(i->wnd()->GetColor());
423 i->wnd()->AttachChild(s);
424 return s;
425}
426
427CUIDragItem* CUIWeaponCellItem::CreateDragItem()
428{

Callers 1

CreateDragItemMethod · 0.85

Calls 5

set_shaderMethod · 0.80
AttachChildMethod · 0.80
SetColorMethod · 0.45
GetColorMethod · 0.45
wndMethod · 0.45

Tested by

no test coverage detected