Created Vision Links Viewport Widget
Has a functioning battery life bar
This commit is contained in:
parent
e61b51d466
commit
aca63055f3
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cc03486eff6b6773661f66c933fa9133c4cb06574cb449b416f5f79620ddc5d3
|
||||
size 55610
|
||||
oid sha256:a4b1eb50312687772c3a03c0ef4e857d8db493b85d341ca5d9d4fda2cd8669f2
|
||||
size 69951
|
||||
|
BIN
EndlessVendetta/Content/Gadgets/ReconGadgets/VisionLink/VisionLinkViewPortBG.png
(Stored with Git LFS)
Normal file
BIN
EndlessVendetta/Content/Gadgets/ReconGadgets/VisionLink/VisionLinkViewPortBG.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
EndlessVendetta/Content/Gadgets/ReconGadgets/VisionLink/VisionLinkViewPortBG.uasset
(Stored with Git LFS)
Normal file
BIN
EndlessVendetta/Content/Gadgets/ReconGadgets/VisionLink/VisionLinkViewPortBG.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fb578a8064dba062142046bcb432a36f7cf120096d75835630f55c95df96c3be
|
||||
size 76094
|
BIN
EndlessVendetta/Content/Gadgets/ReconGadgets/VisionLink/WBP_VisionLinkWatchFace.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/Gadgets/ReconGadgets/VisionLink/WBP_VisionLinkWatchFace.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/StarterContent/HDRI/HDRI_Epic_Courtyard_Daylight.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/StarterContent/Particles/P_Ambient_Dust.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/StarterContent/Particles/P_Ambient_Dust.uasset
(Stored with Git LFS)
Binary file not shown.
@ -8,6 +8,7 @@ void AVisionLink::BeginPlay()
|
||||
Super::BeginPlay();
|
||||
SetActorTickEnabled(false);
|
||||
CooldownLength = CooldownTime;
|
||||
InUseDuration = GadgetMaxUptime;
|
||||
}
|
||||
|
||||
|
||||
@ -23,13 +24,13 @@ void AVisionLink::Activate()
|
||||
|
||||
Super::Activate();
|
||||
SetActorTickEnabled(true);
|
||||
SwitchToActiveWatchFace();
|
||||
VisionLinkActivated();
|
||||
}
|
||||
|
||||
void AVisionLink::FinishedUsing()
|
||||
{
|
||||
SetActorTickEnabled(false);
|
||||
SwitchToRechargingWatchFace();
|
||||
VisionLinkRecharging();
|
||||
|
||||
Super::FinishedUsing();
|
||||
}
|
||||
|
@ -26,10 +26,13 @@ protected:
|
||||
UPROPERTY(BlueprintReadOnly, Category = "Vision Link")
|
||||
float CooldownLength;
|
||||
|
||||
UFUNCTION(BlueprintImplementableEvent, Category = "Vision Link")
|
||||
void SwitchToActiveWatchFace();
|
||||
UPROPERTY(BlueprintReadOnly, Category = "Vision Link")
|
||||
float InUseDuration;
|
||||
|
||||
UFUNCTION(BlueprintImplementableEvent, Category = "Vision Link")
|
||||
void SwitchToRechargingWatchFace();
|
||||
void VisionLinkActivated();
|
||||
|
||||
UFUNCTION(BlueprintImplementableEvent, Category = "Vision Link")
|
||||
void VisionLinkRecharging();
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user