|
From: <chr...@us...> - 2007-05-25 17:29:54
|
Revision: 443
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=443&view=rev
Author: chreekar
Date: 2007-05-25 10:29:51 -0700 (Fri, 25 May 2007)
Log Message:
-----------
The header label is now changed to match the string "shown name" set up in Configuration
Modified Paths:
--------------
trunk/plugins/MyEmulators/myEmulators/Class1.cs
trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs
trunk/plugins/MyEmulators/myEmulators/setupForm.cs
trunk/plugins/MyEmulators/myEmulators/setupForm.resx
trunk/plugins/MyEmulators/output.rar
trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml
trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml
Modified: trunk/plugins/MyEmulators/myEmulators/Class1.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/myEmulators/Class1.cs 2007-05-25 17:29:51 UTC (rev 443)
@@ -20,6 +20,9 @@
private int previouslySelectedIndex;
//Translation strings
private String[] translation = { "View: List", "View: Large Icons", "View: Icons", "Most played", "Recently played", "Top graded", "Select grade for this game", "Set grade to", "No grade" };
+ //The header label
+ [SkinControlAttribute(9)] protected GUILabelControl headerText = null;
+
//The emulator/rom list control
[SkinControlAttribute(50)] protected GUIFacadeControl lstEmulators = null;
//The buttons in the menu to the left
@@ -162,6 +165,7 @@
stars[5] = starimage6; stars[6] = starimage7; stars[7] = starimage8; stars[8] = starimage9; stars[9] = starimage10;
displayStars(0);
+ headerText.Label = Options.getStringOption("shown_name");
text_description.Label = String.Empty;
button_mostPlayed.Label = translation[3];
button_recentlyPlayed.Label = translation[4];
Modified: trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/myEmulators/setupForm.Designer.cs 2007-05-25 17:29:51 UTC (rev 443)
@@ -48,6 +48,8 @@
this.Dateplayed = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ROM_DB_List_Description = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tabPage3 = new System.Windows.Forms.TabPage();
+ this.comboBox1 = new System.Windows.Forms.ComboBox();
+ this.label3 = new System.Windows.Forms.Label();
this.display_desc = new System.Windows.Forms.CheckBox();
this.display_stars = new System.Windows.Forms.CheckBox();
this.shown_name = new System.Windows.Forms.TextBox();
@@ -55,8 +57,6 @@
this.shutdownonload = new System.Windows.Forms.CheckBox();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.apply = new System.Windows.Forms.Button();
- this.label3 = new System.Windows.Forms.Label();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
@@ -259,6 +259,25 @@
this.tabPage3.Text = "Options";
this.tabPage3.UseVisualStyleBackColor = true;
//
+ // comboBox1
+ //
+ this.comboBox1.FormattingEnabled = true;
+ this.comboBox1.Items.AddRange(new object[] {
+ "English (default)"});
+ this.comboBox1.Location = new System.Drawing.Point(72, 112);
+ this.comboBox1.Name = "comboBox1";
+ this.comboBox1.Size = new System.Drawing.Size(121, 21);
+ this.comboBox1.TabIndex = 9;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(8, 116);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(58, 13);
+ this.label3.TabIndex = 8;
+ this.label3.Text = "Language:";
+ //
// display_desc
//
this.display_desc.AutoSize = true;
@@ -282,6 +301,7 @@
// shown_name
//
this.shown_name.Location = new System.Drawing.Point(156, 32);
+ this.shown_name.MaxLength = 30;
this.shown_name.Name = "shown_name";
this.shown_name.Size = new System.Drawing.Size(195, 20);
this.shown_name.TabIndex = 5;
@@ -328,25 +348,6 @@
this.apply.UseVisualStyleBackColor = true;
this.apply.Click += new System.EventHandler(this.apply_Click);
//
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(8, 116);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(58, 13);
- this.label3.TabIndex = 8;
- this.label3.Text = "Language:";
- //
- // comboBox1
- //
- this.comboBox1.FormattingEnabled = true;
- this.comboBox1.Items.AddRange(new object[] {
- "English (default)"});
- this.comboBox1.Location = new System.Drawing.Point(72, 112);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(121, 21);
- this.comboBox1.TabIndex = 9;
- //
// setupForm
//
this.AcceptButton = this.save;
@@ -402,8 +403,8 @@
private System.Windows.Forms.DataGridViewTextBoxColumn ROM_DB_List_Description;
private System.Windows.Forms.CheckBox display_desc;
private System.Windows.Forms.CheckBox display_stars;
- private static System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox comboBox1;
+ private static System.Windows.Forms.ListBox listBox1;
}
}
\ No newline at end of file
Modified: trunk/plugins/MyEmulators/myEmulators/setupForm.cs
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/setupForm.cs 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/myEmulators/setupForm.cs 2007-05-25 17:29:51 UTC (rev 443)
@@ -39,7 +39,10 @@
{
//Save options
Options.updateBoolOption("shutdownonlaunch", shutdownonload.Checked);
- Options.updateStringOption("shown_name", shown_name.Text);
+ if (shown_name.Text.Length > 0)
+ {
+ Options.updateStringOption("shown_name", shown_name.Text);
+ }
Options.updateBoolOption("display_stars", display_stars.Checked);
Options.updateBoolOption("display_desc", display_desc.Checked);
//Save language
Modified: trunk/plugins/MyEmulators/myEmulators/setupForm.resx
===================================================================
--- trunk/plugins/MyEmulators/myEmulators/setupForm.resx 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/myEmulators/setupForm.resx 2007-05-25 17:29:51 UTC (rev 443)
@@ -117,9 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
- <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>17, 17</value>
- </metadata>
<metadata name="ROM_DB_List_Path.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -141,27 +138,6 @@
<metadata name="ROM_DB_List_Description.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
- <metadata name="ROM_DB_List_Path.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="ROM_DB_List_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="ROM_DB_List_Emulator.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="ROM_DB_List_Grade.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="Count.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="Dateplayed.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
- <metadata name="ROM_DB_List_Description.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>True</value>
- </metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
Modified: trunk/plugins/MyEmulators/output.rar
===================================================================
(Binary files differ)
Modified: trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml
===================================================================
--- trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/skin/BlueTwo/myEmulators.xml 2007-05-25 17:29:51 UTC (rev 443)
@@ -4,12 +4,27 @@
<id>5001</id>
<defaultcontrol>50</defaultcontrol>
<allowoverlay>yes</allowoverlay>
- <define>#header.label:My Emulators</define>
+ <define>#header.label:</define>
<define>#header.hover:hover_myEmulators.png</define>
<define>#header.image:myEmulators_logo.png</define>
<controls>
<import>common.window.xml</import>
+ <!-- HEADER LABEL -->
+ <control>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <type>label</type>
+ <id>9</id>
+ <posX>250</posX>
+ <posY>70</posY>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>White</textcolor>
+ <animation effect="fade" time="200">WindowOpen</animation>
+ <animation effect="fade" time="200">WindowClose</animation>
+ </control>
+
<!-- SIDE BUTTONS -->
<control>
<type>group</type>
Modified: trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml
===================================================================
--- trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml 2007-05-25 16:04:28 UTC (rev 442)
+++ trunk/plugins/MyEmulators/skin/BlueTwo wide/myEmulators.xml 2007-05-25 17:29:51 UTC (rev 443)
@@ -4,11 +4,26 @@
<id>5001</id>
<defaultcontrol>50</defaultcontrol>
<allowoverlay>yes</allowoverlay>
- <define>#header.label:My Emulators</define>
+ <define>#header.label:</define>
<define>#header.hover:hover_myEmulators.png</define>
<define>#header.image:myEmulators_logo.png</define>
<controls>
<import>common.window.xml</import>
+
+ <!-- HEADER LABEL -->
+ <control>
+ <animation effect="fade" time="250">WindowOpen</animation>
+ <animation effect="fade" time="500">WindowClose</animation>
+ <type>label</type>
+ <id>9</id>
+ <posX>474</posX>
+ <posY>93</posY>
+ <font>font16</font>
+ <align>right</align>
+ <textcolor>White</textcolor>
+ <animation effect="fade" time="200">WindowOpen</animation>
+ <animation effect="fade" time="200">WindowClose</animation>
+ </control>
<!-- SIDE BUTTONS -->
<control>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|