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

Method SeedTestMods

engine/Poseidon/UI/OptionsUIApp.cpp:1309–1335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1307 list->SetRows(ScanModRows());
1308 return list;
1309 }
1310 return Display::OnCreateCtrl(type, idc, cls);
1311}
1312
1313DisplayMods::DisplayMods(ControlsContainer* parent) : Display(parent)
1314{
1315 _enableSimulation = false;
1316 _exitWhenClose = -1;
1317 Load("RscDisplayMods");
1318
1319 if (ControlObjectContainer* notebook = dynamic_cast<ControlObjectContainer*>(GetCtrl(IDC_MODS_NOTEBOOK)))
1320 {
1321 ParamEntry* sourceCls = Res.FindEntry("RscDisplayMods")
1322 ? (Res >> "RscDisplayMods" >> "Notebook").FindEntry("ButtonSource")
1323 : nullptr;
1324 if (sourceCls != nullptr && sourceCls->IsClass())
1325 {
1326 static ParamFile s_masterServerLabelCfg;
1327 s_masterServerLabelCfg.Clear();
1328 ParamClass* cls = s_masterServerLabelCfg.AddClass("ModsMasterServerAttribution");
1329 cls->Add("type", CT_3DSTATIC);
1330 cls->Add("idc", IDC_MODS_MASTER_SERVER);
1331 cls->Add("style", ST_LEFT);
1332 cls->Add("text", RString(""));
1333 cls->Add("x", 0.025f);
1334 cls->Add("y", 0.925f);
1335 cls->Add("w", 0.95f);
1336 cls->Add("h", 0.045f);
1337 cls->Add("selection", RString("display"));
1338 cls->Add("angle", 0.0f);

Callers 1

TriSeedModsFunction · 0.80

Calls 4

GetCtrlFunction · 0.85
AddMethod · 0.45
SetRowsMethod · 0.45
SortMethod · 0.45

Tested by 1

TriSeedModsFunction · 0.64