12#include "CoreMinimal.h"
13#include "Widgets/Basic/WSText.h"
15#include "Components/EditableTextBox.h"
16#include "Components/EditableText.h"
17#include "Components/HorizontalBox.h"
18#include "Components/Image.h"
19#include "Components/Overlay.h"
20#include "Components/ScaleBox.h"
21#include "Components/SizeBox.h"
22#include "Components/Slider.h"
23#include "Components/VerticalBox.h"
24#include "Types/SlateEnums.h"
25#include "Types/WSEnums.h"
26#include "Widgets/WSSliderBase.h"
27#include "WSModernSlider.generated.h"
39 virtual TSharedRef<SWidget> RebuildWidget()
override;
40 virtual int32 NativePaint(
const FPaintArgs& Args,
const FGeometry& AllottedGeometry,
const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId,
const FWidgetStyle& InWidgetStyle,
bool bParentEnabled)
const override;
41 virtual void SynchronizeProperties()
override;
42 virtual void InitializeStyling()
override;
43 virtual void UpdateStyling()
override;
48 void OnTextCommitted(
const FText& InText, ETextCommit::Type InCommitMethod);
52 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
53 UVerticalBox* VBox =
nullptr;
55 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
56 USizeBox* SizeBox =
nullptr;
58 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
59 UHorizontalBox* HBox =
nullptr;
61 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
62 UOverlay* Overlay =
nullptr;
64 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
65 UScaleBox* TrackScaleBox =
nullptr;
67 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
68 UOverlay* TrackOverlay =
nullptr;
70 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
71 UImage* Track =
nullptr;
73 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
74 UImage* TrackDropShadow =
nullptr;
76 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
77 USizeBox* FillTrackSizeBox =
nullptr;
79 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
80 UImage* FillTrack =
nullptr;
82 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
83 UScaleBox* HandleScaleBox =
nullptr;
85 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
86 USizeBox* HandleSizeBox =
nullptr;
88 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
89 UOverlay* HandleOverlay =
nullptr;
91 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
92 UImage* HandleDropShadow =
nullptr;
94 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
95 UImage* Handle =
nullptr;
97 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
98 USlider* SliderItem =
nullptr;
100 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
101 USizeBox* TextInputSizeBox =
nullptr;
103 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
104 UEditableTextBox* TextInput =
nullptr;
106 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
114 void SyncSliderValue(
float NewValue);
119 UPROPERTY(EditAnywhere, Category =
"Widget Studio|Advanced|Deprecated",Meta=(DeprecatedProperty, DeprecationMessage=
"Per-widget labeling is no longer supported. Place this widget in the Label Widget instead."))
123 UPROPERTY(EditAnywhere, Category=
"Widget Studio")
124 bool bEnableInput =
true;
127 UPROPERTY(EditAnywhere, Category=
"Widget Studio")
128 bool bDisplayHandle =
true;
131 UPROPERTY(EditAnywhere, Category=
"Widget Studio")
132 bool bDisplayValue =
true;
138 UPROPERTY(EditAnywhere, Category=
"Widget Studio|Color")
139 bool bColorBasedOnValue =
false;
142 UPROPERTY(EditAnywhere, Category=
"Widget Studio|Color", Meta = (EditCondition=
"bColorBasedOnValue == true", EditConditionHides))
143 bool bReverseColorOrder =
false;
146 UPROPERTY(EditAnywhere, Category=
"Widget Studio|Color")
147 EPalette TrackColor = EPalette::TertiaryBackground;
150 UPROPERTY(EditAnywhere, Category=
"Widget Studio|Color", Meta = (EditCondition=
"bColorBasedOnValue == false", EditConditionHides))
151 EPalette HandleColor = EPalette::PrimaryAccent;
154 UPROPERTY(EditAnywhere, Category=
"Widget Studio|Color", Meta = (EditCondition=
"bDisplayValue == true", EditConditionHides))
155 EPalette TextColor = EPalette::PrimaryContent;
163 UFUNCTION(BlueprintPure, Category =
"Widget Studio|Advanced|Deprecated",Meta=(DeprecatedProperty, DeprecationMessage=
"Per-widget labeling is no longer supported. Place this widget in the Label Widget instead."))
164 FText GetLabelText()
const;
167 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
168 bool IsValueVisible()
const;
171 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
172 bool IsHandleVisible()
const;
175 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
176 bool IsColorBasedOnValue()
const;
179 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
180 bool IsColorBasedOnValueReversed()
const;
183 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
184 bool IsInputEnabled()
const;
190 UFUNCTION(BlueprintCallable, Category =
"Widget Studio|Advanced|Deprecated",Meta=(DeprecatedProperty, DeprecationMessage=
"Per-widget labeling is no longer supported. Place this widget in the Label Widget instead."))
191 void SetLabelText(FText NewText);
197 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
198 void SetValueVisibility(
bool bNewState);
204 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
205 void SetHandleVisibility(
bool bNewState);
211 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
212 void SetColorBasedOnValue(
bool bNewState);
218 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
219 void SetReverseColorOrder(
bool bNewState);
225 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
226 void SetInputState(
bool NewState);
A custom text widget setup to work with the Typography Styling.
Definition: WSText.h:92