/// <summary>Assigns all needed attributes to the tag</summary> /// <returns>This instance downcasted to base class</returns> public virtual IndexedTag attr( string id = null, string @class = null, string style = null, string title = null, string longdesc = null, string name = null, string src = null, bool? frameborder = null, int? marginwidth = null, int? marginheight = null, Scrolling? scrolling = null, NoResize? noresize = null ) { Id = id; Class = @class; Style = style; Title = title; LongDesc = longdesc; Name = name; Src = src; FrameBorder = frameborder; MarginWidth = marginwidth; MarginHeight = marginheight; Scrolling = scrolling; NoResize = noresize; return this; }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); scrolling1 = new Scrolling(Content.Load <Texture2D>("fondo/dd1"), new Rectangle(0, 0, 1600, 500)); scrolling2 = new Scrolling(Content.Load <Texture2D>("fondo/dd2"), new Rectangle(1600, 0, 1600, 500)); scroll1 = new Scrolling(Content.Load <Texture2D> ("fondo/ee1"), new Rectangle(0, 0, 1600, 500)); scroll2 = new Scrolling(Content.Load <Texture2D> ("fondo/ee2"), new Rectangle(1600, 0, 1600, 500)); level3a = new Scrolling(Content.Load <Texture2D> ("fondo/ff2"), new Rectangle(0, 0, 1600, 500)); level3b = new Scrolling(Content.Load <Texture2D> ("fondo/ff1"), new Rectangle(1600, 0, 1600, 500)); level4a = new Scrolling(Content.Load <Texture2D> ("fondo/ArcheAge-wallpaper-6"), new Rectangle(0, 0, 2000, 500)); level4b = new Scrolling(Content.Load <Texture2D> ("fondo/ArcheAge-wallpaper-6"), new Rectangle(2000, 0, 2000, 500)); player = new Animation(); fondo = Content.Load <Texture2D>("fondo/win"); musicadefondo = Content.Load <Song>("musica/mus.wav"); MediaPlayer.Play(musicadefondo); // Reproducimos MediaPlayer.IsRepeating = true; // Repetimos MediaPlayer.Volume = 0.3f; fuente1 = Content.Load <SpriteFont>("Fuentes/fuente1"); fuente2 = Content.Load <SpriteFont> ("Fuentes/fuente2"); enemigo = Content.Load <Texture2D> ("Graficos/enemigo"); //fondo = Content.Load<Texture2D>("fondo/medabots-medals"); sprite = Content.Load <Texture2D>("Graficos/megidramon"); player.Initialize(sprite, cordes, 88, 90, 8, 180, Color.White, 1.0f, true); //playeranimation.Initialize(sprite, cordes, 88, 90, 8, 180, Color.White, 1.0f, true); IsMouseVisible = true; //pausedtexture = }
public void ThenTheVideoHearingsOfficerUserShouldSeeAnAlert(string notification, string alertType) { _browsers[_c.CurrentUser].Refresh(); _browsers[_c.CurrentUser].Driver.WaitForAngular(); Scrolling.ScrollToTheHearing(_browsers[_c.CurrentUser], _c.Test.Conference.Id); _browsers[_c.CurrentUser].TextOf(VhoHearingListPage.StatusBadge(_c.Test.Conference.Id)).Should().Be(notification.Equals("Suspended") ? notification : "Not Started"); _browsers[_c.CurrentUser].Click(VhoHearingListPage.SelectHearingButton(_c.Test.Conference.Id)); Scrolling.ScrollToTheTopOfThePage(_browsers[_c.CurrentUser]); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(AdminPanelPage.ParticipantStatusTable, 60).Displayed.Should().BeTrue(); _browsers[_c.CurrentUser].TextOf(AdminPanelPage.TaskDetails(_c.Test.TaskId)).Should().Be(alertType); var timeOfAlert = _c.TimeZone.Adjust(_c.Test.AlertTime).ToString(DateFormats.AlertMessageTimestamp); var timeOfAlertMinusAMinute = _c.TimeZone.Adjust(_c.Test.AlertTime).AddMinutes(-1).ToString(DateFormats.AlertMessageTimestamp); var timeOfAlertPlusAMinute = _c.TimeZone.Adjust(_c.Test.AlertTime).AddMinutes(1).ToString(DateFormats.AlertMessageTimestamp); _browsers[_c.CurrentUser].Driver.WaitUntilElementExists(AdminPanelPage.TaskCheckbox(_c.Test.TaskId)).Selected.Should().BeFalse(); _browsers[_c.CurrentUser].Driver.WaitUntilElementExists(AdminPanelPage.TaskCheckbox(_c.Test.TaskId)).Enabled.Should().BeTrue(); var timestamp = _browsers[_c.CurrentUser].TextOf(AdminPanelPage.TaskCreatedDate(_c.Test.TaskId)); timestamp.Should().BeOneOf(timeOfAlert, timeOfAlertMinusAMinute, timeOfAlertPlusAMinute); if (alertType.ToLower().Contains("failed self-test") || alertType.ToLower().Equals("disconnected")) { _browsers[_c.CurrentUser].TextOf(AdminPanelPage.TaskFromUser(_c.Test.TaskId)).Should().Be(_c.Test.Participant.Name); } }
public void Load(ContentManager Content) { CanChange = false; select = Content.Load <SoundEffect>("Sounds/MenuSelect"); push = Content.Load <SoundEffect>("Sounds/MenuPush"); back = Content.Load <SoundEffect>("Sounds/MenuBack"); MainMenuTheme = Content.Load <Song>("Sounds/MainMenuTheme"); size = new Vector2(graphicsDevice.PreferredBackBufferWidth / 16, graphicsDevice.PreferredBackBufferHeight / 16); center = new Vector2(graphicsDevice.PreferredBackBufferWidth / 2, graphicsDevice.PreferredBackBufferHeight / 2); scroll1 = new Scrolling(Content.Load <Texture2D>("Textures/Backrounds/Backround1"), new Rectangle(0, 0, graphicsDevice.PreferredBackBufferWidth, graphicsDevice.PreferredBackBufferHeight)); scroll2 = new Scrolling(Content.Load <Texture2D>("Textures/Backrounds/Backround1"), new Rectangle(graphicsDevice.PreferredBackBufferWidth, 0, graphicsDevice.PreferredBackBufferWidth, graphicsDevice.PreferredBackBufferHeight)); Circle = Content.Load <Texture2D>("Textures/Misc/Circle"); CirlceRect = new Rectangle((int)(center.X - size.X * 2), (int)(center.Y - size.Y * 4), 255, 250); objects.Add(new MenuObject(new Rectangle((int)(center.X - size.X), (int)(center.Y - size.Y * 3), (int)size.X, (int)size.Y), "Start")); objects.Add(new MenuObject(new Rectangle((int)(center.X - size.X), (int)(center.Y - size.Y * 2), (int)size.X, (int)size.Y), "Options")); objects.Add(new MenuObject(new Rectangle((int)(center.X - size.X), (int)(center.Y - size.Y * 1), (int)size.X, (int)size.Y), "Exit")); foreach (MenuObject obj in objects) { obj.Load(Content); } SelecRect = new Rectangle((int)(center.X - size.X), (int)(center.Y - size.Y * 3), (int)size.X, (int)size.Y); MediaPlayer.Play(MainMenuTheme); }
public override void LoadContent() { scrolling1 = new Scrolling(Content.Load <Texture2D>("skyMenu"), new Rectangle(0, 0, 800, 600)); scrolling2 = new Scrolling(Content.Load <Texture2D>("skyMenu"), new Rectangle(800, 0, 800, 600)); texBack = texFromFile(graphicsDevice, dir + "help.png"); back1 = new ImageBackground(texBack, Color.White, graphicsDevice); }
public override void LoadContent() { scrolling1 = new Scrolling(Content.Load <Texture2D>("skyMenu"), new Rectangle(0, 0, 800, 600)); scrolling2 = new Scrolling(Content.Load <Texture2D>("skyMenu"), new Rectangle(800, 0, 800, 600)); texBack = texFromFile(graphicsDevice, dir + "menu1.png"); texBall = texFromFile(graphicsDevice, dir + "ballMenu.png"); back1 = new ImageBackground(texBack, Color.White, graphicsDevice); texBack1 = texFromFile(graphicsDevice, dir + "help.png"); back2 = new ImageBackground(texBack1, Color.White, graphicsDevice); anmiationList = new SpriteList(); for (int y = 0; y < 2; y++) { anmiation1 = new Sprite3(true, texBall, 190, 265 + b); anmiation1.setXframes(3); anmiation1.setYframes(1); anmiation1.setWidthHeight(32, 32); Vector2[] seq = new Vector2[3]; seq[0].X = 1; seq[0].Y = 0; seq[1].X = 2; seq[1].Y = 0; seq[2].X = 0; seq[2].Y = 0; anmiation1.setAnimationSequence(seq, 0, 2, 15); anmiation1.animationStart(); anmiationList.addSpriteReuse(anmiation1); b = b + 56; } }
public static List <Company> SearchURLForAllCompanies(string url) { HtmlWeb htmlWeb = new HtmlWeb(); HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(Scrolling.Scroll(url)); List <Company> allCompanies = null; HtmlNodeCollection nodes = doc.DocumentNode.SelectNodes("//div[@class='company-action company_inner_right']"); List <string> companyUrlList = new List <string>(); try { // find the address of a particular company foreach (HtmlNode node in nodes) { var jobUrl = node.SelectSingleNode(".//a").Attributes[0].Value; companyUrlList.Add(@"https://staff.am" + jobUrl); } allCompanies = GetAllCompaniesWithTheirInfo(companyUrlList); } catch (Exception) { } return(allCompanies); }
public void CheckScrollingInCalendars() { var deskPage = _pages.GetPage <PageObjectCP>(); deskPage.OpenCP(); System.Threading.Thread.Sleep(10000); IJavaScriptExecutor executor = (IJavaScriptExecutor)driver; executor.ExecuteScript(Scripts.ScriptsJS.cparrowsCalendar); //need add href calendar deskPage.CheckLeftMenuDirectory(""); System.Threading.Thread.Sleep(7000); Scrolling.ScrollToBottom("#overflow-view"); System.Threading.Thread.Sleep(3000); Scrolling.ScrollToTop("div#overflow-view"); System.Threading.Thread.Sleep(3000); Scrolling.ScrollToBottom("#overflow-view"); System.Threading.Thread.Sleep(3000); Scrolling.ScrollToElement("#DataGrid1 > tbody > tr.TableHeader > td:nth-child(1) > a"); System.Threading.Thread.Sleep(3000); }
public void ProgressToNextPage() { Scrolling.ScrollToTheHearing(_browsers[_c.CurrentUser], _c.Test.Conference.Id); _browsers[_c.CurrentUser].Click(VhoHearingListPage.SelectHearingButton(_c.Test.Conference.Id)); Scrolling.ScrollToTheTopOfThePage(_browsers[_c.CurrentUser]); _browsers[_c.CurrentUser].Click(VhoHearingListPage.HearingsTabButton); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(AdminPanelPage.ParticipantStatusTable, 60).Displayed.Should().BeTrue(); }
public void ThenTheVideoHearingsOfficerUserShouldNotSeeAnAlert() { _browsers[_c.CurrentUser].Refresh(); Scrolling.ScrollToTheHearing(_browsers[_c.CurrentUser], _c.Test.Conference.Id); _browsers[_c.CurrentUser].Click(VhoHearingListPage.SelectHearingButton(_c.Test.Conference.Id)); Scrolling.ScrollToTheTopOfThePage(_browsers[_c.CurrentUser]); Tasks.TasksListShouldBeEmpty(_c); }
internal void OnScrolling(object sender, EventArgs args) { //Listener.CancelActiveGestures(); // this breaks UWP listview scrolling!!! //System.Diagnostics.Debug.WriteLine("scrolling"); IsScrolling = true; Scrolling?.Invoke(this, args); //System.Diagnostics.Debug.WriteLine("EnhancedListView.OnScrolling: offset=[" + ScrollOffset + "]"); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. sSpriteBatch = new SpriteBatch(GraphicsDevice); gameState = new GameState(); scrolling1 = new Scrolling(Content.Load <Texture2D>("background1"), new Rectangle(0, 0, 1000, 500)); scrolling2 = new Scrolling(Content.Load <Texture2D>("background1"), new Rectangle(0, 500, 1000, 500)); scrolling3 = new Scrolling(Content.Load <Texture2D>("background1"), new Rectangle(0, 1000, 1000, 500)); sanic = new Sanic(new Vector2(0, 0.8f)); }
public void ThenTheParticipantsStatusesAre(string text, string participantStatus) { Scrolling.ScrollToTheHearing(_browsers[_c.CurrentUser], _c.Test.Conference.Id); _browsers[_c.CurrentUser].Click(VhoHearingListPage.SelectHearingButton(_c.Test.Conference.Id)); Scrolling.ScrollToTheTopOfThePage(_browsers[_c.CurrentUser]); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(AdminPanelPage.ParticipantStatusTable, 60).Displayed.Should().BeTrue(); var participants = text.Equals("participants") ? _c.Test.ConferenceParticipants.Where(x => x.UserRole != UserRole.Judge) : ParticipantsManager.GetParticipantsFromRole(_c.Test.ConferenceParticipants, text); CheckParticipantStatus(participantStatus, participants); }
private void OnTriggerEnter(Collider other) { if (!m_CameraScrolling) { m_CameraScrolling = Camera.main.GetComponent <Scrolling>(); } if (other.tag == "Player") { m_CameraScrolling.CameraSpeed = m_newCameraSpeed; } }
public void WhenTheVideoHearingsOfficerStartsACallWithIndividual(string text) { Scrolling.ScrollToTheHearing(_browsers[_c.CurrentUser], _c.Test.Conference.Id); _browsers[_c.CurrentUser].Click(VhoHearingListPage.SelectHearingButton(_c.Test.Conference.Id)); Scrolling.ScrollToTheTopOfThePage(_browsers[_c.CurrentUser]); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(AdminPanelPage.ParticipantStatusTable, 60).Displayed.Should().BeTrue(); _browsers[_c.CurrentUser].Driver.SwitchTo().Frame(AdminPanelPage.AdminIframeId); Thread.Sleep(TimeSpan.FromSeconds(SecondsDelayBeforeCallingTheParticipant)); _browsers[_c.CurrentUser].Click(AdminPanelPage.ParticipantInIframe(GetParticipantDisplayName(text))); Thread.Sleep(TimeSpan.FromSeconds(SecondsDelayBeforeCallingTheParticipant)); _browsers[_c.CurrentUser].Click(AdminPanelPage.VhoPrivateConsultationLink); _browsers[_c.CurrentUser].LastWindowName = _browsers[_c.CurrentUser].SwitchTab("Private Consultation"); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(AdminPanelPage.CloseButton).Displayed.Should().BeTrue(); }
public void ThenTheOptionToCallIsNotVisible(string text) { Scrolling.ScrollToTheHearing(_browsers[_c.CurrentUser], _c.Test.Conference.Id); _browsers[_c.CurrentUser].Click(VhoHearingListPage.SelectHearingButton(_c.Test.Conference.Id)); Scrolling.ScrollToTheTopOfThePage(_browsers[_c.CurrentUser]); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(AdminPanelPage.ParticipantStatusTable, 60).Displayed.Should().BeTrue(); _browsers[_c.CurrentUser].Driver.SwitchTo().Frame(AdminPanelPage.AdminIframeId); var user = Users.GetUserFromText(text, _c.Test.Users); var participant = _c.Test.ConferenceParticipants.Find(x => x.Username.ToLower().Contains(user.Username.ToLower())); Thread.Sleep(TimeSpan.FromSeconds(SecondsDelayBeforeCallingTheParticipant)); _browsers[_c.CurrentUser].Click(AdminPanelPage.ParticipantInIframe(participant.DisplayName)); Thread.Sleep(TimeSpan.FromSeconds(SecondsDelayBeforeCallingTheParticipant)); _browsers[_c.CurrentUser].Driver.WaitUntilElementNotVisible(AdminPanelPage.VhoPrivateConsultationLink).Should().BeTrue(); }
protected override void LoadContent() { //SOUND INTIALIZATION jumpSound = Content.Load <SoundEffect>("jumpsound"); crouchSound = Content.Load <SoundEffect>("crouchsound"); crashSound = Content.Load <SoundEffect>("crashsound"); obstaclePassedSound = Content.Load <SoundEffect>("obstaclepassedring"); levelUpSound = Content.Load <SoundEffect>("levelupring"); music = Content.Load <Song>("spacewalktheme"); playMusic(); //SCROLLING scrolling1 = new Scrolling(Content.Load <Texture2D>("space-2"), new Rectangle(0, 0, 2000, 2000)); scrolling2 = new Scrolling(Content.Load <Texture2D>("space-1"), new Rectangle(0, 0, 2000, 2000)); scrolling2.rectangle = new Rectangle(scrolling1.texture.Width, 0, scrolling2.rectangle.Width, scrolling2.rectangle.Height); }
void Start() { bgg = PlayerPrefs.GetInt("selectedBG"); if (bgg == 1) { for (int i = 0; i < texts.Length; i++) { texts [i].color = new Color32(0, 0, 0, 255); } } else { for (int i = 0; i < texts.Length; i++) { texts [i].color = new Color32(255, 255, 255, 255); } } PlayerPrefs.SetInt("ScrollBGStop", 1); theScroll = FindObjectOfType <Scrolling> (); lastGroundedPos = new Vector3(0, 0, 0); if (PlayerPrefs.GetString("Playy") == "start") { StartCoroutine("stopPlay"); } PlayerPrefs.SetString("NOTPAUSE", "pause"); PlayerPrefs.SetInt("SpeedUPP", 1); soundEffect = PlayerPrefs.GetFloat("SoundEffect"); moveSpeedL = 7; //PlayerPrefs.SetInt ("CharacterSelected", 0); selectCharacter = PlayerPrefs.GetInt("CharacterSelected"); MRigidbody.GetComponent <Rigidbody2D> (); // MCollider.GetComponent<Collider2D> (); /*MAnimatorBlue.GetComponent<Animator> (); * MAnimatorGrey.GetComponent<Animator> (); * MAnimatorGreen.GetComponent<Animator> (); * MAnimatorRed.GetComponent<Animator> ();*/ jumpTimeCounter = jumpTime; moveSpeedStore = moveSpeed; speedCountStore = speedCount; speedIncreaseStore = speedIncrease; stoppedJumping = true; speedUp = true; jumpOff = false; // greenGemPos = greenGem.transform.position; theCoin.coinInt = 0; }
public void ThenTheVhoCanSeeAListOfHearingsIncludingTheNewHearing() { Scrolling.ScrollToTheHearing(_browsers[_c.CurrentUser], _c.Test.Conference.Id); var hearingThatShouldBeVisible = _c.Test.Conferences.First(); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(VhoHearingListPage.CaseName(hearingThatShouldBeVisible.Id)).Displayed.Should().BeTrue(); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(VhoHearingListPage.CaseNumber(hearingThatShouldBeVisible.Id)).Displayed.Should().BeTrue(); var timespan = TimeSpan.FromMinutes(hearingThatShouldBeVisible.ScheduledDuration); var listedFor = DateTimeToString.GetListedForTimeAsString(timespan); _browsers[_c.CurrentUser].TextOf(VhoHearingListPage.HearingTime(hearingThatShouldBeVisible.Id)) .Should().Be($"{_c.TimeZone.Adjust(hearingThatShouldBeVisible.ScheduledDateTime):HH:mm}"); _browsers[_c.CurrentUser].TextOf(VhoHearingListPage.ListedFor(hearingThatShouldBeVisible.Id)) .Should().Be($"{listedFor}"); Scrolling.ScrollToTheTopOfThePage(_browsers[_c.CurrentUser]); }
private InternalLiteral CreateLiteral() { if (Scrolling == null) { Scrolling = "Auto"; } InternalLiteral l = new InternalLiteral(); l.ID = string.Concat(this.ControlID, "_iframe"); if (State == ControlState.Designtime || State == ControlState.Preview) { StringBuilder item = new StringBuilder(); item.AppendFormat("<div style='width:{0};height:{1};", _width, _height); if (IsVisible) { item.Append("background:#F0F0F0;"); } else { item.Append("background:#C0C0C0;"); } if (FrameBorder) { item.Append("border:2px solid #000;"); } else { item.Append("border:1px dashed #000;"); } if (string.Compare(Scrolling, "auto", true) == 0 || string.Compare(Scrolling, "yes", true) == 0) { item.AppendFormat("overflow-y: {0};", Scrolling.ToLower()); } item.Append("'>IFrame will show here</div>"); l.Text = item.ToString(); } else if (State == ControlState.Runtime) { l.Visible = IsVisible; l.Text = string.Format("<iframe id='{0}_internalframe' width='{1}' height='{2}' src='{3}' scrolling='{4}' frameborder='{5}' ></iframe>", this.ControlID, _width, _height, this.URL, this.Scrolling.ToLower(), (this.FrameBorder == true) ? "1" : "0"); } return(l); }
public void ThenTheVhoShouldSeeTheParticipantContactDetails() { Scrolling.ScrollToTheTopOfThePage(_browsers[_c.CurrentUser]); var hearingParticipants = _c.Test.HearingParticipants.FindAll(x => x.UserRoleName.Equals("Individual") || x.UserRoleName.Equals("Representative")); var hearingParticipant = hearingParticipants.First(); var conferenceParticipant = _c.Test.ConferenceParticipants.Find(x => x.Name.Contains(hearingParticipant.LastName)); var firstParticipantLink = _browsers[_c.CurrentUser].Driver.WaitUntilVisible(VhoHearingListPage.ParticipantContactLink(conferenceParticipant.Id)); firstParticipantLink.Displayed.Should().BeTrue(); var action = new Actions(_browsers[_c.CurrentUser].Driver.WrappedDriver); action.MoveToElement(firstParticipantLink).Perform(); if (_c.VideoWebConfig.TestConfig.TargetBrowser == TargetBrowser.Safari) { return; // Latest version of Safari Driver will not hover over the correct element } TheToolTipDetailsAreDisplayed(conferenceParticipant, hearingParticipant); }
void Update() { if (!m_scrollingData) { m_scrollingData = GetComponent <Scrolling>(); } float scrollingCoef = m_scrollingData.CameraSpeed; Vector3 pos = m_bgFirstLayer1.transform.localPosition; pos.x += firstLayerSpeed * Time.deltaTime * scrollingCoef; m_bgFirstLayer1.transform.localPosition = pos; pos = m_bgFirstLayer2.transform.localPosition; pos.x += firstLayerSpeed * Time.deltaTime * scrollingCoef; m_bgFirstLayer2.transform.localPosition = pos; pos = m_bgFirstLayer3.transform.localPosition; pos.x += firstLayerSpeed * Time.deltaTime * scrollingCoef; m_bgFirstLayer3.transform.localPosition = pos; pos = m_bgSecondLayer1.transform.localPosition; pos.x += secondLayerSpeed * Time.deltaTime * scrollingCoef; m_bgSecondLayer1.transform.localPosition = pos; pos = m_bgSecondLayer2.transform.localPosition; pos.x += secondLayerSpeed * Time.deltaTime * scrollingCoef; m_bgSecondLayer2.transform.localPosition = pos; pos = m_bgSecondLayer3.transform.localPosition; pos.x += secondLayerSpeed * Time.deltaTime * scrollingCoef; m_bgSecondLayer3.transform.localPosition = pos; if (checkPosLayerOne()) { ReplaceLayerOne(); } if (CheckPosLayerTwo()) { ReplaceLayerTwo(); } }
public void AddTextAnimation(VideoText videoText) { FrameworkElement animation = null; switch (videoText.Animation) { case IndoorWorx.Infrastructure.Enums.VideoTextAnimations.FadeCenter: animation = new Fade() { DataContext = videoText }; break; case IndoorWorx.Infrastructure.Enums.VideoTextAnimations.ZoomCenter: animation = new Zoom() { DataContext = videoText }; break; case IndoorWorx.Infrastructure.Enums.VideoTextAnimations.ScrollingCenter: animation = new Scrolling() { DataContext = videoText }; break; case IndoorWorx.Infrastructure.Enums.VideoTextAnimations.Spinner: animation = new Spinner() { DataContext = videoText }; break; default: break; } if (animation != null) { LoadTextAnimation(animation, videoText.Duration); } }
public static string ToRQLString(this Scrolling value) { switch (value) { case Scrolling.NotSet: return(""); case Scrolling.Auto: return("auto"); case Scrolling.Yes: return("yes"); case Scrolling.No: return("no"); default: throw new ArgumentException(string.Format("Unknown {0} value: {1}", typeof(Scrolling).Name, value)); } }
public void RestoreScrollState() { if (base.Nodes.Count < 1) { return; } TreeNode bottomNode = FindClosestPath(State.BottomPath); TreeNode topNode = FindClosestPath(State.TopPath); if (bottomNode != null) { bottomNode.EnsureVisible(); } if (topNode != null) { topNode.EnsureVisible(); } // manually scroll all the way to the left Scrolling.scrollToLeft(this); }
void Start() { m_CameraScrolling = Camera.main.GetComponent <Scrolling>(); }
void Start() { GuiScript = this.GetComponent <GUIScript>(); scrolling = (GetComponent <Scrolling>()) ? GetComponent <Scrolling>() : null; }
void Start() { current = this; }
//Somewhere to store previous keyboard information so we can detect a single key click(as opposed to the 30 a second we get on a key depress) public override void LoadContent() { spriteBatch = new SpriteBatch(graphicsDevice); // random = new Random(); // font1 = Content.Load<SpriteFont>("Fontey"); Particle1 = Util.texFromFile(graphicsDevice, Dir.dir + "Particle1.png"); Particle2 = Util.texFromFile(graphicsDevice, Dir.dir + "Particle2.png"); Particle3 = Util.texFromFile(graphicsDevice, Dir.dir + "Particle3.png"); Particle4 = Util.texFromFile(graphicsDevice, Dir.dir + "ParticleArrow.png"); Particle5 = Util.texFromFile(graphicsDevice, Dir.dir + "Cloud8.png"); Particle6 = Util.texFromFile(graphicsDevice, Dir.dir + "Bug2.png"); tex = Particle2; // font1 = Content.Load <SpriteFont>("SpriteFont1"); texBack = texFromFile(graphicsDevice, dir + "levelOneBack1.png"); spider = texFromFile(graphicsDevice, dir + "Bug.png"); texpaddle = texFromFile(graphicsDevice, dir + "paddle2.png"); bee = texFromFile(graphicsDevice, dir + "Bee2.png"); texAnmiation1 = Util.texFromFile(graphicsDevice, dir + "coin3.png"); texDragon = Util.texFromFile(graphicsDevice, dir + "dragon.png"); scrolling1 = new Scrolling(Content.Load <Texture2D>("skyMenu"), new Rectangle(0, 0, 800, 600)); scrolling2 = new Scrolling(Content.Load <Texture2D>("skyMenu"), new Rectangle(800, 0, 800, 600)); music = Content.Load <SoundEffect>("MUSIC1"); limSound = new LimitSound(music, 3); bazooka = Content.Load <SoundEffect>("bazooka_fire"); baz = bazooka.CreateInstance(); LineBatch.init(graphicsDevice); dragonList = new SpriteList(); for (int y = 0; y < 3; y++) { for (int i = 0; i < 5; i++) { dragon = new Sprite3(true, texDragon, 250 + a, 80 + b); dragon.setXframes(8); dragon.setYframes(1); dragon.setWidthHeight(32, 32); //anmiation1.setBBToTexture(); dragon.setBB(7, 7, 130, 124); Vector2[] seq1 = new Vector2[8]; seq1[0].X = 0; seq1[0].Y = 0; seq1[1].X = 1; seq1[1].Y = 0; seq1[2].X = 2; seq1[2].Y = 0; seq1[3].X = 3; seq1[3].Y = 0; seq1[4].X = 4; seq1[4].Y = 0; seq1[5].X = 5; seq1[5].Y = 0; seq1[6].X = 6; seq1[6].Y = 0; seq1[7].X = 7; seq1[7].Y = 0; dragon.setAnimationSequence(seq1, 0, 7, 10); dragon.animationStart(); dragonList.addSpriteReuse(dragon); a = a + 64; } a = 0; b = b + 80; } ballPos = new Vector2(xx, yy); paddle = new Sprite3(true, texpaddle, xx, bot - texpaddle.Height); paddle.setBBToTexture(); back1 = new ImageBackground(texBack, Color.White, graphicsDevice); playArea = new Rectangle(lhs, top, rhs - lhs, bot - top); // width and height texBall = Util.texFromFile(graphicsDevice, dir + "ball2.png"); //*** ball = new Sprite3(true, texBall, xx, yy); ball.setBBandHSFractionOfTexCentered(0.7f); }
public static TagFrame scrolling(this TagFrame tag, Scrolling value) { tag.Scrolling = value; return(tag); }
void Start() { GuiScript = this.GetComponent<GUIScript>(); scrolling = (GetComponent<Scrolling>()) ? GetComponent<Scrolling>() : null; }
public static TagFrame scrolling(this TagFrame tag, Scrolling value) { tag.Scrolling = value; return tag; }
// Use this for initialization void Start() { scroll = GameObject.Find("Ground1").GetComponent <Scrolling>(); }