Add Settings page

Add Page tab order setting
Add Window opacity setting
This commit is contained in:
2023-10-13 22:45:24 +08:00
parent c2be92c41b
commit eda70a2aae
41 changed files with 2169 additions and 745 deletions

View File

@@ -1239,6 +1239,15 @@ namespace GrasscutterTools.Properties {
return ResourceManager.GetString("PageSetPropTitle", resourceCulture);
}
}
/// <summary>
/// 查找类似 设置 的本地化字符串。
/// </summary>
internal static string PageSettingsTitle {
get {
return ResourceManager.GetString("PageSettingsTitle", resourceCulture);
}
}
/// <summary>
/// 查找类似 生成 的本地化字符串。

View File

@@ -381,4 +381,7 @@ Improvement suggestions have been submitted, please use caution to send emails t
<data name="PageProxyTitle" xml:space="preserve">
<value>Proxy</value>
</data>
<data name="PageSettingsTitle" xml:space="preserve">
<value>Settings</value>
</data>
</root>

View File

@@ -393,4 +393,7 @@
<data name="PageProxyTitle" xml:space="preserve">
<value>代理</value>
</data>
<data name="PageSettingsTitle" xml:space="preserve">
<value>设置</value>
</data>
</root>

View File

@@ -369,4 +369,7 @@
<data name="PageProxyTitle" xml:space="preserve">
<value>Прокси</value>
</data>
<data name="PageSettingsTitle" xml:space="preserve">
<value>Настройка</value>
</data>
</root>

View File

@@ -375,4 +375,7 @@
<data name="PageProxyTitle" xml:space="preserve">
<value>代理</value>
</data>
<data name="PageSettingsTitle" xml:space="preserve">
<value>設定</value>
</data>
</root>

View File

@@ -310,5 +310,28 @@ namespace GrasscutterTools.Properties {
this["AutoStartProxy"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Collections.Specialized.StringCollection PageOrders {
get {
return ((global::System.Collections.Specialized.StringCollection)(this["PageOrders"]));
}
set {
this["PageOrders"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("100")]
public int WindowOpacity {
get {
return ((int)(this["WindowOpacity"]));
}
set {
this["WindowOpacity"] = value;
}
}
}
}

View File

@@ -74,5 +74,11 @@
<Setting Name="AutoStartProxy" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="PageOrders" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="WindowOpacity" Type="System.Int32" Scope="User">
<Value Profile="(Default)">100</Value>
</Setting>
</Settings>
</SettingsFile>