mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(EncodingSetting): added constructor for custom text string.
This commit is contained in:
parent
47c5f706c6
commit
c029d97de1
@ -20,10 +20,12 @@ namespace GameRes.Formats
|
|||||||
|
|
||||||
public LocalResourceSetting () { }
|
public LocalResourceSetting () { }
|
||||||
|
|
||||||
public LocalResourceSetting (string name)
|
public LocalResourceSetting (string name) : this (name, name) { }
|
||||||
|
|
||||||
|
public LocalResourceSetting (string name, string text)
|
||||||
{
|
{
|
||||||
Name = name;
|
Name = name;
|
||||||
Text = arcStrings.ResourceManager.GetString (name, arcStrings.Culture) ?? name;
|
Text = arcStrings.ResourceManager.GetString (text, arcStrings.Culture) ?? text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,6 +51,8 @@ namespace GameRes.Formats
|
|||||||
public EncodingSetting () { }
|
public EncodingSetting () { }
|
||||||
|
|
||||||
public EncodingSetting (string name) : base (name) { }
|
public EncodingSetting (string name) : base (name) { }
|
||||||
|
|
||||||
|
public EncodingSetting (string name, string text) : base (name, text) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
[Export(typeof(ISettingsManager))]
|
[Export(typeof(ISettingsManager))]
|
||||||
|
Loading…
Reference in New Issue
Block a user