Client LuaCsForBarotrauma
CapitalizeLString.cs
1
#nullable enable
2
namespace
Barotrauma
3
{
4
public
class
CapitalizeLString
:
LocalizedString
5
{
6
private
readonly
LocalizedString
nestedStr;
7
8
public
CapitalizeLString
(
LocalizedString
nStr) { nestedStr = nStr; }
9
10
public
override
bool
Loaded
=> nestedStr.Loaded;
11
public
override
void
RetrieveValue
()
12
{
13
string
str = nestedStr.Value;
14
if
(!
string
.IsNullOrEmpty(str))
15
{
16
cachedValue
=
char
.ToUpper(str[0]) + str[1..];
17
}
18
else
19
{
20
cachedValue
=
""
;
21
}
22
UpdateLanguage
();
23
}
24
}
25
}
Barotrauma.CapitalizeLString
Definition:
CapitalizeLString.cs:5
Barotrauma.CapitalizeLString.Loaded
override bool Loaded
Definition:
CapitalizeLString.cs:10
Barotrauma.CapitalizeLString.RetrieveValue
override void RetrieveValue()
Definition:
CapitalizeLString.cs:11
Barotrauma.CapitalizeLString.CapitalizeLString
CapitalizeLString(LocalizedString nStr)
Definition:
CapitalizeLString.cs:8
Barotrauma.LocalizedString
Definition:
LocalizedString.cs:8
Barotrauma.LocalizedString.cachedValue
string cachedValue
Definition:
LocalizedString.cs:19
Barotrauma.LocalizedString.UpdateLanguage
void UpdateLanguage()
Definition:
LocalizedString.cs:33
Barotrauma
Definition:
AchievementManager.cs:12
Barotrauma
BarotraumaShared
SharedSource
Text
LocalizedString
CapitalizeLString.cs
Generated by
1.9.1