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

Method OnSliderPosChanged

engine/Poseidon/UI/DisplayUI.cpp:1209–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207
1208 // ADDED - check if wrp file exists
1209 RString fullname = GetWorldName(name);
1210 if (!QIFStreamB::FileExist(fullname))
1211 {
1212 continue;
1213 }
1214
1215 int index = lbox->AddString(Pars >> "CfgWorlds" >> name >> "description");
1216 lbox->SetData(index, name);
1217 if (stricmp(name, Glob.header.worldname) == 0)
1218 {
1219 sel = index;
1220 }
1221 RString textureName = Pars >> "CfgWorlds" >> name >> "icon";
1222 RString fullName = FindPicture(textureName);
1223 fullName.Lower();
1224 Ref<Texture> texture = GlobLoadTexture(fullName);
1225 lbox->SetTexture(index, texture);
1226 }
1227 lbox->SetCurSel(sel);

Callers

nothing calls this directly

Calls 2

SetMouseSensitivityXMethod · 0.80
SetMouseSensitivityYMethod · 0.80

Tested by

no test coverage detected