A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
ControlsReminderWidgetInfo.cpp
Go to the documentation of this file.
1
// Copyright(c) Pixo Group. All Rights Reserved.
2
3
#include "
UI/ControlsReminder/ControlsReminderWidgetInfo.h
"
4
5
void
UControlsReminderWidgetInfo::SetCurrentDevice
(
const
FName& DeviceName)
6
{
7
CurrentDeviceName
= DeviceName.ToString();
8
}
9
10
UTexture2D*
UControlsReminderWidgetInfo::GetCurrentDeviceTexture
()
const
11
{
12
UTexture2D* Result =
nullptr
;
13
14
for
(int32 i = 0; i <
DevicesTextures
.Num(); i++)
15
{
16
const
bool
Contains =
CurrentDeviceName
.Contains(
DevicesTextures
[i].DeviceTypeName, ESearchCase::IgnoreCase);
17
if
(Contains)
18
{
19
Result =
DevicesTextures
[i].DeviceTexture;
20
break
;
21
}
22
}
23
return
Result;
24
}
ControlsReminderWidgetInfo.h
UControlsReminderWidgetInfo::DevicesTextures
TArray< FDeviceTexture > DevicesTextures
UPROPERTY(EditAnywhere, BlueprintReadWrite)
Definition
ControlsReminderWidgetInfo.h:57
UControlsReminderWidgetInfo::CurrentDeviceName
FString CurrentDeviceName
UPROPERTY()
Definition
ControlsReminderWidgetInfo.h:62
UControlsReminderWidgetInfo::GetCurrentDeviceTexture
UTexture2D * GetCurrentDeviceTexture() const
Gets controls image of the current device.
Definition
ControlsReminderWidgetInfo.cpp:10
UControlsReminderWidgetInfo::SetCurrentDevice
void SetCurrentDevice(const FName &DeviceName)
Definition
ControlsReminderWidgetInfo.cpp:5
SDKDemo
Plugins
UnrealEngineSDK
PixoCore
Source
PixoCore
Private
UI
ControlsReminder
ControlsReminderWidgetInfo.cpp
Generated
Wed Oct 9 2024 19:52:53
by Doxygen version
1.10.0