コード例 #1
0
        public MyGuiScreenHudSpace()
            : base()
        {
            RecreateControls(true);

            m_markerRender              = new MyHudMarkerRender(this);
            m_oreHudMarkerStyle         = m_markerRender.AllocateMarkerStyle(MyFontEnum.White, MyHudTexturesEnum.DirectionIndicator, MyHudTexturesEnum.Target_neutral, Color.White);
            m_gpsHudMarkerStyle         = m_markerRender.AllocateMarkerStyle(MyFontEnum.DarkBlue, MyHudTexturesEnum.DirectionIndicator, MyHudTexturesEnum.Target_me, MyHudConstants.GPS_COLOR);
            m_buttonPanelHudMarkerStyle = m_markerRender.AllocateMarkerStyle(MyFontEnum.DarkBlue, MyHudTexturesEnum.DirectionIndicator, MyHudTexturesEnum.Target_me, MyHudConstants.GPS_COLOR);

            m_tmpHudEntityParams = new MyHudEntityParams()
            {
                Text       = new StringBuilder(),
                FlagsEnum  = MyHudIndicatorFlagsEnum.SHOW_ALL,
                IconColor  = MyHudConstants.GPS_COLOR,
                OffsetText = true
            };
        }