Пример #1
0
            public ControlWithDescription(MyGameControlEnums control)
            {
                MyControl c = MyGuiManager.GetInput().GetGameControl(control);

                Control     = c.GetControlButtonStringBuilder(MyGuiInputDeviceEnum.Keyboard);
                Description = MyTextsWrapper.Get(c.GetControlName());
            }
Пример #2
0
            public ControlWithDescription(MyGameControlEnums control1, MyGameControlEnums control2)
            {
                MyControl c1 = MyGuiManager.GetInput().GetGameControl(control1);
                MyControl c2 = MyGuiManager.GetInput().GetGameControl(control2);

                Control     = new StringBuilder().Append(c1.GetControlButtonStringBuilder(MyGuiInputDeviceEnum.Keyboard)).Append(", ").Append(c2.GetControlButtonStringBuilder(MyGuiInputDeviceEnum.Keyboard));
                Description = new StringBuilder().Append(MyTextsWrapper.Get(c1.GetControlName())).Append(" / ").Append(MyTextsWrapper.Get(c2.GetControlName()));
            }