MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / initMsgBox_ButtonData

Function initMsgBox_ButtonData

Engine/source/platformSDL/sdlMsgBox.cpp:12–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 bool needInitMsgBox = true;
11
12 void initMsgBox_ButtonData()
13 {
14 needInitMsgBox = false;
15
16 SDL_MessageBoxButtonData MBOkButton;
17 MBOkButton.text = "Ok";
18 MBOkButton.buttonid = MROk;
19 MBOkButton.flags = 0;
20
21 SDL_MessageBoxButtonData MBCancelButton;
22 MBCancelButton.text = "Cancel";
23 MBCancelButton.buttonid = MRCancel;
24 MBCancelButton.flags = 0;
25
26 SDL_MessageBoxButtonData MBRetryButton;
27 MBRetryButton.text = "Retry";
28 MBRetryButton.buttonid = MROk;
29 MBRetryButton.flags = 0;
30
31 SDL_MessageBoxButtonData MBSaveButton;
32 MBSaveButton.text = "Save";
33 MBSaveButton.buttonid = MROk;
34 MBSaveButton.flags = 0;
35
36 SDL_MessageBoxButtonData MBDontSaveButton;
37 MBDontSaveButton.text = "Don't Save";
38 MBDontSaveButton.buttonid = MRRetry;
39 MBDontSaveButton.flags = 0;
40
41 MBOkCancelData[0] = MBOkButton;
42 MBOkCancelData[1] = MBCancelButton;
43
44 MBRetryCancelData[0] = MBRetryButton;
45 MBRetryCancelData[1] = MBCancelButton;
46
47 MBSaveDontSaveData[0] = MBSaveButton;
48 MBSaveDontSaveData[1] = MBDontSaveButton;
49
50 MBSaveDontSaveCancelData[0] = MBSaveButton;
51 MBSaveDontSaveCancelData[1] = MBDontSaveButton;
52 MBSaveDontSaveCancelData[2] = MBRetryButton;
53
54 MBAlertAssetData[0].text = "Debug";
55 MBAlertAssetData[0].buttonid = Platform::ALERT_ASSERT_DEBUG;
56 MBAlertAssetData[0].flags = 0;
57
58 MBAlertAssetData[1].text = "Ignore";
59 MBAlertAssetData[1].buttonid = Platform::ALERT_ASSERT_IGNORE;
60 MBAlertAssetData[1].flags = 0;
61
62 MBAlertAssetData[2].text = "Ignore all";
63 MBAlertAssetData[2].buttonid = Platform::ALERT_ASSERT_IGNORE_ALL;
64 MBAlertAssetData[2].flags = 0;
65
66 MBAlertAssetData[3].text = "Exit";
67 MBAlertAssetData[3].buttonid = Platform::ALERT_ASSERT_EXIT;
68 MBAlertAssetData[3].flags = 0;
69 }

Callers 1

messageBoxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected