Ejemplo n.º 1
0
        public static PopupAlertMessage AvatarPurchaseSuccessFeedback(AvatarMetadata avatarMetadata)
        {
            List <List <SpriteText> > stMatrix;
            List <SpriteText>         titleSTList, messageSTList1, messageSTList2;

            titleSTList = new List <SpriteText>();
            titleSTList.Add(new SpriteText(FontTextType.FontAwesome11, "" + (char)Language.PopupAlertMessageAvatarPurchaseSuccessTitleIcon, Color.White, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));
            titleSTList.Add(new SpriteText(FontTextType.Consolas11, Language.PopupAlertMessageAvatarPurchaseSuccessTitle, Color.White, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));
            titleSTList.Add(new SpriteText(FontTextType.FontAwesome11, "" + (char)Language.PopupAlertMessageAvatarPurchaseSuccessTitleIcon, Color.White, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));

            messageSTList1 = new List <SpriteText>();
            messageSTList1.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageAvatarPurchaseSuccessMessage11, Color.White, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));
            messageSTList1.Add(new SpriteText(FontTextType.Consolas10, avatarMetadata.Gender + " - " + avatarMetadata.AvatarCategory + " - " + avatarMetadata.Name, Color.LightSalmon, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));
            messageSTList1.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageAvatarPurchaseSuccessMessage12, Color.White, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));

            messageSTList2 = new List <SpriteText>();
            messageSTList2.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageAvatarPurchaseSuccessMessage21, Color.White, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));

            stMatrix = new List <List <SpriteText> >();
            stMatrix.Add(messageSTList1);
            stMatrix.Add(messageSTList2);

            CompositeSpriteText title, message;

            title   = CompositeSpriteText.CreateCompositeSpriteText(titleSTList, Orientation.Horizontal, Alignment.Left, default);
            message = CompositeSpriteText.CreateCompositeSpriteText(stMatrix, Alignment.Left, Vector2.Zero + new Vector2(0, 20), new Vector2(0, 0));

            PopupAlertMessage popup = new PopupAlertMessage(title, message, AlertMessageType.Accept);

            popup.OnConfirm = (x) => PopupHandler.Remove(popup);
            return(popup);
        }
Ejemplo n.º 2
0
        public static PopupAlertMessage GameServerDisconnection()
        {
            List <List <SpriteText> > stMatrix;
            List <SpriteText>         titleSTList, messageSTList1, messageSTList2;

            titleSTList = new List <SpriteText>();
            titleSTList.Add(new SpriteText(FontTextType.FontAwesome11, "" + (char)FontAwesomeIconIndex.Exclamation_Triangle, Color.Red, Alignment.Left, layerDepth: DepthParameter.InterfacePopupMessageText));
            titleSTList.Add(new SpriteText(FontTextType.Consolas11, Language.PopupAlertMessageTitleError, Color.White, Alignment.Left, layerDepth: DepthParameter.InterfacePopupMessageText));
            titleSTList.Add(new SpriteText(FontTextType.FontAwesome11, "" + (char)FontAwesomeIconIndex.Exclamation_Triangle, Color.Red, Alignment.Left, layerDepth: DepthParameter.InterfacePopupMessageText));

            messageSTList1 = new List <SpriteText>();
            messageSTList1.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageServerDisconnection, Color.White, Alignment.Left, layerDepth: DepthParameter.InterfacePopupMessageText));
            messageSTList1.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageGameServer, Color.CadetBlue, Alignment.Left, layerDepth: DepthParameter.InterfacePopupMessageText));
            messageSTList1.Add(new SpriteText(FontTextType.Consolas10, ".", Color.White, Alignment.Left, layerDepth: DepthParameter.InterfacePopupMessageText));

            messageSTList2 = new List <SpriteText>();
            messageSTList2.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageGameServerDisconnection, Color.White, Alignment.Left, layerDepth: DepthParameter.InterfacePopupMessageText));

            stMatrix = new List <List <SpriteText> >();
            stMatrix.Add(messageSTList1);
            stMatrix.Add(messageSTList2);

            CompositeSpriteText title, message;

            title   = CompositeSpriteText.CreateCompositeSpriteText(titleSTList, Orientation.Horizontal, Alignment.Left, default);
            message = CompositeSpriteText.CreateCompositeSpriteText(stMatrix, Alignment.Left, Vector2.Zero + new Vector2(0, 20), new Vector2(0, 0));

            PopupAlertMessage popup = new PopupAlertMessage(title, message, AlertMessageType.Cancel);

            popup.OnClose = (x) => { SceneHandler.Instance.RequestSceneChange(SceneType.ServerSelection, TransitionEffectType.RotatingRectangles); };

            return(popup);
        }
