From: <ze...@us...> - 2007-11-18 18:46:19
|
Revision: 1075 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1075&view=rev Author: zebons Date: 2007-11-18 10:46:16 -0800 (Sun, 18 Nov 2007) Log Message: ----------- MyFilms v4.3.0 Modified Paths: -------------- trunk/plugins/MyFilms/Configuration.cs trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilms.csproj trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs trunk/plugins/MyFilms/MesFilmsSetup.cs trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo/MesFilmsDetail.xml Added Paths: ----------- trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_No_Cover.png trunk/plugins/MyFilms/skin/BlueTwo/MesFilms_Visible.xml trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms_Visible.xml Modified: trunk/plugins/MyFilms/Configuration.cs =================================================================== --- trunk/plugins/MyFilms/Configuration.cs 2007-11-18 11:51:50 UTC (rev 1074) +++ trunk/plugins/MyFilms/Configuration.cs 2007-11-18 18:46:16 UTC (rev 1075) @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Text; using MediaPortal.Configuration; +using System.IO; @@ -21,7 +22,9 @@ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { StrStorage = xmlreader.GetValueAsString(CurrentConfig, "AntStorage", ""); - StrDirStor = xmlreader.GetValueAsString(CurrentConfig, "PathStorage", ""); + StrDirStor = xmlreader.GetValueAsString(CurrentConfig, "PathStorage", ""); + SearchFile = xmlreader.GetValueAsString(CurrentConfig, "SearchFileName", "False"); + ItemSearchFile = xmlreader.GetValueAsString(CurrentConfig, "ItemSearchFileName", ""); StrIdentItem = xmlreader.GetValueAsString(CurrentConfig, "AntIdentItem", ""); StrTitle1 = xmlreader.GetValueAsString(CurrentConfig, "AntTitle1", ""); StrTitle2 = xmlreader.GetValueAsString(CurrentConfig, "AntTitle2", ""); @@ -83,8 +86,8 @@ StrTxtSelect = xmlreader.GetValueAsString(CurrentConfig, "Selection", ""); StrIndex = xmlreader.GetValueAsInt(CurrentConfig, "IndexItem", -1); StrTIndex = xmlreader.GetValueAsString(CurrentConfig, "TitleItem", ""); - Boolselect = xmlreader.GetValueAsBool(CurrentConfig, "conf.Boolselect", false); - boolreturn = xmlreader.GetValueAsBool(CurrentConfig, "conf.Boolreturn", false); + Boolselect = xmlreader.GetValueAsBool(CurrentConfig, "Boolselect", false); + Boolreturn = xmlreader.GetValueAsBool(CurrentConfig, "Boolreturn", false); WStrSort = xmlreader.GetValueAsString(CurrentConfig, "WStrSort", ""); wselectedlabel = xmlreader.GetValueAsString(CurrentConfig, "WSelectedLabel", ""); Wstar = xmlreader.GetValueAsString(CurrentConfig, "Wstar", ""); @@ -92,6 +95,7 @@ StrViewDfltItem = xmlreader.GetValueAsString(CurrentConfig, "ViewDfltItem", ""); StrViewDfltText = xmlreader.GetValueAsString(CurrentConfig, "ViewDfltText", ""); TitleDelim = xmlreader.GetValueAsString(CurrentConfig, "TitleDelim", "."); + DefaultCover = xmlreader.GetValueAsString(CurrentConfig, "DefaultCover", ""); } if (StrSelect == "") @@ -102,8 +106,10 @@ StrSort = StrTitle1; if (StrSortSens == "") StrSortSens = " ASC"; + + } + - } // static values private static string currentConfig = string.Empty; public static string CurrentConfig @@ -249,6 +255,18 @@ get { return strStorage; } set { strStorage = value; } } + private string searchFile = "False"; + public string SearchFile + { + get { return searchFile; } + set { searchFile = value; } + } + private string itemSearchFile = string.Empty; + public string ItemSearchFile + { + get { return itemSearchFile; } + set { itemSearchFile = value; } + } private string strIdentItem = string.Empty; public string StrIdentItem { @@ -387,6 +405,12 @@ get { return wstar; } set { wstar = value; } } + private string defaultcover = string.Empty; + public string DefaultCover + { + get { return defaultcover; } + set { defaultcover = value; } + } private int strLayOut = int.MinValue; public int StrLayOut { Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-11-18 11:51:50 UTC (rev 1074) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-11-18 18:46:16 UTC (rev 1075) @@ -66,16 +66,6 @@ CTRL_BtnSearchA = 5, CTRL_BtnLayout = 6, CTRL_TxtSelect = 12, - CTRL_LblList = 20, - CTRL_LblIcons = 21, - CTRL_LblBigIcons = 22, - CTRL_LblFilmStrip = 23, - //CTRL_BtnStop = 319, - //CTRL_BtnPause = 315, - //CTRL_BtnBack = 312, - //CTRL_BtnSuiv = 322, - //CTRL_BtnRewind = 313, - //CTRL_BtnForward = 323, CTRL_List = 1026, CTRL_Image = 1020, CTRL_Image2 = 1021, @@ -83,21 +73,6 @@ CTRL_TxtGenre = 1024, CTRL_Texte = 1025, CTRL_Title = 1027, - //CTRL_ImgGrStar1 = 1051, - //CTRL_ImgGrStar2 = 1052, - //CTRL_ImgGrStar3 = 1053, - //CTRL_ImgGrStar4 = 1054, - //CTRL_ImgGrStar5 = 1055, - //CTRL_ImgHStar1 = 1056, - //CTRL_ImgHStar2 = 1057, - //CTRL_ImgHStar3 = 1058, - //CTRL_ImgHStar4 = 1059, - //CTRL_ImgHStar5 = 1060, - //CTRL_ImgStar1 = 1061, - //CTRL_ImgStar2 = 1062, - //CTRL_ImgStar3 = 1063, - //CTRL_ImgStar4 = 1064, - //CTRL_ImgStar5 = 1065, CTRL_NbObjects = 2073 } [SkinControlAttribute((int)Controls.CTRL_TxtSelect)] @@ -106,8 +81,6 @@ protected GUISortButtonControl BtnSrtBy = null; [SkinControlAttribute((int)Controls.CTRL_List)] protected GUIFacadeControl facadeView = null; - //[SkinControlAttribute((int)Controls.CTRL_List)] - //protected GUIListControl lsCtlFilm = null; [SkinControlAttribute((int)Controls.CTRL_Texte)] protected GUITextScrollUpControl ScrlLstText = null; [SkinControlAttribute((int)Controls.CTRL_Title)] @@ -246,6 +219,12 @@ if (actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) if (GetPrevFilmList()) return; + + //if (((actionType.wID == Action.ActionType.ACTION_MOVE_RIGHT) || (actionType.wID == Action.ActionType.ACTION_MOVE_LEFT)) + // && ((facadeView.SelectedListItem.ItemId > -1) && (!facadeView.SelectedListItem.IsFolder))) + // affichage_Lstdetail(facadeView.SelectedListItem.ItemId, true, facadeView.SelectedListItem.Label); + + base.OnAction(actionType); } //--------------------------------------------------------------------------------------- @@ -301,7 +280,7 @@ } else { - if (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder) + if (facadeView.SelectedListItemIndex > -1 && !facadeView.SelectedListItem.IsFolder) { affichage_Lstdetail(facadeView.SelectedListItem.ItemId, false, facadeView.SelectedListItem.Label); } @@ -314,35 +293,6 @@ base.OnMessage(messageType); return true; - //case GUIMessage.MessageType.GUI_MSG_SETFOCUS: - // //--------------------------------------------------------------------------------------- - // // Hide Informations about List Item - // //--------------------------------------------------------------------------------------- - // if ((iControl == 0) && (dControl == (int)Controls.CTRL_List)) - // { - // base.OnMessage(messageType); - // return true; - // } - // if ((dControl == (int)Controls.CTRL_List) && !(conf.Boolselect || (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder))) //xxxx - // { - // if (facadeView.SelectedListItemIndex > -1) - // { - // affichage_Lstdetail(facadeView.SelectedListItem.ItemId, true, facadeView.SelectedListItem.Label); - // } - // } - // else - // if (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder) - // { - // affichage_Lstdetail(facadeView.SelectedListItem.ItemId, false, facadeView.SelectedListItem.Label); - // } - // else - // { - // GUIControl.ShowControl(GetID, 34); - //affichage_rating(0); - // } - // base.OnMessage(messageType); - // return true; - case GUIMessage.MessageType.GUI_MSG_CLICKED: //--------------------------------------------------------------------------------------- // Mouse/Keyboard Clicked @@ -474,7 +424,7 @@ if (!facadeView.SelectedListItem.IsFolder && !conf.Boolselect) // New Window for detailed selected item information { - conf.StrIndex = facadeView.SelectedListItemIndex; + conf.StrIndex = facadeView.SelectedListItem.ItemId; GUIWindowManager.ActivateWindow(ID_MesFilmsDetail); } else @@ -620,34 +570,16 @@ facadeView.Clear(); //---------------------------------------------------------------------------------------- // Load the DataSet. + int number = -1; foreach (DataRow r in BaseMesFilms.LectureDonn\xE9es(conf.StrDfltSelect, conf.StrFilmSelect, conf.StrSort, conf.StrSortSens)) { + number++; if (conf.Boolreturn)//in case of selection by view verify if value correspond excatly to the searched string { - //string[] split; - //if (conf.WStrSort == "DateAdded") - // split = string.Format("{0:yyyy/MM/dd}", r[conf.WStrSort]).Split(new Char[] { ',' }); - //else - // split = r[conf.WStrSort].ToString().Split(new Char[] { ',','(',')',}); - //foreach (string s in split) - //{ - // if (s.Trim().ToLower() == conf.Wselectedlabel.Trim().ToLower()) - // goto suite; - //} - //goto fin; - //string[] split; - //if (conf.WStrSort == "DateAdded") - // split = string.Format("{0:yyyy/MM/dd}", r[conf.WStrSort]).Split(new Char[] { ',' }); - //else - // split = r[conf.WStrSort].ToString().Split(new Char[] { ',','(',')',}); - //foreach (string s in split) - //{ - // if (s.Trim().ToLower() == conf.Wselectedlabel.Trim().ToLower()) - // goto suite; - //} if (r[conf.WStrSort].ToString().IndexOfAny (conf.Wselectedlabel.Trim().ToCharArray ()) >=0) goto suite; - goto fin; } + goto fin; + } suite: string wthumb = item.ThumbnailImage; @@ -674,7 +606,6 @@ iCnt = 1; item = new GUIListItem(); item.Label = sFullTitle; // Set = full subfolders path initially - item.ItemId = (int)(r["Number"]); switch (conf.StrSort) { case "TranslatedTitle": @@ -702,22 +633,17 @@ break; } if (r["Picture"].ToString().IndexOf(":\\") == -1) - { - item.ThumbnailImage = conf.StrPathImg + "\\" + r["Picture"].ToString(); - item.IconImage = conf.StrPathImg + "\\" + r["Picture"].ToString(); - } + conf.FileImage = conf.StrPathImg + "\\" + r["Picture"].ToString(); else - { - item.ThumbnailImage = r["Picture"].ToString(); - item.IconImage = conf.StrPathImg + "\\" + r["Picture"].ToString(); - } - //if ((!System.IO.File.Exists(item.IconImage)) || r["Picture"].ToString().Length == 0) - //{ - // item.ThumbnailImage = "Films_No_Cover.png"; - // item.IconImage = Config.Dir.Skin + "\\media\\Films_No_Cover.png"; - //} + conf.FileImage = r["Picture"].ToString(); + if (!System.IO.File.Exists(conf.FileImage)) + conf.FileImage = conf.DefaultCover; + item.ThumbnailImage = conf.FileImage; + item.IconImage = conf.FileImage; +// item.IconImageBig = conf.FileImage; + item.ItemId = number; + item.OnItemSelected += new MediaPortal.GUI.Library.GUIListItem.ItemSelectedHandler(item_OnItemSelected); - //item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt); facadeView.Add(item); if (iSelItem == -2) //set selected item = passed in string? @@ -779,9 +705,6 @@ { int r, i; - //if (rating == 0) - // r = -1; //=> hide all - //else r = Decimal.ToInt32(Decimal.Round(rating, MidpointRounding.AwayFromZero)); // by setting rating here can easily modify for diff effect if (r > 10) r = 10; for (i = 0; i < 10; i++) @@ -798,8 +721,9 @@ //---------------------------------------------------------------------------------------- private void affichage_Lstdetail(int ItemId, bool wrep, string wlabel)//wrep = false display only image { - DataRow[] r = BaseMesFilms.LectureDonn\xE9es("Number = " + ItemId.ToString(), "", "", ""); - if (r.Length == 0) + // DataRow[] r = BaseMesFilms.LectureDonn\xE9es("Number = " + ItemId.ToString(), "", "", ""); + DataRow[] r = BaseMesFilms.LectureDonn\xE9es(conf.StrDfltSelect, conf.StrFilmSelect, conf.StrSort, conf.StrSortSens); + if (ItemId > r.Length) { GUIControl.ShowControl(GetID, 34); affichage_rating(0); @@ -808,17 +732,17 @@ GUIControl.HideControl(GetID, 34); try { - if (!(conf.FileImage == conf.StrPathImg + "\\" + r[0]["Picture"].ToString() || conf.FileImage == r[0]["Picture"].ToString())) + if (!(conf.FileImage == conf.StrPathImg + "\\" + r[ItemId]["Picture"].ToString() || conf.FileImage == r[ItemId]["Picture"].ToString())) { //if (conf.FileImage != "9999") - { - ImgLstFilm.FreeResources(); - } - ImgLstFilm2.FreeResources(); - if (r[0]["Picture"].ToString().IndexOf(":\\") == -1) - conf.FileImage = conf.StrPathImg + "\\" + r[0]["Picture"].ToString(); + // ImgLstFilm.FreeResources(); + // ImgLstFilm2.FreeResources(); + if (r[ItemId]["Picture"].ToString().IndexOf(":\\") == -1) + conf.FileImage = conf.StrPathImg + "\\" + r[ItemId]["Picture"].ToString(); else - conf.FileImage = r[0]["Picture"].ToString(); + conf.FileImage = r[ItemId]["Picture"].ToString(); + if (!System.IO.File.Exists(conf.FileImage)) + conf.FileImage = conf.DefaultCover; ImgLstFilm.SetFileName(conf.FileImage); ImgLstFilm2.SetFileName(conf.FileImage); } @@ -826,11 +750,6 @@ catch { conf.FileImage = "9999"; - //FileImage = Config.Dir.Skin + "\\media\\Films_No_Cover.png"; - //GUIControl.HideControl(GetID, Ctrl_DspImage); - //GUIControl.HideControl(GetID, Ctrl_DspImage2); - //GUIControl.ShowControl(GetID, 34); - //affichage_rating(0); } if (!wrep) { @@ -839,13 +758,14 @@ return; } ScrlLstText.Clear(); - ScrlLstText.Label = r[0]["Description"].ToString().Replace('|', ' '); + ScrlLstText.Label = r[ItemId]["Description"].ToString().Replace('|', ' '); + TitleSelect.Label = r[ItemId][conf.StrTitle1].ToString(); TitleSelect.Label = wlabel; - TxtLstGenre.Label = r[0]["Category"].ToString(); - TxtLstYear.Label = r[0]["Year"].ToString(); + TxtLstGenre.Label = r[ItemId]["Category"].ToString(); + TxtLstYear.Label = r[ItemId]["Year"].ToString(); try { - conf.W_rating = (decimal)r[0]["Rating"]; + conf.W_rating = (decimal)r[ItemId]["Rating"]; } catch { @@ -994,7 +914,10 @@ if (arSplit[wi].IndexOf("(") > 0) wzone = arSplit[wi].Substring(0, arSplit[wi].IndexOf("(")).Trim(); else - wzone = arSplit[wi].Trim(); + if (arSplit[wi].IndexOf(" as ") > 0) + wzone = arSplit[wi].Substring(0, arSplit[wi].IndexOf(" as ")).Trim(); + else + wzone = arSplit[wi].Trim(); if (wzone.Length > 0) w_tableau.Add(wzone); } @@ -1064,6 +987,7 @@ conf.Boolselect = true; conf.Boolreturn = false; } + } //-------------------------------------------------------------------------------------------- // Initial Windows load. If LoadDfltSlct = true => load default select if any @@ -1158,37 +1082,25 @@ //-------------------------------------------------------------------------------------------- private void Change_LayOut(int wLayOut) { - GUIControl.HideControl(GetID, (int)Controls.CTRL_LblList); switch (wLayOut) { case 1: GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(100)); - GUIControl.ShowControl(GetID, (int)Controls.CTRL_LblIcons); - GUIControl.HideControl(GetID, (int)Controls.CTRL_LblList); facadeView.View = GUIFacadeControl.ViewMode.SmallIcons; break; case 2: GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(417)); - GUIControl.ShowControl(GetID, (int)Controls.CTRL_LblBigIcons); - GUIControl.HideControl(GetID, (int)Controls.CTRL_LblIcons); facadeView.View = GUIFacadeControl.ViewMode.LargeIcons; break; case 3: GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(733)); - GUIControl.ShowControl(GetID, (int)Controls.CTRL_LblFilmStrip); - GUIControl.HideControl(GetID, (int)Controls.CTRL_LblBigIcons); facadeView.View = GUIFacadeControl.ViewMode.Filmstrip; break; default: GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(101)); - GUIControl.ShowControl(GetID, (int)Controls.CTRL_LblList); - GUIControl.HideControl(GetID, (int)Controls.CTRL_LblFilmStrip); facadeView.View = GUIFacadeControl.ViewMode.List; break; } - //GUIControl.HideControl(GetID, facadeView.GetID); - //int iControl = facadeView.GetID; - //GUIControl.ShowControl(GetID, iControl); GUIControl.FocusControl(GetID, facadeView.GetID); } //-------------------------------------------------------------------------------------------- Modified: trunk/plugins/MyFilms/MesFilms.csproj =================================================================== --- trunk/plugins/MyFilms/MesFilms.csproj 2007-11-18 11:51:50 UTC (rev 1074) +++ trunk/plugins/MyFilms/MesFilms.csproj 2007-11-18 18:46:16 UTC (rev 1075) @@ -30,26 +30,26 @@ <DebugSymbols>true</DebugSymbols> </PropertyGroup> <ItemGroup> - <Reference Include="Core, Version=1.0.2546.32606, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Core, Version=0.2.3.0, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\mediaportal_plugin\MesFilms\Core_SVN\Core.DLL</HintPath> + <HintPath>..\..\mediaportal_plugin\MesFilms\Core_Rc3\Core.DLL</HintPath> </Reference> - <Reference Include="Databases, Version=1.0.2546.32610, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Databases, Version=0.2.3.0, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\mediaportal_plugin\MesFilms\Core_SVN\Databases.DLL</HintPath> + <HintPath>..\..\mediaportal_plugin\MesFilms\Core_Rc3\Databases.DLL</HintPath> </Reference> - <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Dialogs, Version=0.2.3.0, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\mediaportal_plugin\MesFilms\Core_SVN\Dialogs.dll</HintPath> + <HintPath>..\..\mediaportal_plugin\MesFilms\Core_Rc3\Dialogs.DLL</HintPath> </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Drawing" /> <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml" /> - <Reference Include="Utils, Version=1.0.2546.32604, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Utils, Version=2.2.2.0, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\mediaportal_plugin\MesFilms\Core_SVN\Utils.DLL</HintPath> + <HintPath>..\..\mediaportal_plugin\MesFilms\Core_Rc3\Utils.DLL</HintPath> </Reference> </ItemGroup> <ItemGroup> Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-11-18 11:51:50 UTC (rev 1074) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-11-18 18:46:16 UTC (rev 1075) @@ -80,8 +80,6 @@ [SkinControlAttribute((int)Controls.CTRL_ImgDD)] protected GUIImage ImgDD = null; - string ItemSearchFile = null; - bool SearchFile = false; string wzone = null; int StrMax = 0; public SQLiteClient m_db; @@ -158,6 +156,7 @@ // Windows Init //--------------------------------------------------------------------------------------- g_Player.PlayBackStarted += new MediaPortal.Player.g_Player.StartedHandler(OnPlayBackStarted); + //g_Player.PlayBackEnded += new MediaPortal.Player.g_Player.EndedHandler(OnPlayBackEnded); m_directory.SetExtensions(Utils.VideoExtensions); base.OnMessage(messageType); @@ -253,15 +252,15 @@ base.OnMessage(messageType); return true; } - //------------------------------------------------------------------------------------------- - // Load the XML data. - //------------------------------------------------------------------------------------------- - private DataRow[] LectureDonn\xE9es(string StrFilmSelect, string StrSort, string StrSortSens) - { - r = BaseMesFilms.LectureDonn\xE9es(StrFilmSelect, StrSort, StrSortSens); - StrMax = (int)r.Length; - return r; - } + ////------------------------------------------------------------------------------------------- + //// Load the XML data. + ////------------------------------------------------------------------------------------------- + //private DataRow[] LectureDonn\xE9es(string StrFilmSelect, string StrSort, string StrSortSens) + //{ + // r = BaseMesFilms.LectureDonn\xE9es(StrFilmSelect, StrSort, StrSortSens); + // StrMax = (int)r.Length; + // return r; + //} //-------------------------------------------------------------------------------------------- // Update specifics Infos //-------------------------------------------------------------------------------------------- @@ -464,6 +463,9 @@ file = MesFilms.conf.StrPathImg + "\\" + r[MesFilms.conf.StrIndex]["Picture"].ToString(); else file = r[MesFilms.conf.StrIndex]["Picture"].ToString(); + if (!System.IO.File.Exists(file)) + file = MesFilms.conf.DefaultCover; + ImgDetFilm.SetFileName(file ); ImgDetFilm2.SetFileName(file); if (!(MesFilms.conf.StrStorage.Length == 0) && !(MesFilms.conf.StrStorage == "(none)")) @@ -634,17 +636,21 @@ string fileName = null; if (!(MesFilms.conf.StrStorage == null) && !(MesFilms.conf.StrStorage == "(none)") && !(MesFilms.conf.StrStorage == "")) { - fileName = (string)r[select_item][MesFilms.conf.StrStorage]; + try + { fileName = (string)r[select_item][MesFilms.conf.StrStorage]; } + catch + { fileName = ""; } + if ((fileName == "")) // recherche nom de fichier par titre du film - if ((SearchFile) && (first)) + if ((MesFilms.conf.SearchFile == "True") && (first)) { - if (ItemSearchFile.Length > 0) + if (MesFilms.conf.ItemSearchFile.Length > 0) { - fileName = Search_FileName(r[select_item][ItemSearchFile].ToString(), MesFilms.conf.StrDirStor); + fileName = Search_FileName(r[select_item][MesFilms.conf.ItemSearchFile].ToString(), MesFilms.conf.StrDirStor); if (fileName.Length > 0) { - r[MesFilms.conf.StrIndex][MesFilms.conf.StrStorage] = fileName; + r[MesFilms.conf.StrIndex][MesFilms.conf.StrStorage] = fileName.Substring(fileName.LastIndexOf(@"\") + 1); Update_XML_database(false, MesFilms.conf.StrIndex, MesFilms.conf.StrStorage); } } @@ -777,7 +783,11 @@ VideoDatabase.SetMovieDuration(idFile, movieDuration); } } + //private void OnPlayBackEnded(MediaPortal.Player.g_Player.MediaType type, string filename) + //{ + // System.Windows.Forms.MessageBox.Show("OnPlayBackEnded"); + //} private void AddFileToDatabase(string strFile,int select_item) { if (!Utils.IsVideo(strFile)) return; @@ -827,59 +837,71 @@ bool asked = false; string wfile = null; GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); - if (PlayListFactory.IsPlayList(filename.Trim())) + wfile = filename.Trim(); + string wstordir = MesFilms.conf.StrDirStor; + if (PlayListFactory.IsPlayList(wfile)) { wfile = LoadPlaylist(filename.Trim()); - if (!(wfile == "")) - multifile = true; - else + wstordir = wfile.Substring(0, wfile.LastIndexOf(@"\")).Trim() + ";" + wstordir; + + if (wfile == "") { - first = false; - wfile = GUILocalizeStrings.Get(136) + " : max 15 " + GUILocalizeStrings.Get(100003); - dlgOk.SetHeading(3);//my videos - dlgOk.SetLine(1, 1036);//no video found - dlgOk.SetLine(2, wfile);//ANT File Name - dlgOk.SetLine(3, 477);//Unable to load playlist - dlgOk.DoModal(GetID); - return; // fist time ask for mounting; second time stop + if (first) // first time asking for mounting + { + first = false; + wfile = GUILocalizeStrings.Get(136) + " : max 15 " + GUILocalizeStrings.Get(100003); + dlgOk.SetHeading(3);//my videos + dlgOk.SetLine(1, 1036);//no video found + dlgOk.SetLine(2, wfile);//ANT File Name + dlgOk.SetLine(3, 477);//Unable to load playlist + dlgOk.DoModal(GetID); + return; // fist time ask for mounting; second time stop + } + else + return; // second time no asking } } // search character ";" => playlist (multiple files) string[] split; - split = filename.ToString().Split(new Char[] { ',', ';' }); + split = wfile.ToString().Split(new Char[] { ',', ';' }); if (split.Length > 1) + multifile = true; + else multifile = false; - else - multifile = true; foreach (string file in split) { - wfile = SearchMovie(file.Trim(), MesFilms.conf.StrDirStor); + wfile = SearchMovie(file.Trim(), wstordir); if (wfile == "false") { // file not found - // ask for mounting file - dlgOk.SetHeading(3);//my videos - dlgOk.SetLine(1, 219);//no disc - if (!(MesFilms.conf.StrIdentItem == null) && !(MesFilms.conf.StrIdentItem == "(none)") && !(MesFilms.conf.StrIdentItem == "")) - if (MesFilms.conf.StrIdentLabel.Length > 0) - dlgOk.SetLine(2, MesFilms.conf.StrIdentLabel.ToString() + " = " + r[select_item][MesFilms.conf.StrIdentItem].ToString());//Label Identification for Media + if (first) + // ask for mounting file first time + { + dlgOk.SetHeading(3);//my videos + dlgOk.SetLine(1, 219);//no disc + if (!(MesFilms.conf.StrIdentItem == null) && !(MesFilms.conf.StrIdentItem == "(none)") && !(MesFilms.conf.StrIdentItem == "")) + if (MesFilms.conf.StrIdentLabel.Length > 0) + dlgOk.SetLine(2, MesFilms.conf.StrIdentLabel.ToString() + " = " + r[select_item][MesFilms.conf.StrIdentItem].ToString());//Label Identification for Media + else + dlgOk.SetLine(2, "'" + MesFilms.conf.StrIdentItem.ToString() + "' = " + r[select_item][MesFilms.conf.StrIdentItem].ToString());//ANT Item Identification for Media else - dlgOk.SetLine(2, "'" + MesFilms.conf.StrIdentItem.ToString() + "' = " + r[select_item][MesFilms.conf.StrIdentItem].ToString());//ANT Item Identification for Media + dlgOk.SetLine(2, "' disc n\xB0 = " + r[select_item]["Number"].ToString());//ANT Number for Identification Media + dlgOk.SetLine(3, wfile);//ANT File Name + dlgOk.DoModal(GetID); + PlayMovie_Divx(filename, select_item, false); // try a second time. Maybe disc mounted + return; + } else - dlgOk.SetLine(2, "' disc n\xB0 = " + r[select_item]["Number"].ToString());//ANT Number for Identification Media - dlgOk.SetLine(3, wfile);//ANT File Name - dlgOk.DoModal(GetID); - PlayMovie_Divx(filename, select_item, false); // try a second time. Maybe disc mounted - return; + return; //no asking second time } else { // file found update database and add to playlist - idMovie = update_database(file, select_item, idMovie); + idMovie = update_database(wfile, select_item, idMovie); if (!multifile) { //case monofile search files belonging same movie (extension cdx or diskx) - string folder = file.Substring(0, file.LastIndexOf(@"\")).Trim(); - wfile = folder + "\\" + file.Substring(file.LastIndexOf(@"\") + 1); + string folder = wfile.Substring(0, wfile.LastIndexOf(@"\")).Trim(); + // wfile = folder + "\\" + wfile.Substring(file.LastIndexOf(@"\") + 1); ArrayList items = m_directory.GetDirectory(folder.ToString()); for (int i = 0; i < items.Count; ++i) @@ -1049,13 +1071,16 @@ // File.Copy(MesFilms.conf.StrPathImg + "\\" + r1[select_item]["Picture"].ToString(), LargeThumb, true); //else // File.Copy(r1[select_item]["Picture"].ToString(), LargeThumb, true); - string wimage; + string wImage; if (r1[select_item]["Picture"].ToString().IndexOf(":\\") == -1) - wimage = MesFilms.conf.StrPathImg + "\\" + r1[select_item]["Picture"].ToString(); + wImage = MesFilms.conf.StrPathImg + "\\" + r1[select_item]["Picture"].ToString(); else - wimage = r1[select_item]["Picture"].ToString(); - MediaPortal.Util.Picture.CreateThumbnail(wimage, strThumb, 128, 128, 0); - MediaPortal.Util.Picture.CreateThumbnail(wimage, LargeThumb, 512, 512, 0); + wImage = r1[select_item]["Picture"].ToString(); + if (!System.IO.File.Exists(wImage)) + wImage = Config.Dir.Skin + "\\media\\Films_No_Cover.png"; + + MediaPortal.Util.Picture.CreateThumbnail(wImage, strThumb, 128, 128, 0); + MediaPortal.Util.Picture.CreateThumbnail(wImage, LargeThumb, 512, 512, 0); } catch { @@ -1370,10 +1395,10 @@ } return false; } - // static public void PlayMovieFromPlayList(bool NoResumeMovie) - // { - // PlayMovieFromPlayList(NoResumeMovie, -1); - // } + static public void PlayMovieFromPlayList(bool NoResumeMovie) + { + PlayMovieFromPlayList(NoResumeMovie, -1); + } static public void PlayMovieFromPlayList(bool NoResumeMovie, int iMovieIndex) { string filename; Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-11-18 11:51:50 UTC (rev 1074) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-11-18 18:46:16 UTC (rev 1075) @@ -186,6 +186,9 @@ this.ButSave = new System.Windows.Forms.Button(); this.Config_Dflt = new System.Windows.Forms.CheckBox(); this.Config_Menu = new System.Windows.Forms.CheckBox(); + this.DutDefCov = new System.Windows.Forms.Button(); + this.DefaultCover = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); this.General.SuspendLayout(); this.tabPage1.SuspendLayout(); this.groupBox11.SuspendLayout(); @@ -208,9 +211,9 @@ this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(676, 42); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 13); + this.label10.Size = new System.Drawing.Size(69, 13); this.label10.TabIndex = 34; - this.label10.Text = "Version 4.2.6a"; + this.label10.Text = "Version 4.3.0"; // // textBox1 // @@ -459,6 +462,9 @@ // // groupBox5 // + this.groupBox5.Controls.Add(this.DutDefCov); + this.groupBox5.Controls.Add(this.DefaultCover); + this.groupBox5.Controls.Add(this.label19); this.groupBox5.Controls.Add(this.label17); this.groupBox5.Controls.Add(this.TitleDelim); this.groupBox5.Controls.Add(this.label9); @@ -467,7 +473,7 @@ this.groupBox5.Controls.Add(this.AntTitle1); this.groupBox5.Location = new System.Drawing.Point(7, 208); this.groupBox5.Name = "groupBox5"; - this.groupBox5.Size = new System.Drawing.Size(453, 76); + this.groupBox5.Size = new System.Drawing.Size(453, 100); this.groupBox5.TabIndex = 61; this.groupBox5.TabStop = false; this.groupBox5.Text = "Title Order"; @@ -510,9 +516,9 @@ // AntTitle2 // this.AntTitle2.FormattingEnabled = true; - this.AntTitle2.Location = new System.Drawing.Point(131, 41); + this.AntTitle2.Location = new System.Drawing.Point(132, 41); this.AntTitle2.Name = "AntTitle2"; - this.AntTitle2.Size = new System.Drawing.Size(156, 21); + this.AntTitle2.Size = new System.Drawing.Size(155, 21); this.AntTitle2.TabIndex = 11; // // AntTitle1 @@ -1088,6 +1094,32 @@ this.Config_Menu.Text = "Display Always Configuration\'s Menu (if no Default Config)"; this.Config_Menu.UseVisualStyleBackColor = true; // + // DutDefCov + // + this.DutDefCov.Location = new System.Drawing.Point(401, 66); + this.DutDefCov.Name = "DutDefCov"; + this.DutDefCov.Size = new System.Drawing.Size(32, 22); + this.DutDefCov.TabIndex = 69; + this.DutDefCov.Text = "..."; + this.DutDefCov.UseVisualStyleBackColor = true; + this.DutDefCov.Click += new System.EventHandler(this.DutDefCov_Click); + // + // DefaultCover + // + this.DefaultCover.Location = new System.Drawing.Point(132, 68); + this.DefaultCover.Name = "DefaultCover"; + this.DefaultCover.Size = new System.Drawing.Size(259, 20); + this.DefaultCover.TabIndex = 68; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(8, 71); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(74, 13); + this.label19.TabIndex = 67; + this.label19.Text = "Default Poster"; + // // MesFilmsSetup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1231,6 +1263,9 @@ private CheckBox Config_Menu; private Label label18; private TextBox Selected_Enreg; + private Button DutDefCov; + private TextBox DefaultCover; + private Label label19; } } \ No newline at end of file Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-11-18 11:51:50 UTC (rev 1074) +++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-11-18 18:46:16 UTC (rev 1075) @@ -417,6 +417,7 @@ MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "Dwp", crypto.Crypter(Dwp.Text)); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "SearchFileName", SearchFileName.Checked); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "ItemSearchFileName", ItemSearchFileName.Text); + MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "DefaultCover", DefaultCover.Text); if (CatalogType.SelectedIndex == 1) { MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "SortTitle", SortTitle.Checked); @@ -522,6 +523,7 @@ else SortTitle.Checked = false; ItemSearchFileName.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "ItemSearchFileName", ""); + DefaultCover.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "DefaultCover", ""); View_Dflt_Item.Items.Remove(View_Dflt_Item.Text); View_Dflt_Item.Items.Add(View_Dflt_Item.Text); View_Dflt_Item.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "ViewDfltItem", "(none)"); @@ -593,6 +595,7 @@ LayOut.ResetText(); View_Dflt_Item.ResetText(); View_Dflt_Text.ResetText(); + DefaultCover.ResetText(); Dwp.ResetText(); Rpt_Dwp.ResetText(); ItemSearchFileName.ResetText(); @@ -627,6 +630,8 @@ MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntPicture"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntStorage"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "PathStorage"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "SearchFileName"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "ItemSearchFileName"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntIdentItem"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntIdentLabel"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntTitle1"); @@ -671,6 +676,7 @@ MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "Dwp"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "SortTitle"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "DVDPTagField"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "DefaultCover"); if ((Config_Name.Text) == MyFilms_xmlreader.GetValueAsString("MyFilms", "Default_Config", "")) MyFilms_xmlwriter.RemoveEntry("MyFilms", "Default_Config"); if ((Config_Name.Text) == MyFilms_xmlreader.GetValueAsString("MyFilms", "Current_Config", "")) @@ -864,5 +870,15 @@ { Selected_Enreg_TextChanged(); } + + private void DutDefCov_Click(object sender, EventArgs e) + { + openFileDialog1.RestoreDirectory = true; + openFileDialog1.DefaultExt = "jpg"; + openFileDialog1.Filter = "JPG Files|*.jpg|PNG Files|*.png|BMP Files|*.bmp|All Files|*.*"; + openFileDialog1.Title = "Default display Cover"; + if (openFileDialog1.ShowDialog(this) == DialogResult.OK) + DefaultCover.Text = openFileDialog1.FileName; + } } } Added: trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_No_Cover.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/BlueTwo/Media/Films_No_Cover.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml 2007-11-18 11:51:50 UTC (rev 1074) +++ trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml 2007-11-18 18:46:16 UTC (rev 1075) @@ -1,455 +1,498 @@ <window> - <id>7986</id> - <defaultcontrol>6</defaultcontrol> - <allowoverlay>yes</allowoverlay> - <controls> - <import>common.time.xml</import> - <control> - <type>image</type> - <description>BG</description> - <id>1</id> - <posX>0</posX> - <posY>0</posY> - <texture>background.png</texture> - </control> - <control> - <type>image</type> - <id>24</id> - <posX>64</posX> - <posY>70</posY> - <width>67</width> - <height>40</height> - <colordiffuse>9fffffff</colordiffuse> - <texture>amclogo.png</texture> - <keepaspectratio>yes</keepaspectratio> - </control> - <control> - <type>image</type> - <id>25</id> - <posX>56</posX> - <posY>16</posY> - <texture>videos_logo.png</texture> - </control> - <control> - <type>group</type> - <description>group element</description> - <id>1</id> - <posX>60</posX> - <posY>97</posY> - <width>198</width> - <height>140</height> - <layout>StackLayout</layout> - <animation effect="slide" time="400" start="-300,0">WindowOpen</animation> - <animation effect="slide" time="400" end="0,-300" >WindowClose</animation> - <animation effect="fade" time="500">WindowClose</animation> - <animation effect="fade" time="250">WindowOpen</animation> - <mpe> - <layout>Grid</layout> - <spring>no</spring> - <spacing>0</spacing> - <padding> - <top>0</top> - <right>0</right> - <bottom>0</bottom> - <left>0</left> - </padding> - </mpe> - <control> - <type>button</type> - <description>Layout</description> - <id>6</id> - <posX>60</posX> - <posY>97</posY> - <onleft>5</onleft> - <onright>1026</onright> - <onup>5</onup> - <ondown>2</ondown> - <animation>unfocus</animation> - <label>101</label> - <textcolor>ff000000</textcolor> - </control> - <control> - <type>sortbutton</type> - <id>2</id> - <posX>60</posX> - <posY>129</posY> - <onleft>6</onleft> - <onright>1026</onright> - <onup>6</onup> - <ondown>3</ondown> - <textureAscendingFocused>arrow_round_up_focus.png</textureAscendingFocused> - <font>font13</font> - <textureFocus>menu_list_focus.png</textureFocus> - <textYOff>5</textYOff> - <animation>unfocus</animation> - <textXOff>10</textXOff> - <disabledcolor>60ffffff</disabledcolor> - <label>103</label> - <offsetSortButtonY>8</offsetSortButtonY> - <offsetSortButtonX>165</offsetSortButtonX> - <textcolor>White</textcolor> - <textureNoFocus>menu_list_nofocus.png</textureNoFocus> - <textureAscending>arrow_round_up_nofocus.png</textureAscending> - <textureDescending>arrow_round_down_nofocus.png</textureDescending> - <textureDescendingFocused>arrow_round_down_focus.png</textureDescendingFocused> - </control> - <control> - <type>button</type> - <description>Switch view</description> - <id>3</id> - <posX>60</posX> - <posY>161</posY> - <onleft>2</onleft> - <onright>1026</onright> - <onup>2</onup> - <ondown>4</ondown> - <animation>unfocus</animation> - <label>457</label> - <textcolor>ff000000</textcolor> - </control> - <control> - <type>button</type> - <description>Search by Films</description> - <id>4</id> - <posX>60</posX> - <posY>193</posY> - <onleft>3</onleft> - <onright>1026</onright> - <onup>3</onup> - <ondown>5</ondown> - <animation>unfocus</animation> - <label>137</label> - <textcolor>ff000000</textcolor> - </control> - <control> - <type>button</type> - <description>Search by Actors</description> - <id>5</id> - <posX>60</posX> - <posY>225</posY> - <onleft>4</onleft> - <onright>1026</onright> - <onup>4</onup> - <ondown>6</ondown> - <animation>unfocus</animation> - <label>137</label> - <textcolor>ff000000</textcolor> - </control> + <id>7986</id> + <defaultcontrol>6</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <controls> + <import>common.time.xml</import> + <import>MesFilms_Visible.xml</import> + <control> + <type>image</type> + <description>BG</description> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <texture>background.png</texture> + </control> + <control> + <type>image</type> + <id>1</id> + <posX>64</posX> + <posY>70</posY> + <width>67</width> + <height>40</height> + <colordiffuse>9fffffff</colordiffuse> + <texture>amclogo.png</texture> + <keepaspectratio>yes</keepaspectratio> + </control> + <control> + <type>image</type> + <id>1</id> + <posX>56</posX> + <posY>16</posY> + <texture>videos_logo.png</texture> + </control> + <control> + <type>image</type> + <id>1019</id> + <posX>50</posX> + <posY>250</posY> + <width>180</width> + <height>250</height> + <texture>hover_my films.png</texture> + <visible>!player.hasmedia+facadeview.filmstrip |!player.hasmedia+!control.hasfocus(1026)</visible> + <keepaspectratio>yes</keepaspectratio> + </control> - </control> - <control> - <type>fadelabel</type> - <id>12</id> - <posX>344</posX> - <posY>68</posY> - <width>272</width> - <height>24</height> - <label>label</label> - <font>font14</font> - <textcolor>ffa9d0f7</textcolor> - <disabledcolor>ff808080</disabledcolor> - </control> - <control> - <type>group</type> - <animation effect="slide" time="400" start="0,-300">WindowOpen</animation> - <animation effect="slide" time="400" end="800,0" >WindowClose</animation> - <animation effect="fade" time="250">WindowOpen</animation> - <animation effect="fade" time="500">WindowClose</animation> - <control> - <description>composite control consisting of a list control and a thumbnail panel</description> - <type>facadeview</type> - <id>1026</id> - <control> - <description>Thumbnail Panel</description> - <type>thumbnailpanel</type> - <scrollOffset>1</scrollOffset> - <onleft>6</onleft> - <itemWidth>72</itemWidth> - <textureWidth>58</textureWidth> - <thumbWidth>44</thumbWidth> - <thumbPosX>7</thumbPosX> - <textureWidthBig>85</textureWidthBig> - <textureHeightBig>116</textureHeightBig> - <itemWidthBig>108</itemWidthBig> - <itemHeightBig>138</itemHeightBig> - <thumbWidthBig>64</thumbWidthBig> - <thumbHeightBig>90</thumbHeightBig> - <thumbPosXBig>10</thumbPosXBig> - </control> - <control> - <type>listcontrol</type> - <description>listcontrol</description> - <posX>260</posX> - <posY>97</posY> - <width>440</width> - <height>354</height> - <onleft>6</onleft> - <font>font13</font> - </control> - <control> - <description>Filmstrip view</description> - <type>filmstrip</type> - <width>440</width> - <height>354</height> - <onleft>6</onleft> - <backgroundx>354</backgroundx> - <backgroundy>99</backgroundy> - <backgroundwidth>238</backgroundwidth> - <backgroundheight>336</backgroundheight> - <InfoImagex>366</InfoImagex> - <InfoImagey>118</InfoImagey> - <InfoImagewidth>197</InfoImagewidth> - <InfoImageheight>274</InfoImageheight> - </control> + <control> + <type>group</type> + <description>group element</description> + <posX>60</posX> + <posY>97</posY> + <width>198</width> + <height>140</height> + <layout>StackLayout</layout> + <animation effect="slide" time="400" start="-300,0">WindowOpen</animation> + <animation effect="slide" time="400" end="0,-300" >WindowClose</animation> + <animation effect="fade" time="500">WindowClose</animation> + <animation effect="fade" time="250">WindowOpen</animation> + <mpe> + <layout>Grid</layout> + <spring>no</spring> + <spacing>0</spacing> + <padding> + <top>0</top> + <right>0</right> + <bottom>0</bottom> + <left>0</left> + </padding> + </mpe> + <control> + <type>button</type> + <description>Layout</description> + <id>6</id> + <posX>60</posX> + <posY>97</posY> + <onleft>5</onleft> + <onright>1026</onright> + <onup>5</onup> + <ondown>2</ondown> + <animation>unfocus</animation> + <label>101</label> + <textcolor>ff000000</textcolor> + </control> + <control> + <type>sortbutton</type> + <id>2</id> + <posX>60</posX> + <posY>129</posY> + <onleft>6</onleft> + <onright>1026</onright> + <onup>6</onup> + <ondown>3</ondown> + <textureAscendingFocused>arrow_round_up_focus.png</textureAscendingFocused> + <font>font13</font> + <textureFocus>menu_list_focus.png</textureFocus> + <textYOff>5</textYOff> + <animation>unfocus</animation> + <textXOff>10</textXOff> + <disabledcolor>60ffffff</disabledcolor> + <label>103</label> + <offsetSortButtonY>8</offsetSortButtonY> + <offsetSortButtonX>165</offsetSortButtonX> + <textcolor>White</textcolor> + <textureNoFocus>menu_list_nofocus.png</textureNoFocus> + <textureAscending>arrow_round_up_nofocus.png</textureAscending> + <textureDescending>arrow_round_down_nofocus.png</textureDescending> + <textureDescendingFocused>arrow_round_down_focus.png</textureDescendingFocused> + </control> + <control> + <type>button</type> + <description>Switch view</description> + <id>3</id> + <posX>60</posX> + <posY>161</posY> + <onleft>2</onleft> + <onright>1026</onright> + <onup>2</onup> + <ondown>4</ondown> + <animation>unfocus</animation> + <label>457</label> + <textcolor>ff000000</textcolor> + </control> + <control> + <type>button</type> + <description>Search by Films</description> + <id>4</id> + <posX>60</posX> + <posY>193</posY> + <onleft>3</onleft> + <onright>1026</onright> + <onup>3</onup> + <ondown>5</ondown> + <animation>unfocus</animation> + <label>137</label> + <textcolor>ff000000</textcolor> + </control> + <control> + <type>button</type> + <description>Search by Actors</description> + <id>5</id> + <posX>60</posX> + <posY>225</posY> + <onleft>4</onleft> + <onright>1026</onright> + <onup>4</onup> + <ondown>6</ondown> + <animation>unfocus</animation> + <label>137</label> + <textcolor>ff000000</textcolor> + </control> - </control> - <control> - <type>textboxscrollup</type> - <description>Biography value</description> - <id>1025</id> - <posX>260</posX> - <posY>414</posY> - <width>440</width> - <height>100</height> - <colordiffuse>ffffffff</colordiffuse> - <onleft>1026</onleft> - <onright>1026</onright> - <onup>1026</onup> - <ondown>1026</ondown> - <font>font12</font> - <speed>10</speed> - <textcolor>FFFFFFFF</textcolor> - <label>-</label> - <seperator>------------------------------------------------------------------------------------------------------------------------------</seperator> - </control> - <control> - <type>fadelabel</type> - <description>Title (during Icons)</description> - <id>1027</id> - <posX>65</posX> - <posY>470</posY> - <onleft>6</onleft> - <onright>1026</onright> - <onup>1026</onup> - <ondown>1026</ondown> - <font>font12</font> - <width>175</width> - <height>24</height> - <label>-</label> - </control> - </control> - <control> - <type>image</type> - <id>1065</id> - <posX>219</posX> - <posY>370</posY> - <width>36</width> - <height>36</height> - <visible>no</visible> - <texture>star.png</texture> - <centered>yes</centered> - </control> - <control> - <type>image</type> - <id>1064</id> - <posX>222</posX> - <posY>... [truncated message content] |