コード例 #1
0
        public void ReloadControlText()
        {
            m_text = MyTextsWrapper.Get(MyTextsWrapperEnum.AmmoSelectText);

            MyGuiInput input = MyGuiManager.GetInput();

            m_textValues.Clear();
            m_textValues.AppendFormat(MyTextsWrapper.GetFormatString(MyTextsWrapperEnum.AmmoSelectTextValues),
                                      input.GetGameControl(MyGameControlEnums.FIRE_PRIMARY).GetControlButtonStringBuilderCombined(" / "),
                                      input.GetGameControl(MyGameControlEnums.FIRE_SECONDARY).GetControlButtonStringBuilderCombined(" / "),
                                      input.GetGameControl(MyGameControlEnums.FIRE_THIRD).GetControlButtonStringBuilderCombined(" / "),
                                      input.GetGameControl(MyGameControlEnums.FIRE_FOURTH).GetControlButtonStringBuilderCombined(" / "),
                                      input.GetGameControl(MyGameControlEnums.FIRE_FIFTH).GetControlButtonStringBuilderCombined(" / ")
                                      );
        }