public void Apply(IEntity entity) { var uiComponent = new UIComponet { UIName = uiName, IsDynamic = true, UIType = UIType.UI_POPUP }; var popupComponent = new PopupComponent { Title = title, Message = message, Model = model, ModalColor = modelColor }; entity.AddComponent(uiComponent); entity.AddComponent(popupComponent); entity.AddComponent <ViewComponent>(); }
public void Apply(IEntity entity) { var uiComponent = new UIComponet { UIName = uiName, IsDynamic = true, UIType = UIType.UI_DIALOG }; var dialogComponent = new DialogComponent { Title = title, Message = message, Buttons = buttons, Model = model, ModalColor = modelColor }; entity.AddComponent(uiComponent); entity.AddComponent(dialogComponent); entity.AddComponent <ViewComponent>(); }
public void Apply(IEntity entity) { var uiComponent = new UIComponet { UIName = uiName, IsDynamic = true, UIType = UIType.UI_NOTIFY }; var notifyComponent = new NotifyComponent { Message = message, CustomHideDelay = customHideDelay, Container = container, ShowAnimation = showAnimation, HideAnimation = hideAnimation, SlideUpOnHide = slideUpOnHide, SequenceType = sequenceType, SequenceDelay = sequenceDelay, ClearSequence = clearSequence, NewUnscaledTime = newUnscaledTime }; entity.AddComponent(uiComponent); entity.AddComponent(notifyComponent); entity.AddComponent <ViewComponent>(); }