Beispiel #1
0
        public Message(string text, string areaName, MessageLifespan lifespan)
        {
            content      = new MessageContent();
            controlBlock = new MessageControlBlock();

            content.text     = text;
            content.areaName = areaName;

            content.lifespan = lifespan;

            content.inheritStyleMaskFromArea = MessageStyleParameterMask.GetMask(
                MessageStyleParameter.DisplayTime,
                MessageStyleParameter.EntranceAnimation,
                MessageStyleParameter.EntranceTime,
                MessageStyleParameter.ExitAnimation,
                MessageStyleParameter.ExitTime,
                MessageStyleParameter.Mode,
                MessageStyleParameter.Color);
        }
Beispiel #2
0
        public Message(string text, string areaName, Color color, MessageEntranceAnimation entranceAnimation, MessageExitAnimation exitAnimation,
                       MessageMode mode, float entranceTime, float displayTime, float exitTime, MessageLifespan lifespan)
        {
            content      = new MessageContent();
            controlBlock = new MessageControlBlock();

            content.text     = text;
            content.areaName = areaName;


            content.entranceAnimation = entranceAnimation;
            content.exitAnimation     = exitAnimation;
            content.entranceTime      = entranceTime;
            content.displayTime       = displayTime;
            content.exitTime          = exitTime;
            content.mode  = mode;
            content.color = color;

            content.lifespan = lifespan;

            content.inheritStyleMaskFromArea.value = 0x00;
        }