Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
OverlaySocialModule.cs
Go to the documentation of this file.
1
using
Steamworks;
2
using
Terraria.Social.Base
;
3
4
namespace
Terraria.Social.Steam
;
5
6
public
class
OverlaySocialModule
:
Terraria
.Social.Base.
OverlaySocialModule
7
{
8
private
Callback<GamepadTextInputDismissed_t>
_gamepadTextInputDismissed
;
9
10
private
bool
_gamepadTextInputActive
;
11
12
public
override
void
Initialize
()
13
{
14
_gamepadTextInputDismissed
= Callback<GamepadTextInputDismissed_t>.Create((DispatchDelegate<GamepadTextInputDismissed_t>)
OnGamepadTextInputDismissed
);
15
}
16
17
public
override
void
Shutdown
()
18
{
19
}
20
21
public
override
bool
IsGamepadTextInputActive
()
22
{
23
return
_gamepadTextInputActive
;
24
}
25
26
public
override
bool
ShowGamepadTextInput
(
string
description, uint maxLength,
bool
multiLine =
false
,
string
existingText =
""
,
bool
password =
false
)
27
{
28
if
(
_gamepadTextInputActive
)
29
{
30
return
false
;
31
}
32
bool
num = SteamUtils.ShowGamepadTextInput((EGamepadTextInputMode)(password ? 1 : 0), (EGamepadTextInputLineMode)(multiLine ? 1 : 0), description, maxLength, existingText);
33
if
(num)
34
{
35
_gamepadTextInputActive
=
true
;
36
}
37
return
num;
38
}
39
40
public
override
string
GetGamepadText
()
41
{
42
uint enteredGamepadTextLength = SteamUtils.GetEnteredGamepadTextLength();
43
string
result =
default
(
string
);
44
SteamUtils.GetEnteredGamepadTextInput(ref result, enteredGamepadTextLength);
45
return
result;
46
}
47
48
private
void
OnGamepadTextInputDismissed
(GamepadTextInputDismissed_t result)
49
{
50
_gamepadTextInputActive
=
false
;
51
}
52
}
Terraria.Social.Steam.OverlaySocialModule.Shutdown
override void Shutdown()
Definition
OverlaySocialModule.cs:17
Terraria.Social.Steam.OverlaySocialModule.Initialize
override void Initialize()
Definition
OverlaySocialModule.cs:12
Terraria.Social.Steam.OverlaySocialModule._gamepadTextInputActive
bool _gamepadTextInputActive
Definition
OverlaySocialModule.cs:10
Terraria.Social.Steam.OverlaySocialModule.IsGamepadTextInputActive
override bool IsGamepadTextInputActive()
Definition
OverlaySocialModule.cs:21
Terraria.Social.Steam.OverlaySocialModule._gamepadTextInputDismissed
Callback< GamepadTextInputDismissed_t > _gamepadTextInputDismissed
Definition
OverlaySocialModule.cs:8
Terraria.Social.Steam.OverlaySocialModule.ShowGamepadTextInput
override bool ShowGamepadTextInput(string description, uint maxLength, bool multiLine=false, string existingText="", bool password=false)
Definition
OverlaySocialModule.cs:26
Terraria.Social.Steam.OverlaySocialModule.GetGamepadText
override string GetGamepadText()
Definition
OverlaySocialModule.cs:40
Terraria.Social.Steam.OverlaySocialModule.OnGamepadTextInputDismissed
void OnGamepadTextInputDismissed(GamepadTextInputDismissed_t result)
Definition
OverlaySocialModule.cs:48
Terraria.Social.Steam.OverlaySocialModule
Definition
OverlaySocialModule.cs:7
Terraria.Social.Base
Definition
AchievementsSocialModule.cs:1
Terraria.Social.Steam
Definition
AchievementsSocialModule.cs:7
Terraria
Definition
Achievement.cs:7
source
Terraria.Social.Steam
OverlaySocialModule.cs
Generated by
1.10.0