private void GetWatchedMovieSeries() { MovieSeriesViewModel = new ProfileViewModel(); //Reset all visuals ready for next use. ResetThumbails(); //Return a list of all series found (Only Watched). GuiCursor.WaitCursor(() => { AllMoviesOrSeriesList = DataConnection.GetWatchedList(); }); //Update using the information found. UpdateThumbnails(); }
private void CreateCursor(Window window) { CursorBehaviour behaviour = null; #if WINDOWS || LINUX behaviour = new FreeCursorBehaviour(window, new Vector2(0f, 0f), new Vector2(1f, 1f)); #elif ANDROID || IOS || WINDOWSPHONE // TODO: aseta touch cursor. #endif cursor = new GuiCursor(behaviour, new EmptyRenderer()); }
protected override void CreateScene() { gameOverlay = OverlayManager.Instance.GetByName("GUI/GameOverlay"); if (gameOverlay == null) { LogManager.Instance.Write(string.Format("Could not find overlay named '{0}'.", "GUI/GameOverlay")); } else { List <string> subCursorList = new List <string>(); subCursorList.Add("GUI/CursorFree"); subCursorList.Add("GUI/CursorOver"); cursor = new GuiCursor( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/Cursor"), subCursorList, 0 ); buttonMenuOptions = new GuiButtonRollover( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonMenuOptions"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonMenu") ); buttonMenuOptions.OnMouseEnter = OnMouseEnterToMenuButton; buttonMenuOptions.OnMouseLeave = OnMouseLeaveFromMenuButton; buttonMenuInventory = new GuiButtonRollover( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonMenuInventory"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonMenu") ); buttonMenuInventory.OnMouseEnter = OnMouseEnterToMenuButton; buttonMenuInventory.OnMouseLeave = OnMouseLeaveFromMenuButton; buttonMenuMap = new GuiButtonRollover( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonMenuMap"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonMenu") ); buttonMenuMap.OnMouseEnter = OnMouseEnterToMenuButton; buttonMenuMap.OnMouseLeave = OnMouseLeaveFromMenuButton; buttonSkillHandDefault = new GuiButtonRollover( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonSkillHandDefault"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonSkills") ); buttonSkillHandDefault.OnMouseEnter = OnMouseEnterToSkillButton; buttonSkillHandDefault.OnMouseLeave = OnMouseLeaveFromSkillButton; buttonSkillFootDefault = new GuiButtonRollover( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonSkillFootDefault"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonSkills") ); buttonSkillFootDefault.OnMouseEnter = OnMouseEnterToSkillButton; buttonSkillFootDefault.OnMouseLeave = OnMouseLeaveFromSkillButton; buttonSkillAttackDefault = new GuiButtonRollover( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonSkillAttackDefault"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonSkills") ); buttonSkillAttackDefault.OnMouseEnter = OnMouseEnterToSkillButton; buttonSkillAttackDefault.OnMouseLeave = OnMouseLeaveFromSkillButton; buttonSkillDefendDefault = new GuiButtonRollover( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonSkillDefendDefault"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonSkills") ); buttonSkillDefendDefault.OnMouseEnter = OnMouseEnterToSkillButton; buttonSkillDefendDefault.OnMouseLeave = OnMouseLeaveFromSkillButton; buttonSkillTalkDefault = new GuiButtonRollover( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonSkillTalkDefault"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonSkills") ); buttonSkillTalkDefault.OnMouseEnter = OnMouseEnterToSkillButton; buttonSkillTalkDefault.OnMouseLeave = OnMouseLeaveFromSkillButton; buttonStatDefault = new GuiButtonRadiobox( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonStatDefault"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonStat") ); buttonStatDefault.OnMouseEnter = OnMouseEnterToSkillButton; buttonStatDefault.OnMouseLeave = OnMouseLeaveFromSkillButton; buttonStat01 = new GuiButtonRadiobox( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonStatStrength"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonStat") ); buttonStat01.OnMouseEnter = OnMouseEnterToSkillButton; buttonStat01.OnMouseLeave = OnMouseLeaveFromSkillButton; buttonStat02 = new GuiButtonRadiobox( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonStatVitality"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonStat") ); buttonStat02.OnMouseEnter = OnMouseEnterToSkillButton; buttonStat02.OnMouseLeave = OnMouseLeaveFromSkillButton; buttonStat03 = new GuiButtonRadiobox( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonStatAgility"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonStat") ); buttonStat03.OnMouseEnter = OnMouseEnterToSkillButton; buttonStat03.OnMouseLeave = OnMouseLeaveFromSkillButton; buttonStat04 = new GuiButtonRadiobox( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/ButtonStatCharm"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/SelectionButtonStat") ); buttonStat04.OnMouseEnter = OnMouseEnterToSkillButton; buttonStat04.OnMouseLeave = OnMouseLeaveFromSkillButton; panelSkills = new GuiPanel( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelSkills") ); panelCharacters = new GuiPanel( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelCharacters") ); panelTooltip = new GuiPanelBorder( (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelTooltipCenter"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelTooltipTopLeft"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelTooltipTop"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelTooltipTopRight"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelTooltipLeft"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelTooltipRight"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelTooltipBottomLeft"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelTooltipBottom"), (Panel)OverlayManager.Instance.Elements.GetElement("GUI/PanelTooltipBottomRight"), (TextArea)OverlayManager.Instance.Elements.GetElement("GUI/TextTooltipHeader") ); panelTooltip.Visibility = false; panelCharacters.Components.Add(buttonMenuOptions); panelCharacters.Components.Add(buttonMenuInventory); panelCharacters.Components.Add(buttonMenuMap); panelSkills.Components.Add(buttonSkillHandDefault); panelSkills.Components.Add(buttonSkillFootDefault); panelSkills.Components.Add(buttonSkillAttackDefault); panelSkills.Components.Add(buttonSkillDefendDefault); panelSkills.Components.Add(buttonSkillTalkDefault); panelSkills.Components.Add(buttonStatDefault); panelSkills.Components.Add(buttonStat01); panelSkills.Components.Add(buttonStat02); panelSkills.Components.Add(buttonStat03); panelSkills.Components.Add(buttonStat04); GuiBase.Cursor = cursor; GuiBase.Panels.Add(panelSkills); GuiBase.Panels.Add(panelCharacters); GuiBase.Panels.Add(panelTooltip); panelTooltip.Resize(128, 128); panelTooltip.Move(-145, -264); } //SceneNode node = scene.RootSceneNode.CreateChildSceneNode(); //SceneNode sphNode = node.CreateChildSceneNode(); //sphNode.Position = new Vector3(0, 0, 0); //Entity sphere = scene.CreateEntity("Sphere", PrefabEntity.Sphere); //sphere.MaterialName = "RPG/Floor/Indoor/Wood01"; //sphNode.AttachObject(sphere); //Light light = scene.CreateLight("Light01"); //light.Type = Axiom.Graphics.LightType.Directional; //light.Direction = new Vector3(-1.0f, -1.0f, -1.0f); //light.Diffuse = new ColorEx(1.0f, 1.0f, 1.0f); //SceneNode lightNode = scene.RootSceneNode.CreateChildSceneNode(); //lightNode.AttachObject(light); //lightNode.Position = new Vector3(15.0f, 15.0f, 15.0f); //Mesh mesh01 = MeshManager.Instance.Load("interior_wall_window_01.mesh", ResourceGroupManager.DefaultResourceGroupName); //SceneNode node01 = scene.RootSceneNode.CreateChildSceneNode(); //Entity wall01 = scene.CreateEntity("wall01", "interior_wall_window_01.mesh"); //node01.AttachObject(wall01); //node01.Translate(new Vector3(0, 0, 4)); ////node01.Yaw(90); //Mesh mesh2 = MeshManager.Instance.Load("interior_wall_edge_01.mesh", ResourceGroupManager.DefaultResourceGroupName); //SceneNode node02 = scene.RootSceneNode.CreateChildSceneNode(); //Entity wall02 = scene.CreateEntity("wall02", "interior_wall_edge_01.mesh"); ////athene.MaterialName = atheneMaterials[currentAtheneMaterial]; //node02.AttachObject(wall02); //node02.Translate(new Vector3(0, 0, 0)); ////node02.Yaw(90); Mesh meshFloor03 = MeshManager.Instance.Load("saga_house01_floor03.mesh", ResourceGroupManager.DefaultResourceGroupName); SceneNode node01 = scene.RootSceneNode.CreateChildSceneNode(); Entity entityFloor03 = scene.CreateEntity("floor03", "saga_house01_floor03.mesh"); node01.AttachObject(entityFloor03); //node01.Translate(new Vector3(0, 0, 4)); //node01.Yaw(90); }
private void button1_Click(object sender, EventArgs e) { GuiCursor.WaitCursor(() => { DoSomething(); }); }