protected override void InitInput() { base.InitInput(); // Add signals render mode toggle control MyGuiDescriptor helper = new MyGuiDescriptor(MyCommonTexts.ControlName_ToggleSignalsMode, MyCommonTexts.ControlName_ToggleSignalsMode_Tooltip); MyGuiGameControlsHelpers.Add(MyControlsSpace.TOGGLE_SIGNALS, helper); MyControl control = new MyControl(MyControlsSpace.TOGGLE_SIGNALS, helper.NameEnum, MyGuiControlTypeEnum.Systems1, null, MyKeys.H, description: helper.DescriptionEnum); MyInput.Static.AddDefaultControl(MyControlsSpace.TOGGLE_SIGNALS, control); // Add cube size build mode for cube builder control helper = new MyGuiDescriptor(MyCommonTexts.ControlName_CubeSizeMode, MyCommonTexts.ControlName_CubeSizeMode_Tooltip); MyGuiGameControlsHelpers.Add(MyControlsSpace.CUBE_BUILDER_CUBESIZE_MODE, helper); control = new MyControl(MyControlsSpace.CUBE_BUILDER_CUBESIZE_MODE, helper.NameEnum, MyGuiControlTypeEnum.Systems3, null, MyKeys.R, description: helper.DescriptionEnum); MyInput.Static.AddDefaultControl(MyControlsSpace.CUBE_BUILDER_CUBESIZE_MODE, control); }
public static void Add(MyStringId control, MyGuiDescriptor descriptor) { m_gameControlHelpers.Add(control, descriptor); }
protected override void InitInput() { base.InitInput(); // Add signals render mode toggle control MyGuiDescriptor helper = new MyGuiDescriptor(MyCommonTexts.ControlName_ToggleSignalsMode, MyCommonTexts.ControlName_ToggleSignalsMode_Tooltip); MyGuiGameControlsHelpers.Add(MyControlsSpace.TOGGLE_SIGNALS, helper); MyControl control = new MyControl(MyControlsSpace.TOGGLE_SIGNALS, helper.NameEnum, MyGuiControlTypeEnum.Systems1, null, MyKeys.H, description: helper.DescriptionEnum); MyInput.Static.AddDefaultControl(MyControlsSpace.TOGGLE_SIGNALS, control); }