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

Method OnSimulate

engine/Poseidon/UI/DisplayUIMultiplayerWizard.cpp:927–1003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

925 {
926 if (_cursor != CursorMove)
927 {
928 _cursor = CursorMove;
929 SetCursor("Move");
930 }
931 }
932 else if (_map->_moving)
933 {
934 if (_cursor != CursorScroll)
935 {
936 _cursor = CursorScroll;
937 SetCursor("Scroll");
938 }
939 }
940 else
941 {
942 if (_cursor != CursorTrack)
943 {
944 _cursor = CursorTrack;
945 SetCursor("Track");
946 }
947 }
948 }
949 else
950 {
951 if (_cursor != CursorArrow)
952 {
953 _cursor = CursorArrow;
954 SetCursor("Arrow");
955 }
956 }
957 }
958}
959
960void DisplayWizardMap::OnChildDestroyed(int idd, int exit)
961{
962 switch (idd)
963 {
964 case IDD_ARCADE_MAP:
965 Display::OnChildDestroyed(idd, exit);
966 // if (exit == IDC_OK)
967 {
968 RString userDir = GetUserMissionsBase();
969 SetBaseDirectory(true, userDir);
970 if (_multiplayer)
971 {
972 GetNetworkManager().CreateMission("", "");
973 ::SetMission(_world, _name, GetMPMissionsDir());
974 }
975 else
976 {
977 ::SetMission(_world, _name, GetMissionsDir());
978 }
979
980 OnButtonClicked(IDC_OK);
981 }
982 break;
983 default:
984 Display::OnChildDestroyed(idd, exit);

Callers

nothing calls this directly

Calls 7

GetCtrlFunction · 0.85
ScrollXMethod · 0.80
ScrollYMethod · 0.80
IsVisibleMethod · 0.45
ProcessCheatsMethod · 0.45
GetCursorXMethod · 0.45
GetCursorYMethod · 0.45

Tested by

no test coverage detected