//Temporaire!!!!!!!!!!!!! public static ScreenAnimation Loaded() { ScreenAnimation screen = new ScreenAnimation(); //screen.Templates = new TemplateJSON[] { new TemplateJSON("Load", 1, 1, @"http://Shariz.noip.me/Images/Chargement.png") }; //screen.Templates = Info.Load; screen.Templates = new TemplateJSON[] { new TemplateJSON("Load", 1, 1, Info.ImageToUrl(Info.address_Images_HDD + @"\Default\" + "Chargement.png")) }; //screen.Templates = new TemplateJSON[] { new TemplateJSON("Load", 1, 1, Info.Chargement) }; screen.Animations = new Animation[] { new Animation() }; screen.Animations[0].Name = "Loaded"; screen.Animations[0].Duration = 1000000; screen.Animations[0].Image = new ImageJSON("Load", 1, 1); screen.Animations[0].X = 50; screen.Animations[0].Y = 50; screen.Animations[0].Width = 250; screen.Animations[0].Height = 250; Effect effect = new Effect(); effect.KeyName = "FullScreen"; effect.End = 1000000; screen.Animations[0].Add(effect); return(screen); }
//Temporaire!!!!!!!!!!!!!!!!! public static ScreenAnimation LoadedMap() { ScreenAnimation screen = new ScreenAnimation(); screen.CanInterrupt = true; screen.Templates = new TemplateJSON[] { new TemplateJSON("Load", 1, 1, Info.ImageToUrl(Info.address_Images_HDD + @"\Default\" + "Histoire.png")) }; screen.Animations = new Animation[] { new Animation() }; screen.Animations[0].Name = "Loaded"; screen.Animations[0].Duration = 1000000; screen.Animations[0].Image = new ImageJSON("Load", 1, 1); screen.Animations[0].X = 50; screen.Animations[0].Y = 50; screen.Animations[0].Width = 250; screen.Animations[0].Height = 250; Effect effect = new Effect(); effect.KeyName = "FullScreen"; effect.End = 1000000; screen.Animations[0].Add(effect); return(screen); }
public void PushPopup(GameObject screen, ScreenAnimation screenAnimation) { ModalBG.SetActive(true); _navigationStack.Push(screen); screen.SetActive(true); screen.GetComponent <Animator>().SetTrigger(screenAnimation.ToString()); }
public void NewMap(string name, string fulltype, int width, int height, int depth) { if (fulltype == string.Empty) { fulltype = "Core.Map"; } Map map = Info.Instance(fulltype) as Map; if (map == null) { return; } map.Name = name; map.Width = width; map.Height = height; map.Depth = depth; map.Cubes = new Cube[width, height, depth]; map.ScreenAnimation = ScreenAnimation.LoadedMap(); World.Add(map); Map = map; //Temporaire!!!! for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { Cube ca = new Cube(x, y, 0, map); ca.Floors = new ImageJSON[] { new ImageJSON("Floors", 3, 1) }; ca.Climb = false; } } map.CreateMessageCubes(); map.CreateMessagePermanents(); }
public Map(string name, int width, int height, int depth) { Name = name; Width = width; Height = height; Depth = depth; Cubes = new Cube[width, height, depth]; ScreenAnimation = ScreenAnimation.LoadedMap(); }
public virtual void Init_Hidden() { if (PageInfo == null) { Response.Redirect("~/Default.aspx"); } Page.ClientScript.RegisterHiddenField("PageInfo", Info.JSONSerialize(PageInfo.JSON)); Page.ClientScript.RegisterHiddenField("Appearance", Info.JSONSerialize(new Appearances_Default())); Page.ClientScript.RegisterHiddenField("ScreenLoad", Info.JSONSerialize(ScreenAnimation.Loaded())); }
private void OnEnable() { if (MyAnimationType == ScreenAnimations.MoveScreen) { ScreenAnimation.MoveScreen(MyRectTransform, TimeToAnimate, StartingValue, EndingValue, MyTweenType); } else if (MyAnimationType == ScreenAnimations.ScaleScreen) { ScreenAnimation.ScaleScreen(MyRectTransform, TimeToAnimate, StartingValue, EndingValue, MyTweenType); } }
public MapJSON(Map map) { Name = map.Name; Width = map.Width; Height = map.Height; Depth = map.Depth; NoCeiling = map.NoCeiling; ScreenAnimation = map.ScreenAnimation; MessageCubes_Length = map.MessageCubes.Length; MessagePermanents_Length = map.MessagePermanents.Length; }
public void SetRoot(GameObject rootScreen, ScreenAnimation screenAnimation) { ModalBG.SetActive(false); _navigationStack.Clear(); foreach (var screen in Screens.Values) { screen.SetActive(false); } Push(rootScreen, screenAnimation); }
public void Push(GameObject screen, ScreenAnimation screenAnimation) { ModalBG.SetActive(false); if (_navigationStack.Count > 0) { var lastScreen = _navigationStack.Peek(); lastScreen.SetActive(false); lastScreen.GetComponent <Animator>().SetTrigger(ScreenAnimation.Close.ToString()); } _navigationStack.Push(screen); screen.SetActive(true); screen.GetComponent <Animator>().SetTrigger(screenAnimation.ToString()); }
public override void Init_Hidden() { if (PageInfo == null) { Response.Redirect("~/Default.aspx"); } else { ResizeInterface(); } Page.ClientScript.RegisterHiddenField("PageInfo", Info.JSONSerialize(PageInfo.JSON)); Page.ClientScript.RegisterHiddenField("Appearance", Info.JSONSerialize(new Appearances_Editor())); Page.ClientScript.RegisterHiddenField("ScreenLoad", Info.JSONSerialize(ScreenAnimation.Loaded())); }
public GameObject PopPopup(ScreenAnimation screenAnimation) { ModalBG.SetActive(false); GameObject lastScreen; if (_navigationStack.Count > 1) { lastScreen = _navigationStack.Peek(); lastScreen.SetActive(false); lastScreen.GetComponent <Animator>().SetTrigger(ScreenAnimation.Close.ToString()); _navigationStack.Pop(); } lastScreen = _navigationStack.Peek(); return(lastScreen); }
public void DialogReduction(int dialogID) { dataManager = new DataManager(); dataManager.LoadAll(); nowDialogueData = dataManager.GetDialog1ItemByID(dialogID); LastDialogueData = dataManager.GetDialog1ItemByID(dialogID - 1); role1Data = dataManager.GetCharactersItemByID(nowDialogueData.role1ID); role2Data = dataManager.GetCharactersItemByID(nowDialogueData.role2ID); //获取指定对话的数据、获取角色1、角色2数据 LoadRole1(); LoadRole2(); //替换了两个角色的图片 LoadSayerName(); //更换了说话者的名字 LoadDialogText(); //更改了文本内容与字号 LoadCG(); LoadBG(); LoadBGM(); //完成了BGM的播放 LoadVoice(); //完成了语音/音效的播放 switch (nowDialogueData.ScreenAnimation) { case 1: //背景震动 ScreenAnimation.DoShake(BGGameObject); break; case 3: //黑屏闪烁 ScreenAnimation.DoBlackTwinkle(FullScreeAnimationGameObject); break; case 4: //白屏闪烁 ScreenAnimation.DoWhiteTwinkle(FullScreeAnimationGameObject); break; } //完成了全屏特效 }
public void Push(string screenName, ScreenAnimation screenAnimation) { var screen = Screens[screenName]; Push(screen, screenAnimation); }
public void SetRoot(string rootScreenName, ScreenAnimation screenAnimation) { var screen = Screens[rootScreenName]; SetRoot(screen, screenAnimation); }