Ejemplo n.º 3
0
        public static PopupAlertMessage LeaveGame()
        {
            List <List <SpriteText> > stMatrix;
            List <SpriteText>         titleSTList, messageSTList1, messageSTList2;

            titleSTList = new List <SpriteText>();
            titleSTList.Add(new SpriteText(FontTextType.Consolas11, Language.PopupAlertMessageLeaveGameTitle, Color.White, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));

            messageSTList1 = new List <SpriteText>();
            messageSTList1.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageLeaveGameMessage11, Color.White, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));
            messageSTList1.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageLeaveGameMessage12, Color.LightSalmon, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));
            messageSTList1.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageLeaveGameMessage13, Color.White, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));

            messageSTList2 = new List <SpriteText>();
            messageSTList2.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageLeaveGameMessage21, Color.White, Alignment.Left, layerDepth: DepthParameter.SceneTransitioningEffectBase));

            stMatrix = new List <List <SpriteText> >();
            stMatrix.Add(messageSTList1);
            stMatrix.Add(messageSTList2);

            CompositeSpriteText title, message;

            title   = CompositeSpriteText.CreateCompositeSpriteText(titleSTList, Orientation.Horizontal, Alignment.Left, default);
            message = CompositeSpriteText.CreateCompositeSpriteText(stMatrix, Alignment.Left, Vector2.Zero + new Vector2(0, 20), new Vector2(0, 0));

            PopupAlertMessage popup = new PopupAlertMessage(title, message);

            popup.OnConfirm = (x) => { SceneHandler.Instance.CloseGame(); };
            return(popup);
        }
Ejemplo n.º 4
0
        public static PopupAlertMessage AvatarPurchaseFailureFeedback()
        {
            List <List <SpriteText> > stMatrix;
            List <SpriteText>         titleSTList, messageSTList1;

            titleSTList = new List <SpriteText>();
            titleSTList.Add(new SpriteText(FontTextType.Consolas11, Language.PopupAlertMessageAvatarPurchaseFailureTitle, Color.White, Alignment.Left, layerDepth: DepthParameter.InterfacePopupMessageText));

            messageSTList1 = new List <SpriteText>();
            messageSTList1.Add(new SpriteText(FontTextType.Consolas10, Language.PopupAlertMessageAvatarPurchaseFailureMessage11, Color.White, Alignment.Left, layerDepth: DepthParameter.InterfacePopupMessageText));

            stMatrix = new List <List <SpriteText> >();
            stMatrix.Add(messageSTList1);

            CompositeSpriteText title, message;

            title   = CompositeSpriteText.CreateCompositeSpriteText(titleSTList, Orientation.Horizontal, Alignment.Left, default);
            message = CompositeSpriteText.CreateCompositeSpriteText(stMatrix, Alignment.Left, Vector2.Zero + new Vector2(0, 20), new Vector2(0, 0));

            PopupAlertMessage popup = new PopupAlertMessage(title, message, AlertMessageType.Cancel);

            popup.OnConfirm = (x) => PopupHandler.Remove(popup);

            return(popup);
        }