public Message(string text, string areaName, MessageMode mode) { content = new MessageContent(); controlBlock = new MessageControlBlock(); content.text = text; content.areaName = areaName; content.mode = mode; content.inheritStyleMaskFromArea = MessageStyleParameterMask.GetMask( MessageStyleParameter.DisplayTime, MessageStyleParameter.EntranceAnimation, MessageStyleParameter.EntranceTime, MessageStyleParameter.ExitAnimation, MessageStyleParameter.ExitTime, MessageStyleParameter.Color); }
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; }