Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ARNOBeta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ar-noc
ARNOBeta
Commits
6d274c0c
Commit
6d274c0c
authored
2 years ago
by
Giovanni Vindiola
Browse files
Options
Downloads
Patches
Plain Diff
Added more inital UserCloud Avatar Management functionality to MainMenu Widget.
parent
90d0a4d0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Plugins/Reztly
+1
-1
1 addition, 1 deletion
Plugins/Reztly
Source/arnocMain/WebLink.cpp
+11
-24
11 additions, 24 deletions
Source/arnocMain/WebLink.cpp
Source/arnocMain/WebLink.h
+4
-7
4 additions, 7 deletions
Source/arnocMain/WebLink.h
k8s/UserFile-Avatars.json
+26
-10
26 additions, 10 deletions
k8s/UserFile-Avatars.json
with
42 additions
and
42 deletions
Reztly
@
029ee343
Compare
887002b5
...
029ee343
Subproject commit
887002b56a883d1428ce9f0592537518c42885b3
Subproject commit
029ee34301e7ee6c55f0093a12cf651d1040cf1c
This diff is collapsed.
Click to expand it.
Source/arnocMain/WebLink.cpp
+
11
−
24
View file @
6d274c0c
...
...
@@ -2,44 +2,31 @@
#include
"WebLink.h"
#include
"Dom/JsonObject.h"
void
UWebLink
::
AvatarGenerated
(
FString
jsonResponse
)
{
FString
url
=
""
;
if
(
jsonResponse
.
Contains
(
TEXT
(
".glb"
)))
{
UE_LOG
(
LogTemp
,
Warning
,
TEXT
(
".glb found "
));
url
=
jsonResponse
;
}
if
(
url
.
IsEmpty
())
{
return
;
}
UWebLink
::
WebBrowserResponse
.
Execute
(
url
);
lastAvatarUrl
=
url
;
}
void
UWebLink
::
textboxSelected
(
FString
jsonResponse
)
void
UWebLink
::
AvatarGenerated
(
FString
JsonResponse
)
{
FString
url
=
""
;
if
(
jsonResponse
.
Contains
(
TEXT
(
".glb"
)))
{
FString
Url
=
""
;
if
(
JsonResponse
.
Contains
(
TEXT
(
".glb"
)))
{
UE_LOG
(
LogTemp
,
Warning
,
TEXT
(
".glb found "
));
u
rl
=
j
sonResponse
;
U
rl
=
J
sonResponse
;
}
if
(
url
.
IsEmpty
())
{
if
(
Url
.
IsEmpty
())
{
return
;
}
UWebLink
::
WebBrowserResponse
.
Execute
(
u
rl
);
l
astAvatarUrl
=
u
rl
;
WebBrowserResponse
.
Execute
(
U
rl
);
L
astAvatarUrl
=
U
rl
;
}
void
UWebLink
::
SetAvatarUrlCallback
(
const
FReadyPlayerWebBrowserResponse
&
WebBrowserCallback
)
{
UWebLink
::
WebBrowserResponse
=
WebBrowserCallback
;
WebBrowserResponse
=
WebBrowserCallback
;
}
FString
UWebLink
::
GetLastAvatarUrl
()
{
return
UWebLink
::
l
astAvatarUrl
;
return
L
astAvatarUrl
;
}
This diff is collapsed.
Click to expand it.
Source/arnocMain/WebLink.h
+
4
−
7
View file @
6d274c0c
//
Fill out your copyright notice in the Description page of Project Settings.
//
Copyright 2021++ Ready Player Me
#pragma once
...
...
@@ -8,16 +8,13 @@
DECLARE_DYNAMIC_DELEGATE_OneParam
(
FReadyPlayerWebBrowserResponse
,
const
FString
&
,
AvatarUrl
);
UCLASS
()
class
ARNOCMAIN_API
UWebLink
:
public
UObject
class
UWebLink
:
public
UObject
{
GENERATED_BODY
()
public:
UFUNCTION
(
BlueprintCallable
,
Category
=
"Ready Player Me"
)
void
AvatarGenerated
(
FString
jsonResponse
);
UFUNCTION
(
BlueprintCallable
,
Category
=
"Ready Player Me"
)
void
textboxSelected
(
FString
jsonResponse
);
void
AvatarGenerated
(
FString
JsonResponse
);
UFUNCTION
(
BlueprintCallable
,
meta
=
(
DisplayName
=
"RPM Set Callback"
),
Category
=
"Ready Player Me"
)
void
SetAvatarUrlCallback
(
const
FReadyPlayerWebBrowserResponse
&
WebBrowserCallback
);
...
...
@@ -28,5 +25,5 @@ public:
private:
FReadyPlayerWebBrowserResponse
WebBrowserResponse
;
FString
l
astAvatarUrl
;
FString
L
astAvatarUrl
;
};
This diff is collapsed.
Click to expand it.
k8s/UserFile-Avatars.json
+
26
−
10
View file @
6d274c0c
{
"avatars"
:
[
{
"name"
:
"Manny"
,
"id"
:
"6185a4acfb622cf1cdc49348"
},
{
"name"
:
"Quin"
,
"id"
:
"63c3a8e7e5b9a4355880db34"
}
]
"Avatars"
:
[
{
"Name"
:
"Manny"
,
"ID"
:
"6185a4acfb622cf1cdc49348"
},
{
"Name"
:
"Jin"
,
"ID"
:
"63d6468cbc1bcc3f933cdb8c"
},
{
"Name"
:
"Tom"
,
"ID"
:
"63d646cc60d1b8cc82dd993f"
},
{
"Name"
:
"Larry"
,
"ID"
:
"63d64700bc1bcc3f933cdbd2"
},
{
"Name"
:
"JonG"
,
"ID"
:
"63d6474060d1b8cc82dd996d"
},
{
"Name"
:
"JonP"
,
"ID"
:
"63d64768bc1bcc3f933cdc04"
}
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment