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

Method RefreshLanguage

engine/Poseidon/UI/DisplayUI.cpp:947–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945 for (int i = 0; i < UAN; i++)
946 {
947 input.SetUserKeys(static_cast<UserAction>(i), _keys->GetKeys(i));
948 input.CompactUserKeys(static_cast<UserAction>(i));
949 }
950 input.SaveKeys();
951}
952
953void DisplayConfigure::OnSimulate(EntityAI* vehicle)
954{
955 Display::OnSimulate(vehicle);
956
957 if (!_keys->IsFocused())
958 {
959 return;
960 }
961
962 if (_keys->GetMode() < 0)
963 {
964 return;
965 }
966
967 int index = _keys->GetCurSel();
968 if (index < 0)
969 {
970 return;

Callers

nothing calls this directly

Calls 8

LocalizeStringFunction · 0.85
GetCtrlFunction · 0.85
IsReverseMouseMethod · 0.80
IsJoystickEnabledMethod · 0.80
GetSizeMethod · 0.45
SetMethod · 0.45
SetTextMethod · 0.45

Tested by

no test coverage detected