//--------------------------------------------- #region static Methods Region /// <summary> /// Generate a new instance of the chatLabel. /// </summary> /// <param name="myRes"> /// the <see cref="LabelControl.MyRes"/>. /// </param> /// <param name="father"> /// the <see cref="LabelControl.Father"/>, /// this object should be the GameClient. /// </param> /// <returns></returns> public static ChatLabelControl GenerateChatLabel(IRes myRes, GameClient father, LabelControl backLabel) { ChatLabelControl chatLabel = new ChatLabelControl(myRes, father, backLabel); return(chatLabel); }
public ChatBarLabel(IRes myRes, ChatLabelControl chatLabel, bool isSelected = false) : base(myRes, LabelControlSpecies.ChatBarLabelControl) { ChatLabel = chatLabel; IsSelected = isSelected; IsGeneral = true; InitializeBarComponent(); }
//--------------------------------------------- #region Constructors Region /// <summary> /// create a new instance of the <see cref="ChatBackgroundLabel"/>, /// which will provide you the chat frame, chat icon /// and chat flash. /// </summary> /// <param name="myRes"></param> /// <param name="client"></param> public ChatBackgroundLabel(IRes myRes, GameClient client, ChatLabelControl backLabel) : base(myRes, LabelControlSpecies.ChatBackGroundLabel) { GameClient = client; BackLabel = backLabel; // set the default showing channel to the cross, // so when the user opens his chat channel, he should see the // cross channel's chats. CurrentShowingChannel = ChatChannels.Cross_Chat; Movements = ElementMovements.VerticalMovements; InitializeComponent(); }