Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ContainerActionTitle.c
Go to the documentation of this file.
1
class
SCR_ContainerActionTitle
:
BaseContainerCustomTitle
2
{
3
//------------------------------------------------------------------------------------------------
4
override
bool
_WB_GetCustomTitle(
BaseContainer
source, out
string
title)
5
{
6
title = source.GetClassName();
7
title.Replace(
"SCR_ScenarioFrameworkAction"
,
""
);
8
title.Replace(
"SCR_ScenarioFramework"
,
""
);
9
string
sOriginal = title;
10
SplitStringByUpperCase(sOriginal, title);
11
return
true
;
12
}
13
14
//------------------------------------------------------------------------------------------------
18
void
SplitStringByUpperCase(
string
input, out
string
output)
19
{
20
output =
""
;
21
bool
wasPreviousUpperCase;
22
int
asciiChar;
23
for
(
int
i, count = input.Length(); i < count; i++)
24
{
25
asciiChar = input.ToAscii(i);
26
bool
isLowerCase = (asciiChar > 96 && asciiChar < 123);
27
if
(i > 0 && !wasPreviousUpperCase && !isLowerCase)
28
{
29
output +=
" "
+ asciiChar.AsciiToString();
30
wasPreviousUpperCase =
true
;
31
}
32
else
33
{
34
if
(isLowerCase)
35
wasPreviousUpperCase =
false
;
36
37
output += asciiChar.AsciiToString();
38
}
39
}
40
}
41
}
BaseContainerCustomTitle
Definition
BaseContainerCustomTitle.c:35
BaseContainer
Definition
BaseContainer.c:13
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
scripts
Game
ScenarioFramework
Actions
SCR_ContainerActionTitle.c
Generated by
1.17.0