From: <j_b...@us...> - 2008-07-07 19:05:46
|
Revision: 1904 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1904&view=rev Author: j_burnette Date: 2008-07-07 12:05:44 -0700 (Mon, 07 Jul 2008) Log Message: ----------- Added Paths: ----------- trunk/skins/AeonMenuGenerator/ trunk/skins/AeonMenuGenerator/aeon_editor/ trunk/skins/AeonMenuGenerator/aeon_editor/BasicHomeSkeleton.xml trunk/skins/AeonMenuGenerator/aeon_editor/Form1.Designer.cs trunk/skins/AeonMenuGenerator/aeon_editor/Form1.cs trunk/skins/AeonMenuGenerator/aeon_editor/Form1.resx trunk/skins/AeonMenuGenerator/aeon_editor/Program.cs trunk/skins/AeonMenuGenerator/aeon_editor/Properties/ trunk/skins/AeonMenuGenerator/aeon_editor/Properties/AssemblyInfo.cs trunk/skins/AeonMenuGenerator/aeon_editor/Properties/Resources.Designer.cs trunk/skins/AeonMenuGenerator/aeon_editor/Properties/Resources.resx trunk/skins/AeonMenuGenerator/aeon_editor/Properties/Settings.Designer.cs trunk/skins/AeonMenuGenerator/aeon_editor/Properties/Settings.settings trunk/skins/AeonMenuGenerator/aeon_editor/Resources/ trunk/skins/AeonMenuGenerator/aeon_editor/aeon_editor.csproj trunk/skins/AeonMenuGenerator/aeon_editor/bin/ trunk/skins/AeonMenuGenerator/aeon_editor/bin/Debug/ trunk/skins/AeonMenuGenerator/aeon_editor/bin/Debug/aeon_editor.vshost.exe trunk/skins/AeonMenuGenerator/aeon_editor/bin/Release/ trunk/skins/AeonMenuGenerator/aeon_editor/image_generator.Designer.cs trunk/skins/AeonMenuGenerator/aeon_editor/image_generator.cs trunk/skins/AeonMenuGenerator/aeon_editor/image_generator.resx trunk/skins/AeonMenuGenerator/aeon_editor/menuselector.Designer.cs trunk/skins/AeonMenuGenerator/aeon_editor/menuselector.cs trunk/skins/AeonMenuGenerator/aeon_editor/menuselector.resx trunk/skins/AeonMenuGenerator/aeon_editor/mymenu_focus_blank.png trunk/skins/AeonMenuGenerator/aeon_editor/mymenu_nofocus_blank.png trunk/skins/AeonMenuGenerator/aeon_editor/obj/ trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/ trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/Refactor/ trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/ResolveAssemblyReference.cache trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/TempPE/ trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/aeon_editor.BasicHomeSkeleton.xml trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/aeon_editor.Form1.resources trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/aeon_editor.Properties.Resources.resources trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/aeon_editor.csproj.GenerateResource.Cache trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/aeon_editor.exe trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/aeon_editor.image_generator.resources trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/aeon_editor.menuselector.resources trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/aeon_editor.mymenu_focus_blank.png trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/aeon_editor.mymenu_nofocus_blank.png trunk/skins/AeonMenuGenerator/aeon_editor/obj/Debug/aeon_editor.pdb trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/ trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/TempPE/ trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/TempPE/Properties.Resources.Designer.cs.dll trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/aeon_editor.BasicHomeSkeleton.xml trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/aeon_editor.Form1.resources trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/aeon_editor.Properties.Resources.resources trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/aeon_editor.csproj.GenerateResource.Cache trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/aeon_editor.exe trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/aeon_editor.image_generator.resources trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/aeon_editor.menuselector.resources trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/aeon_editor.mymenu_focus_blank.png trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/aeon_editor.mymenu_nofocus_blank.png trunk/skins/AeonMenuGenerator/aeon_editor/obj/Release/aeon_editor.pdb trunk/skins/AeonMenuGenerator/aeon_editor/obj/aeon_editor.csproj.FileListAbsolute.txt trunk/skins/AeonMenuGenerator/aeon_editor/preview.png trunk/skins/AeonMenuGenerator/aeon_editor.sln trunk/skins/AeonMenuGenerator/aeon_editor.suo trunk/skins/AeonMenuGenerator/mymenu_focus_blank.png trunk/skins/AeonMenuGenerator/mymenu_nofocus_blank.png Added: trunk/skins/AeonMenuGenerator/aeon_editor/BasicHomeSkeleton.xml =================================================================== --- trunk/skins/AeonMenuGenerator/aeon_editor/BasicHomeSkeleton.xml (rev 0) +++ trunk/skins/AeonMenuGenerator/aeon_editor/BasicHomeSkeleton.xml 2008-07-07 19:05:44 UTC (rev 1904) @@ -0,0 +1,154 @@ +<?xml version="1.0" encoding="utf-8" ?> +<window> + + <!-- BEGIN GENERATED ID CODE--> + + <!-- BEGIN GENERATED DEFAULTCONTROL CODE--> + + <allowoverlay>yes</allowoverlay> + <disabletopbar>yes</disabletopbar> + <controls> + <control> + <description>DEFAULT BACKGROUND</description> + <type>image</type> + <id>99006</id> + <posX>0</posX> + <posY>0</posY> + <width>1366</width> + <height>768</height> + <texture>background.png</texture> + </control> + + <!-- BEGIN GENERATED BACKGROUND CODE--> + + <control> + <description>Vignette</description> + <type>image</type> + <id>99011</id> + <posX>0</posX> + <posY>0</posY> + <width>1366</width> + <height>768</height> + <texture>vignette.png</texture> + </control> + <control> + <type>image</type> + <id>99007</id> + <posX>1010</posX> + <posY>0</posY> + <width>356</width> + <height>55</height> + <texture>time_panel.png</texture> + </control> + <!-- TOPBAR Buttons --> + <control> + <description>Back button</description> + <type>button</type> + <id>9</id> + <posX>920</posX> + <posY>60</posY> + <width>50</width> + <height>50</height> + <textureFocus>back_enabled.png</textureFocus> + <textureNoFocus>back_disabled.png</textureNoFocus> + <label>-</label> + <action>10</action> + <onleft>13</onleft> + <onright>10</onright> + <onup>9</onup> + <ondown>98701</ondown> + </control> + <control> + <description>videowallpaper button</description> + <type>button</type> + <id>10</id> + <posX>990</posX> + <posY>60</posY> + <width>50</width> + <height>50</height> + <textureFocus>button_tvdesktop_focus.png</textureFocus> + <textureNoFocus>button_tvdesktop_nofocus.png</textureNoFocus> + <label>-</label> + <action>101</action> + <onleft>9</onleft> + <onright>11</onright> + <onup>9</onup> + <ondown>98701</ondown> + </control> + <control> + <description>basichome button button</description> + <type>button</type> + <id>11</id> + <posX>1060</posX> + <posY>60</posY> + <width>50</width> + <height>50</height> + <textureFocus>Basic_focus.png</textureFocus> + <textureNoFocus>Basic_nofocus.png</textureNoFocus> + <label>-</label> + <action>115</action> + <onleft>10</onleft> + <onright>12</onright> + <onup>11</onup> + <ondown>98701</ondown> + </control> + <control> + <description>Exit button</description> + <type>button</type> + <id>12</id> + <posX>1130</posX> + <posY>60</posY> + <width>50</width> + <height>50</height> + <textureFocus>button_close_focus.png</textureFocus> + <textureNoFocus>button_close_nofocus.png</textureNoFocus> + <label>-</label> + <action>97</action> + <onleft>11</onleft> + <onright>13</onright> + <onup>12</onup> + <ondown>98701</ondown> + </control> + <control> + <description>Shutdown button</description> + <type>button</type> + <id>13</id> + <posX>1200</posX> + <posY>60</posY> + <width>50</width> + <height>50</height> + <textureFocus>button_shutdown_focus.png</textureFocus> + <textureNoFocus>button_shutdown_nofocus.png</textureNoFocus> + <label>-</label> + <action>99</action> + <onleft>12</onleft> + <onright>9</onright> + <onup>13</onup> + <ondown>98701</ondown> + </control> + <control> + <description>Menu Background</description> + <type>image</type> + <id>99003</id> + <posX>0</posX> + <posY>317</posY> + <width>1366</width> + <height>92</height> + <texture>mymenu_bg.png</texture> + </control> + <control> + <description>Menu Sub Menu</description> + <type>image</type> + <id>99004</id> + <posX>0</posX> + <posY>399</posY> + <width>1366</width> + <height>56</height> + <texture>mymenu_submenu.png</texture> + </control> + + <!-- BEGIN GENERATED BUTTON CODE--> + + <import>common.time.xml</import> + </controls> +</window> \ No newline at end of file Added: trunk/skins/AeonMenuGenerator/aeon_editor/Form1.Designer.cs =================================================================== --- trunk/skins/AeonMenuGenerator/aeon_editor/Form1.Designer.cs (rev 0) +++ trunk/skins/AeonMenuGenerator/aeon_editor/Form1.Designer.cs 2008-07-07 19:05:44 UTC (rev 1904) @@ -0,0 +1,432 @@ +namespace aeon_editor +{ + partial class Form1 + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.button1 = new System.Windows.Forms.Button(); + this.listBox1 = new System.Windows.Forms.ListBox(); + this.focusBox = new System.Windows.Forms.TextBox(); + this.nofocusBox = new System.Windows.Forms.TextBox(); + this.statusStrip1 = new System.Windows.Forms.StatusStrip(); + this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); + this.label1 = new System.Windows.Forms.Label(); + this.bgBox = new System.Windows.Forms.TextBox(); + this.button4 = new System.Windows.Forms.Button(); + this.checkedListBox1 = new System.Windows.Forms.CheckedListBox(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.openAeonFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.generateImagesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); + this.label6 = new System.Windows.Forms.Label(); + this.timeBox = new System.Windows.Forms.TextBox(); + this.label7 = new System.Windows.Forms.Label(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.randomChk = new System.Windows.Forms.CheckBox(); + this.statusStrip1.SuspendLayout(); + this.contextMenuStrip1.SuspendLayout(); + this.menuStrip1.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Enabled = false; + this.button1.Location = new System.Drawing.Point(364, 247); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(68, 26); + this.button1.TabIndex = 9; + this.button1.Text = "Add"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // listBox1 + // + this.listBox1.Enabled = false; + this.listBox1.FormattingEnabled = true; + this.listBox1.Location = new System.Drawing.Point(18, 47); + this.listBox1.Name = "listBox1"; + this.listBox1.Size = new System.Drawing.Size(198, 290); + this.listBox1.TabIndex = 1; + this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged); + // + // focusBox + // + this.focusBox.Enabled = false; + this.focusBox.Location = new System.Drawing.Point(101, 21); + this.focusBox.Name = "focusBox"; + this.focusBox.Size = new System.Drawing.Size(148, 20); + this.focusBox.TabIndex = 2; + // + // nofocusBox + // + this.nofocusBox.Enabled = false; + this.nofocusBox.Location = new System.Drawing.Point(101, 60); + this.nofocusBox.Name = "nofocusBox"; + this.nofocusBox.Size = new System.Drawing.Size(148, 20); + this.nofocusBox.TabIndex = 4; + // + // statusStrip1 + // + this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripStatusLabel1}); + this.statusStrip1.Location = new System.Drawing.Point(0, 385); + this.statusStrip1.Name = "statusStrip1"; + this.statusStrip1.Size = new System.Drawing.Size(810, 22); + this.statusStrip1.TabIndex = 6; + this.statusStrip1.Text = "statusStrip1"; + // + // toolStripStatusLabel1 + // + this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; + this.toolStripStatusLabel1.Size = new System.Drawing.Size(39, 17); + this.toolStripStatusLabel1.Text = "Ready"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(24, 24); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(71, 13); + this.label2.TabIndex = 7; + this.label2.Text = "Focus Image:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(7, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(88, 13); + this.label3.TabIndex = 8; + this.label3.Text = "No-Focus Image:"; + // + // button2 + // + this.button2.Enabled = false; + this.button2.Location = new System.Drawing.Point(255, 19); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(63, 23); + this.button2.TabIndex = 3; + this.button2.Text = "Open"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // button3 + // + this.button3.Enabled = false; + this.button3.Location = new System.Drawing.Point(255, 58); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(63, 23); + this.button3.TabIndex = 5; + this.button3.Text = "Open"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); + // + // openFileDialog1 + // + this.openFileDialog1.Filter = "PNG Images|*.png"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(52, 25); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(39, 13); + this.label1.TabIndex = 12; + this.label1.Text = "Folder:"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // bgBox + // + this.bgBox.Enabled = false; + this.bgBox.Location = new System.Drawing.Point(97, 22); + this.bgBox.Name = "bgBox"; + this.bgBox.Size = new System.Drawing.Size(148, 20); + this.bgBox.TabIndex = 6; + this.bgBox.MouseEnter += new System.EventHandler(this.bgBox_MouseEnter); + // + // button4 + // + this.button4.Enabled = false; + this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button4.Location = new System.Drawing.Point(326, 286); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(141, 60); + this.button4.TabIndex = 16; + this.button4.Text = "Generate"; + this.button4.UseVisualStyleBackColor = true; + this.button4.Click += new System.EventHandler(this.button4_Click); + // + // checkedListBox1 + // + this.checkedListBox1.ContextMenuStrip = this.contextMenuStrip1; + this.checkedListBox1.Enabled = false; + this.checkedListBox1.FormattingEnabled = true; + this.checkedListBox1.Location = new System.Drawing.Point(564, 92); + this.checkedListBox1.Name = "checkedListBox1"; + this.checkedListBox1.Size = new System.Drawing.Size(226, 199); + this.checkedListBox1.TabIndex = 15; + this.checkedListBox1.MouseEnter += new System.EventHandler(this.checkedListBox1_MouseEnter); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.removeToolStripMenuItem}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(118, 26); + // + // removeToolStripMenuItem + // + this.removeToolStripMenuItem.Name = "removeToolStripMenuItem"; + this.removeToolStripMenuItem.Size = new System.Drawing.Size(117, 22); + this.removeToolStripMenuItem.Text = "Remove"; + this.removeToolStripMenuItem.Click += new System.EventHandler(this.removeToolStripMenuItem_Click); + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(66, 31); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(97, 13); + this.label4.TabIndex = 16; + this.label4.Text = "Available Windows"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(631, 76); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(92, 13); + this.label5.TabIndex = 17; + this.label5.Text = "Windows in Menu"; + // + // menuStrip1 + // + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileToolStripMenuItem}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(810, 24); + this.menuStrip1.TabIndex = 18; + this.menuStrip1.Text = "menuStrip1"; + // + // fileToolStripMenuItem + // + this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.openAeonFolderToolStripMenuItem, + this.generateImagesToolStripMenuItem, + this.exitToolStripMenuItem}); + this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; + this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); + this.fileToolStripMenuItem.Text = "File"; + // + // openAeonFolderToolStripMenuItem + // + this.openAeonFolderToolStripMenuItem.Name = "openAeonFolderToolStripMenuItem"; + this.openAeonFolderToolStripMenuItem.Size = new System.Drawing.Size(170, 22); + this.openAeonFolderToolStripMenuItem.Text = "Open Aeon Folder"; + this.openAeonFolderToolStripMenuItem.Click += new System.EventHandler(this.openAeonFolderToolStripMenuItem_Click); + // + // generateImagesToolStripMenuItem + // + this.generateImagesToolStripMenuItem.Name = "generateImagesToolStripMenuItem"; + this.generateImagesToolStripMenuItem.Size = new System.Drawing.Size(170, 22); + this.generateImagesToolStripMenuItem.Text = "Generate Images"; + this.generateImagesToolStripMenuItem.Click += new System.EventHandler(this.generateImagesToolStripMenuItem_Click); + // + // exitToolStripMenuItem + // + this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; + this.exitToolStripMenuItem.Size = new System.Drawing.Size(170, 22); + this.exitToolStripMenuItem.Text = "Exit"; + this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(7, 62); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(84, 13); + this.label6.TabIndex = 19; + this.label6.Text = "Time Per Image:"; + // + // timeBox + // + this.timeBox.Enabled = false; + this.timeBox.Location = new System.Drawing.Point(97, 59); + this.timeBox.Name = "timeBox"; + this.timeBox.Size = new System.Drawing.Size(68, 20); + this.timeBox.TabIndex = 7; + this.timeBox.Text = "30"; + this.timeBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(168, 62); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(49, 13); + this.label7.TabIndex = 21; + this.label7.Text = "Seconds"; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.label3); + this.groupBox1.Controls.Add(this.button3); + this.groupBox1.Controls.Add(this.button2); + this.groupBox1.Controls.Add(this.label2); + this.groupBox1.Controls.Add(this.nofocusBox); + this.groupBox1.Controls.Add(this.focusBox); + this.groupBox1.Location = new System.Drawing.Point(227, 31); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(328, 93); + this.groupBox1.TabIndex = 22; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Buttons"; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.randomChk); + this.groupBox2.Controls.Add(this.label7); + this.groupBox2.Controls.Add(this.timeBox); + this.groupBox2.Controls.Add(this.label6); + this.groupBox2.Controls.Add(this.bgBox); + this.groupBox2.Controls.Add(this.label1); + this.groupBox2.Location = new System.Drawing.Point(231, 134); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(323, 98); + this.groupBox2.TabIndex = 23; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "Background Images"; + // + // randomChk + // + this.randomChk.AutoSize = true; + this.randomChk.Checked = true; + this.randomChk.CheckState = System.Windows.Forms.CheckState.Checked; + this.randomChk.Enabled = false; + this.randomChk.Location = new System.Drawing.Point(248, 62); + this.randomChk.Name = "randomChk"; + this.randomChk.Size = new System.Drawing.Size(66, 17); + this.randomChk.TabIndex = 8; + this.randomChk.Text = "Random"; + this.randomChk.UseVisualStyleBackColor = true; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(810, 407); + this.Controls.Add(this.groupBox2); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.label4); + this.Controls.Add(this.button1); + this.Controls.Add(this.label5); + this.Controls.Add(this.checkedListBox1); + this.Controls.Add(this.button4); + this.Controls.Add(this.statusStrip1); + this.Controls.Add(this.menuStrip1); + this.Controls.Add(this.listBox1); + this.MainMenuStrip = this.menuStrip1; + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(826, 443); + this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(826, 443); + this.Name = "Form1"; + this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; + this.Text = "Aeon Menu Generator - jburnette"; + this.Load += new System.EventHandler(this.Form1_Load); + this.statusStrip1.ResumeLayout(false); + this.statusStrip1.PerformLayout(); + this.contextMenuStrip1.ResumeLayout(false); + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + + + + + + + #endregion + + private System.Windows.Forms.Button button1; + private System.Windows.Forms.ListBox listBox1; + private System.Windows.Forms.TextBox focusBox; + private System.Windows.Forms.TextBox nofocusBox; + private System.Windows.Forms.StatusStrip statusStrip1; + private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.OpenFileDialog openFileDialog1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox bgBox; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.CheckedListBox checkedListBox1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.MenuStrip menuStrip1; + private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem openAeonFolderToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem generateImagesToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem; + private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.TextBox timeBox; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.CheckBox randomChk; + } +} + Added: trunk/skins/AeonMenuGenerator/aeon_editor/Form1.cs =================================================================== --- trunk/skins/AeonMenuGenerator/aeon_editor/Form1.cs (rev 0) +++ trunk/skins/AeonMenuGenerator/aeon_editor/Form1.cs 2008-07-07 19:05:44 UTC (rev 1904) @@ -0,0 +1,792 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; +using System.Xml; +using System.IO; +using System.Reflection; + +namespace aeon_editor +{ + + public partial class Form1 : Form + { + List<string> ids = new List<string>(); + List<menuItem> menuItems = new List<menuItem>(); + List<backgroundItem> bgItems = new List<backgroundItem>(); + string path; + string xml; + + public Form1() + { + InitializeComponent(); + } + + private void Form1_Load(object sender, EventArgs e) + { + + } + + private void button1_Click(object sender, EventArgs e) + { + + if (listBox1.SelectedItem != null && focusBox.Text != "" && nofocusBox.Text != "" && bgBox.Text != "") + { + + + toolStripStatusLabel1.Text = listBox1.SelectedItem.ToString() + " added to menu"; + menuItem item = new menuItem(); + item.focusImg = focusBox.Text; + item.nofocusImg = nofocusBox.Text; + item.hyperlink = ids[listBox1.SelectedIndex]; + item.bgFolder = bgBox.Text; + item.name = listBox1.SelectedItem.ToString(); + item.random = randomChk.Checked; + item.timePerImage = int.Parse(timeBox.Text); + menuItems.Add(item); + checkedListBox1.Items.Add(item.name); + + focusBox.Text = ""; + nofocusBox.Text = ""; + bgBox.Text = ""; + if (checkedListBox1.Items.Count > 2) + button4.Enabled = true; + } + else + { + MessageBox.Show("All fields must be complete."); + } + + } + + private bool loadIDs() + { + listBox1.Enabled = true; + string[] files = System.IO.Directory.GetFiles(path); + foreach (string file in files) + { + try + { + if (file.StartsWith("common") == false && file.Contains("Dialog") == false && file.Contains("dialog") == false && file.Contains("wizard") == false) + { + XmlDocument doc = new XmlDocument(); + doc.Load(file); + XmlNode node = doc.DocumentElement.SelectSingleNode("/window/id"); + + ids.Add(node.InnerText); + listBox1.Items.Add(file.Remove(0, file.LastIndexOf(@"\") + 1).Replace(".xml", "")); + + + } + } + + catch {} + + } + //return true; + if (listBox1.Items.Count > 0) + return true; + else + { + MessageBox.Show("Error reading directory."); + return false; + } + } + + //private void loadSkin() + //{ + // XmlDocument doc = new XmlDocument(); + // doc.Load(@"C:\Program Files\Team MediaPortal\MediaPortal\Skin\Aeon Wide\BasicHome.xml"); + // XmlNodeList nodeList = doc.DocumentElement.SelectNodes("/window/controls/control"); + + // foreach (XmlNode node in nodeList) + // { + // listBox1.Items.Add(node.ChildNodes[node.InnerXml.IndexOf("type")].InnerText); + + // } + //} + + + + private void listBox1_SelectedIndexChanged(object sender, EventArgs e) + { + toolStripStatusLabel1.Text = "Window ID: "+ids[listBox1.SelectedIndex]; + + } + + private void button2_Click(object sender, EventArgs e) + { + openFileDialog1.InitialDirectory = path + @"\Media"; + openFileDialog1.ShowDialog(); + focusBox.Text = openFileDialog1.FileName.Remove(0,openFileDialog1.FileName.LastIndexOf(@"\") + 1); + + } + + private void button3_Click(object sender, EventArgs e) + { + openFileDialog1.InitialDirectory = path + @"\Media"; + openFileDialog1.ShowDialog(); + nofocusBox.Text = openFileDialog1.FileName.Remove(0,openFileDialog1.FileName.LastIndexOf(@"\") + 1); ; + + } + + private void generateXML() + { + bgItems.Clear(); + Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("aeon_editor.BasicHomeSkeleton.xml"); + StreamReader reader = new StreamReader(stream); + xml = reader.ReadToEnd(); + const string quote = "\""; + + foreach (menuItem item in menuItems) + { + item.id = 1000 + menuItems.IndexOf(item); + if (item.name == checkedListBox1.CheckedItems[0].ToString()) + item.isDefault = true; + } + + StringBuilder rawXML = new StringBuilder(); + int onleft = 0; + int onright = 0; + foreach (menuItem menItem in menuItems) + { + bool newBG = true; + foreach (backgroundItem bgitem in bgItems) + { + if (bgitem.folder == menItem.bgFolder) + { + bgitem.ids.Add(menItem.id.ToString()); + bgitem.name = bgitem.name + " " + menItem.name; + newBG = false; + } + + } + if (newBG == true) + { + backgroundItem newbgItem = new backgroundItem(); + newbgItem.folder = menItem.bgFolder; + newbgItem.ids.Add(menItem.id.ToString()); + newbgItem.name = menItem.name; + newbgItem.random = menItem.random; + newbgItem.timeperimage = menItem.timePerImage.ToString(); + bgItems.Add(newbgItem); + + } + if (menItem.isDefault == true) + xml = xml.Replace("<!-- BEGIN GENERATED DEFAULTCONTROL CODE-->", "<defaultcontrol>" + menItem.id.ToString() + "</defaultcontrol>"); + + for (int i = 0; i < 14; i++) + { + switch (i) + { + case 0: + + rawXML.AppendLine("<control>"); + rawXML.AppendLine("<description>" + menItem.name + i.ToString() + "</description>"); + rawXML.AppendLine("<type>button</type>"); + rawXML.AppendLine("<id>" + menItem.id.ToString() + "</id>"); + rawXML.AppendLine("<posX>0</posX>"); + rawXML.AppendLine("<posY>0</posY>"); + rawXML.AppendLine("<width>320</width>"); + rawXML.AppendLine("<height>72</height>"); + rawXML.AppendLine("<textureFocus>-</textureFocus>"); + rawXML.AppendLine("<textureNoFocus>-</textureNoFocus>"); + rawXML.AppendLine("<hyperlink>" + menItem.hyperlink.ToString() + "</hyperlink>"); + rawXML.AppendLine("<hover>-</hover>"); + + if (menuItems.IndexOf(menItem) == 0) + onleft = menuItems[menuItems.Count - 1].id; + else + onleft = (menItem.id - 1); + if (menuItems.IndexOf(menItem) == menuItems.Count - 1) + onright = menuItems[0].id; + else + onright = (menItem.id + 1); + rawXML.AppendLine("<onleft>" + (onleft+100).ToString() + "</onleft>"); + rawXML.AppendLine("<onright>" + onright + "</onright>"); + rawXML.AppendLine("<onup>9</onup>"); + rawXML.AppendLine("<ondown>66</ondown>"); + rawXML.AppendLine("<visible>Control.IsVisible(" + menItem.id.ToString() + ")</visible>"); + rawXML.AppendLine("</control>"); + break; + + case 1: + rawXML.AppendLine("<control>"); + rawXML.AppendLine("<description>" + menItem.name + i.ToString() + "</description>"); + rawXML.AppendLine("<type>button</type>"); + rawXML.AppendLine("<id>" + (menItem.id + 100).ToString() + "</id>"); + rawXML.AppendLine("<posX>0</posX>"); + rawXML.AppendLine("<posY>0</posY>"); + rawXML.AppendLine("<width>320</width>"); + rawXML.AppendLine("<height>72</height>"); + rawXML.AppendLine("<textureFocus>-</textureFocus>"); + rawXML.AppendLine("<textureNoFocus>-</textureNoFocus>"); + rawXML.AppendLine("<hyperlink>" + menItem.hyperlink.ToString() + "</hyperlink>"); + rawXML.AppendLine("<hover>-</hover>"); + + if (menuItems.IndexOf(menItem) == 0) + onleft = menuItems[menuItems.Count - 1].id; + else + onleft = (menItem.id - 1); + if (menuItems.IndexOf(menItem) == menuItems.Count - 1) + onright = menuItems[0].id; + else + onright = (menItem.id + 1); + rawXML.AppendLine("<onleft>" + (onleft + 100).ToString() + "</onleft>"); + rawXML.AppendLine("<onright>" + onright + "</onright>"); + rawXML.AppendLine("<onup>9</onup>"); + rawXML.AppendLine("<ondown>66</ondown>"); + rawXML.AppendLine("<visible>Control.IsVisible(" + (menItem.id + 100).ToString() + ")</visible>"); + rawXML.AppendLine("</control>"); + break; + + case 2: + rawXML.AppendLine("<control>"); + rawXML.AppendLine("<description>" + menItem.name + i.ToString() + "</description>"); + rawXML.AppendLine("<type>button</type>"); + rawXML.AppendLine("<id>" + menItem.id + "</id>"); + rawXML.AppendLine("<posX>-160</posX>"); + rawXML.AppendLine("<posY>327</posY>"); + rawXML.AppendLine("<width>320</width>"); + rawXML.AppendLine("<height>72</height>"); + rawXML.AppendLine("<textureFocus>" + menItem.nofocusImg + "</textureFocus>"); + rawXML.AppendLine("<textureNoFocus>" + menItem.nofocusImg + "</textureNoFocus>"); + rawXML.AppendLine("<hyperlink>" + menItem.hyperlink + "</hyperlink>"); + rawXML.AppendLine("<hover>-</hover>"); + if (menuItems.IndexOf(menItem) == 0) + onleft = menuItems[menuItems.Count - 1].id; + else + onleft = (menItem.id - 1); + if (menuItems.IndexOf(menItem) == menuItems.Count - 1) + onright = menuItems[0].id; + else + onright = (menItem.id + 1); + rawXML.AppendLine("<onleft>" + (onleft + 100).ToString() + "</onleft>"); + rawXML.AppendLine("<onright>" + onright + "</onright>"); + rawXML.AppendLine("<onup>9</onup>"); + rawXML.AppendLine("<ondown>66</ondown>"); + if (menuItems.IndexOf(menItem) + 3 == menuItems.Count + 1) + rawXML.AppendLine("<visible>Control.HasFocus(" + menuItems[0].id.ToString() + ")</visible>"); + else if (menuItems.IndexOf(menItem) + 3 == menuItems.Count + 2) + rawXML.AppendLine("<visible>Control.HasFocus(" + menuItems[1].id.ToString() + ")</visible>"); + else if (menuItems.IndexOf(menItem) + 3 == menuItems.Count + 3) + rawXML.AppendLine("<visible>Control.HasFocus(" + menuItems[2].id.ToString() + ")</visible>"); + else + rawXML.AppendLine("<visible>Control.HasFocus(" + (menItem.id+1).ToString() + ")</visible>"); + rawXML.AppendLine("<animation effect=" + quote + "slide" + quote + " end=" + quote + "-320,0" + quote + " time=" + quote + "400" + quote + " acceleration=" + quote + "-0.4" + quote + " reversible=" + quote + "false" + quote + ">visiblechange</animation>"); + rawXML.AppendLine("</control>"); + break; + case 3: + rawXML.AppendLine("<control>"); + rawXML.AppendLine("<description>" + menItem.name + i.ToString() + "</description>"); + rawXML.AppendLine("<type>button</type>"); + rawXML.AppendLine("<id>" + menItem.id + "</id>"); + rawXML.AppendLine("<posX>1120</posX>"); + rawXML.AppendLine("<posY>327</posY>"); + rawXML.AppendLine("<width>320</width>"); + rawXML.AppendLine("<height>72</height>"); + rawXML.AppendLine("<textureFocus>" + menItem.nofocusImg + "</textureFocus>"); + rawXML.AppendLine("<textureNoFocus>" + menItem.nofocusImg + "</textureNoFocus>"); + rawXML.AppendLine("<hyperlink>" + menItem.hyperlink + "</hyperlink>"); + rawXML.AppendLine("<hover>-</hover>"); + if (menuItems.IndexOf(menItem) == 0) + onleft = menuItems[menuItems.Count - 1].id; + else + onleft = (menItem.id - 1); + if (menuItems.IndexOf(menItem) == menuItems.Count - 1) + onright = menuItems[0].id; + else + onright = (menItem.id + 1); + rawXML.AppendLine("<onleft>" + (onleft + 100).ToString() + "</onleft>"); + rawXML.AppendLine("<onright>" + onright + "</onright>"); + rawXML.AppendLine("<onup>9</onup>"); + rawXML.AppendLine("<ondown>66</ondown>"); + if (menuItems.IndexOf(menItem) - 2 == -2) + rawXML.AppendLine("<visible>Control.HasFocus(" + menuItems[menuItems.Count - 2].id.ToString() + ")</visible>"); + else if (menuItems.IndexOf(menItem) - 2 == -1) + rawXML.AppendLine("<visible>Control.HasFocus(" + menuItems[menuItems.Count - 1].id.ToString() + ")</visible>"); + else + rawXML.AppendLine("<visible>Control.HasFocus(" + (menItem.id - 2).ToString() + ")</visible>"); + rawXML.AppendLine("<animation effect=" + quote + "slide" + quote + " start=" + quote + "320,0" + quote + " time=" + quote + "400" + quote + " acceleration=" + quote + "-0.4" + quote + " reversible=" + quote + "false" + quote + ">visiblechange</animation>"); + rawXML.AppendLine("</control>"); + break; + case 4: + rawXML.AppendLine("<control>"); + rawXML.AppendLine("<description>" + menItem.name + i.ToString() + "</description>"); + rawXML.AppendLine("<type>button</type>"); + rawXML.AppendLine("<id>" + menItem.id + "</id>"); + rawXML.AppendLine("<posX>800</posX>"); + rawXML.AppendLine("<posY>327</posY>"); + rawXML.AppendLine("<width>320</width>"); + rawXML.AppendLine("<height>72</height>"); + rawXML.AppendLine("<textureFocus>" + menItem.nofocusImg + "</textureFocus>"); + rawXML.AppendLine("<textureNoFocus>" + menItem.nofocusImg + "</textureNoFocus>"); + rawXML.AppendLine("<hyperlink>" + menItem.hyperlink + "</hyperlink>"); + rawXML.AppendLine("<hover>-</hover>"); + if (menuItems.IndexOf(menItem) == 0) + onleft = menuItems[menuItems.Count - 1].id; + else + onleft = (menItem.id - 1); + if (menuItems.IndexOf(menItem) == menuItems.Count - 1) + onright = menuItems[0].id; + else + onright = (menItem.id + 1); + rawXML.AppendLine("<onleft>" + (onleft + 100).ToString() + "</onleft>"); + rawXML.AppendLine("<onright>" + onright + "</onright>"); + rawXML.AppendLine("<onup>9</onup>"); + rawXML.AppendLine("<ondown>66</ondown>"); + if (menuItems.IndexOf(menItem) - 1 == -1) + rawXML.AppendLine("<visible>Control.HasFocus(" + menuItems[menuItems.Count - 1].id.ToString() + ")</visible>"); + else + rawXML.AppendLine("<visible>Control.HasFocus(" + (menItem.id - 1).ToString() + ")</visible>"); + rawXML.AppendLine("<animation effect=" + quote + "slide" + quote + " start=" + quote + "320,0" + quote + " time=" + quote + "400" + quote + " acceleration=" + quote + "-0.4" + quote + " reversible=" + quote + "false" + quote + ">visiblechange</animation>"); + rawXML.AppendLine("</control>"); + break; + case 5: + rawXML.AppendLine("<control>"); + rawXML.AppendLine("<description>" + menItem.name + i.ToString() + "</description>"); + rawXML.AppendLine("<type>button</type>"); + rawXML.AppendLine("<id>" + menItem.id + "</id>"); + rawXML.AppendLine("<posX>480</posX>"); + rawXML.AppendLine("<posY>327</posY>"); + rawXML.AppendLine("<width>320</width>"); + rawXML.AppendLine("<height>72</height>"); + rawXML.AppendLine("<textureFocus>" + menItem.focusImg + "</textureFocus>"); + rawXML.AppendLine("<textureNoFocus>" + menItem.focusImg + "</textureNoFocus>"); + rawXML.AppendLine("<hyperlink>" + menItem.hyperlink + "</hyperlink>"); + rawXML.AppendLine("<hover>-</hover>"); + if (menuItems.IndexOf(menItem) == 0) + onleft = menuItems[menuItems.Count - 1].id; + else + onleft = (menItem.id - 1); + if (menuItems.IndexOf(menItem) == menuItems.Count - 1) + onright = menuItems[0].id; + else + onright = (menItem.id + 1); + rawXML.AppendLine("<onleft>" + (onleft + 100).ToString() + "</onleft>"); + rawXML.AppendLine("<onright>" + onright + "</onright>"); + rawXML.AppendLine("<onup>9</onup>"); + rawXML.AppendLine("<ondown>66</ondown>"); + rawXML.AppendLine("<visible>Control.HasFocus(" + menItem.id.ToString() + ")</visible>"); + + rawXML.AppendLine("<animation effect=" + quote + "slide" + quote + " start=" + quote + "320,0" + quote + " time=" + quote + "400" + quote + " acceleration=" + quote + "-0.4" + quote + " reversible=" + quote + "false" + quote + ">visiblechange</animation>"); + rawXML.AppendLine("</control>"); + break; + case 6: + rawXML.AppendLine("<control>"); + rawXML.AppendLine("<description>" + menItem.name + i.ToString() + "</description>"); + rawXML.AppendLine("<type>button</type>"); + rawXML.AppendLine("<id>" + menItem.id + "</id>"); + rawXML.AppendLine("<posX>160</posX>"); + rawXML.AppendLine("<posY>327</posY>"); + rawXML.AppendLine("<width>320</width>"); + rawXML.AppendLine("<height>72</height>"); + rawXML.AppendLine("<textureFocus>" + menItem.nofocusImg + "</textureFocus>"); + rawXML.AppendLine("<textureNoFocus>" + menItem.nofocusImg + "</textureNoFocus>"); + rawXML.AppendLine("<hyperlink>" + menItem.hyperlink + "</hyperlink>"); + rawXML.AppendLine("<hover>-</hover>"); + if (menuItems.IndexOf(menItem) == 0) + onleft = menuItems[menuItems.Count - 1].id; + else + onleft = (menItem.id - 1); + if (menuItems.IndexOf(menItem) == menuItems.Count - 1) + onright = menuItems[0].id; + else + onright = (menItem.id + 1); + rawXML.AppendLine("<onleft>" + (onleft + 100).ToString() + "</onleft>"); + rawXML.AppendLine("<onright>" + onright + "</onright>"); + rawXML.AppendLine("<onup>9</onup>"); + rawXML.AppendLine("<ondown>66</ondown>"); + if (menuItems.IndexOf(menItem) + 1 == menuItems.Count) + rawXML.AppendLine("<visible>Control.HasFocus(" + menuItems[0].id.ToString() + ")</visible>"); + else + rawXML.AppendLine("<visible>Control.HasFocus(" + (menItem.id + 1).ToString() + ")</visible>"); + rawXML.AppendLine("<animation effect=" + quote + "slide" + quote + " start=" + quote + "320,0" + quote + " time=" + quote + "400" + quote + " acceleration=" + quote + "-0.4" + quote + " reversible=" + quote + "false" + quote + ">visiblechange</animation>"); + rawXML.AppendLine("</control>"); + break; + case 7: + rawXML.AppendLine("<control>"); + rawXML.AppendLine("<description>" + menItem.name + i.ToString() + "</description>"); + rawXML.AppendLine("<type>button</type>"); + rawXML.AppendLine("<id>" + menItem.id + "</id>"); + rawXML.AppendLine("<posX>0</posX>"); + rawXML.AppendLine("<posY>327</posY>"); + rawXML.AppendLine("<width>320</width>"); + rawXML.AppendLine("<height>72</height>"); + rawXML.AppendLine("<textureFocus>" + menItem.nofocusImg + "</textureFocus>"); + rawXML.AppendLine("<textureNoFocus>" + menItem.nofocusImg + "</textureNoFocus>"); + rawXML.AppendLine("<hyperlink>" + menItem.hyperlink + "</hyperlink>"); + rawXML.AppendLine("<hover>-</hover>"); + if (menuItems.IndexOf(menItem) == 0) + onleft = menuItems[menuItems.Count - 1].id; + else + onleft = (menItem.id - 1); + if (menuItems.IndexOf(menItem) == menuItems.Count - 1) + onright = menuItems[0].id; + else + onright = (menItem.id + 1); + rawXML.AppendLine("<onleft>" + (onleft + 100).ToString() + "</onleft>"); + rawXML.AppendLine("<onright>" + onright + "</onright>"); + rawXML.AppendLine("<onup>9</onup>"); + rawXML.AppendLine("<ondown>66</ondown>"); + if (menuItems.IndexOf(menItem) + 2 == menuItems.Count + 1) + rawXML.AppendLine("<visible>Control.HasFocus(" + menuItems[1].id.ToString() + ")</visible>"); + else if (menuItems.IndexOf(menItem) + 2 == menuItems.Count) + rawXML.AppendLine("<visible>Control.HasFocus(" + menuItems[0].id.ToString() + ")</visible>"); + else + rawXML.AppendLine("<visible>Control.HasFocus(" + (menItem.id + 2).ToString() + ")</visible>"); + rawXML.AppendLine("<animation effect=" + quote + "slide" + quote + " start="+quote+"160,0"+quote+" end="+quote+"-160,0" + quote + " time=" + quote + "400" + quote + " acceleration=" + quote + "-0.4" + quote + " reversible=" + quote + "false" + quote + ">visiblechange</animation>"); + rawXML.AppendLine("</control>"); + break; + case 8: + rawXML.AppendLine("<control>"); + rawXML.AppendLine("<description>" + menItem.name + i.ToString() + "</description>"); + rawXML.AppendLine("<type>button</type>"); + rawXML.AppendLine("<id>" + (menItem.id + 100).ToString() + "</id>"); + rawXML.AppendLine("<posX>1120</posX>"); + rawXML.AppendLine("<posY>327</posY>"); + rawXML.AppendLine("<width>320</width>"); + rawXML.AppendLine("<height>72</height>"); + rawXML.AppendLine("<textureFocus>" + menItem.nofocusImg + "</textureFocus>"); + rawXML.AppendLine("<textureNoFocus>" + menItem.nofocusImg + "</textureNoFocus>"); + rawXML.AppendLine("<hyperlink>" + menItem.hyperlink + "</hyperlink>"); + rawXML.AppendLine("<hover>-</hover>"); + if (menuItems.IndexOf(menItem) == 0) + onleft = menuItems[menuItems.Count - 1].id; + else + onleft = (menItem.id - 1); + if (menuItems.IndexOf(menItem) == menuItems.Count - 1) + onright = menuItems[0].id; + else + onright = (menItem.id + 1); + rawXML.AppendLine("<onleft>" + (onleft + 100).ToString() + "</onleft>"); + rawXML.AppendLine("<onright>" + onright + "</onright>"); + rawXML.AppendLine("<onup>9</onup>"); + rawXML.AppendLine("<ondown>66</ondown>"); + if (menuItems.IndexOf(menItem) - 3 == -3) + rawXML.AppendLine("<visible>Control.HasFocus(" + (menuItems[menuItems.Count - 3].id + 100).ToString() + ")</visible>"); + else if (menuItems.IndexOf(menItem) - 3 == -2) + rawXML.AppendLine("<visible>Control.HasFocus(" + (menuItems[menuItems.Count - 2].id + 100).ToString() + ")</visible>"); + else if (menuItems.IndexOf(menItem) - 3 == -1) + rawXML.AppendLine("<visible>Control.HasFocus(" + (menuItems[menuItems.Count - 1].id + 100).ToString() + ")</visible>"); + else + rawXML.AppendLine("<visible>Control.HasFocus(" + ((menItem.id + 100) - 3).ToString() + ")</visible>"); + rawXML.AppendLine("<animation effect=" + quote + "slide" + quote + " end=" + quote + "320,0" + quote + " time=" + quote + "400" + quote + " acceleration=" + quote + "-0.4" + quote + " reversible=" + quote + "false" + quote + ">visiblechange</animation>"); + rawXML.AppendLine("</control>"); + break; + case 9: + rawXML.AppendLine("<control>"); + rawXML.AppendLine("<description>" + menItem.name + i.ToString() + "</description>"); + rawXML.AppendLine("<... [truncated message content] |