Phuket
This commit is contained in:
@ -3,6 +3,25 @@
|
||||
#include "MyUserWidget.h"
|
||||
#include <MyPlayerState.h>
|
||||
|
||||
bool UMyUserWidget::AllVerified() {
|
||||
UTextBlock * myVerifiers[9] = {
|
||||
URM_Verifier,
|
||||
MU_Verifier,
|
||||
Time_Verifier,
|
||||
GR_Verifier,
|
||||
CR_Verifier,
|
||||
ColX_Verifier,
|
||||
ColY_Verifier,
|
||||
WN_Verifier,
|
||||
AN_Verifier
|
||||
};
|
||||
for (auto & v : myVerifiers) {
|
||||
if (v->GetText().IsEmpty())
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void UMyUserWidget::NativeOnInitialized() {
|
||||
auto ps = StaticCast<AMyPlayerState *>(GetOwningPlayerState());
|
||||
if (ps == nullptr)
|
||||
|
Reference in New Issue
Block a user