| 940 | } |
| 941 | |
| 942 | IceWindow* Opcode_InitGUI(IceWidget* parent, PintGUIHelper& helper) |
| 943 | { |
| 944 | IceWindow* Main = helper.CreateMainWindow(gOpcodeGUI, parent, OPCODE_GUI_MAIN, "Opcode 1.3 options"); |
| 945 | |
| 946 | const sdword YStep = 20; |
| 947 | const sdword YStepCB = 16; |
| 948 | sdword y = 4; |
| 949 | |
| 950 | { |
| 951 | const udword CheckBoxWidth = 200; |
| 952 | |
| 953 | gCheckBox_DrawMeshAABBS = helper.CreateCheckBox(Main, OPCODE_GUI_DRAW_MESH_AABBS, 4, y, CheckBoxWidth, 20, "Draw mesh AABBs", gOpcodeGUI, gDrawMeshAABBs, gCheckBoxCallback); |
| 954 | y += YStepCB; |
| 955 | |
| 956 | gCheckBox_Quantized = helper.CreateCheckBox(Main, OPCODE_GUI_QUANTIZED, 4, y, CheckBoxWidth, 20, "Quantized", gOpcodeGUI, gQuantized, gCheckBoxCallback); |
| 957 | y += YStepCB; |
| 958 | |
| 959 | gCheckBox_NoLeaf = helper.CreateCheckBox(Main, OPCODE_GUI_NOLEAF, 4, y, CheckBoxWidth, 20, "No Leaf", gOpcodeGUI, gNoLeaf, gCheckBoxCallback); |
| 960 | y += YStepCB; |
| 961 | } |
| 962 | |
| 963 | return Main; |
| 964 | } |
| 965 | |
| 966 | void Opcode_CloseGUI() |
| 967 | { |
no test coverage detected