예제 #1
0
 public MyHudMissingComponentNotification(MyStringId text,
                                          int disapearTimeMs           = 2500,
                                          MyFontEnum font              = MyFontEnum.White,
                                          MyGuiDrawAlignEnum textAlign = MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER,
                                          int priority = 0,
                                          MyNotificationLevel level = MyNotificationLevel.Normal) :
     base(disapearTimeMs, font, textAlign, priority, level)
 {
     m_originalText = text;
 }
예제 #2
0
 public MyHudNotificationDebug(string text,
                               int disapearTimeMs           = 2500,
                               MyFontEnum font              = MyFontEnum.White,
                               MyGuiDrawAlignEnum textAlign = MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER,
                               int priority = 0,
                               MyNotificationLevel level = MyNotificationLevel.Debug) :
     base(disapearTimeMs, font, textAlign, priority, level)
 {
     m_originalText = text;
 }
 public MyHudMissingComponentNotification(MyStringId text,
     int disapearTimeMs           = 2500,
     MyFontEnum font              = MyFontEnum.White,
     MyGuiDrawAlignEnum textAlign = MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER,
     int priority                 = 0,
     MyNotificationLevel level    = MyNotificationLevel.Normal)
     : base(disapearTimeMs, font, textAlign, priority, level)
 {
     m_originalText = text;
 }
예제 #4
0
        public MyHudNotificationBase(
            int disapearTimeMs,
            string font = MyFontEnum.White,
            MyGuiDrawAlignEnum textAlign = MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER,
            int priority                 = 0,
            MyNotificationLevel level    = MyNotificationLevel.Normal)
        {
            Font = font;
            Priority = priority;
            m_isTextDirty = true;

            m_actualTextAlign = textAlign;
            AssignFormatArgs(null);
            Level = level;

            // timing:
            m_lifespanMs = disapearTimeMs;
            m_aliveTime = 0;
            RefreshAlive();
        }
예제 #5
0
        public MyHudNotificationBase(
            int disapearTimeMs,
            MyFontEnum font = MyFontEnum.White,
            MyGuiDrawAlignEnum textAlign = MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER,
            int priority = 0,
            MyNotificationLevel level = MyNotificationLevel.Normal)
        {
            Font          = font;
            Priority      = priority;
            m_isTextDirty = true;

            m_actualTextAlign = textAlign;
            AssignFormatArgs(null);
            Level = level;

            // timing:
            m_lifespanMs = disapearTimeMs;
            m_aliveTime  = 0;
            RefreshAlive();
        }
예제 #6
0
 public MyHudNotificationDebug(string text,
     int disapearTimeMs           = 2500,
     string font = MyFontEnum.White,
     MyGuiDrawAlignEnum textAlign = MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_CENTER,
     int priority                 = 0,
     MyNotificationLevel level    =  MyNotificationLevel.Debug):
     base(disapearTimeMs, font, textAlign, priority, level)
 {
     m_originalText = text;
 }