MCPcopy Create free account
hub / github.com/Pierre-Terdiman/PEEL / Opcode_InitGUI

Function Opcode_InitGUI

PEEL/Physics/PINT_Opcode1_3/PINT_Opcode13.cpp:942–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940}
941
942IceWindow* 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
966void Opcode_CloseGUI()
967{

Callers 1

InitGUIMethod · 0.85

Calls 2

CreateMainWindowMethod · 0.80
CreateCheckBoxMethod · 0.80

Tested by

no test coverage detected