v1.2.26
Documentation for the Unreal C++ Plugin
Loading...
Searching...
No Matches
PixoVRWristMenuItemWidget.cpp
Go to the documentation of this file.
1
// Copyright(c) Pixo Group. All Rights Reserved.
2
3
#include "
UI/WristMenu/PixoVRWristMenuItemWidget.h
"
4
#include "Blueprint/WidgetTree.h"
5
#include "Components/Image.h"
6
7
#define LOCTEXT_NAMESPACE "PixoVR"
8
9
void
UPixoVRWristMenuItemWidget::SetButtonTexture
(UTexture2D* Texture)
10
{
11
ImageButton
->SetBrushFromTexture(Texture,
true
);
12
}
13
14
void
UPixoVRWristMenuItemWidget::SetButtonHighlight
(FLinearColor TintColor)
15
{
16
ImageButton
->SetColorAndOpacity(TintColor);
17
}
18
19
void
UPixoVRWristMenuItemWidget::SetButtonAngle
(
float
Angle)
20
{
21
ImageButton
->SetRenderTransformAngle(Angle);
22
}
23
24
float
UPixoVRWristMenuItemWidget::GetButtonAngle
()
const
25
{
26
return
ImageButton
->GetRenderTransformAngle();
27
}
28
29
void
UPixoVRWristMenuItemWidget::SetButtonIcon
(UTexture2D* Texture)
30
{
31
ButtonIcon
->SetBrushFromTexture(Texture,
true
);
32
}
33
34
void
UPixoVRWristMenuItemWidget::SetButtonScale
(FVector2D Scale)
35
{
36
ImageButton
->SetRenderScale(Scale);
37
}
38
39
#undef LOCTEXT_NAMESPACE
PixoVRWristMenuItemWidget.h
UPixoVRWristMenuItemWidget::GetButtonAngle
float GetButtonAngle() const
UFUNCTION(BlueprintCallable, Category = "PixoVR | Wrist Menu")
Definition
PixoVRWristMenuItemWidget.cpp:24
UPixoVRWristMenuItemWidget::SetButtonHighlight
void SetButtonHighlight(FLinearColor TintColor)
UFUNCTION(BlueprintCallable, Category = "PixoVR | Wrist Menu")
Definition
PixoVRWristMenuItemWidget.cpp:14
UPixoVRWristMenuItemWidget::SetButtonAngle
void SetButtonAngle(float Angle)
UFUNCTION(BlueprintCallable, Category = "PixoVR | Wrist Menu")
Definition
PixoVRWristMenuItemWidget.cpp:19
UPixoVRWristMenuItemWidget::ImageButton
UImage * ImageButton
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="PixoVR | Wrist Menu", meta = (BindWidget))
Definition
PixoVRWristMenuItemWidget.h:66
UPixoVRWristMenuItemWidget::SetButtonIcon
void SetButtonIcon(UTexture2D *Texture)
UFUNCTION(BlueprintCallable, Category = "PixoVR | Wrist Menu")
Definition
PixoVRWristMenuItemWidget.cpp:29
UPixoVRWristMenuItemWidget::SetButtonTexture
void SetButtonTexture(UTexture2D *Texture)
UFUNCTION(BlueprintCallable, Category="PixoVR | Wrist Menu")
Definition
PixoVRWristMenuItemWidget.cpp:9
UPixoVRWristMenuItemWidget::ButtonIcon
UImage * ButtonIcon
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="PixoVR | Wrist Menu", meta = (BindWidget))
Definition
PixoVRWristMenuItemWidget.h:73
UPixoVRWristMenuItemWidget::SetButtonScale
void SetButtonScale(FVector2D Scale)
UFUNCTION(BlueprintCallable, Category = "PixoVR | Wrist Menu")
Definition
PixoVRWristMenuItemWidget.cpp:34
PixoCore
Source
PixoCore
Private
UI
WristMenu
PixoVRWristMenuItemWidget.cpp
Generated
Wed Oct 9 2024 19:40:17
by Doxygen version
1.10.0