Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Samuel.Gaudemer
MoveOnProgress
Commits
73e7fbb1
Commit
73e7fbb1
authored
Feb 21, 2022
by
Louise.Treuil
Browse files
résolution bug
parent
56e8aca3
Changes
11
Hide whitespace changes
Inline
Side-by-side
Assets/Scripts/Menus/Acquisition/Controller/AcquisitionController.cs
View file @
73e7fbb1
...
...
@@ -253,8 +253,8 @@ namespace Menus.Acquisition.Controller
private
string
GetUniqueFileName
()
{
return
app
.
model
.
GetCurrentUser
().
LastName
+
app
.
model
.
GetCurrentUser
().
First
Name
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd-HH-mm-ss"
);
return
app
.
model
.
GetCurrentUser
().
Nick
Name
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd-HH-mm-ss"
);
//à modifier ??
}
protected
override
void
Enter
()
...
...
@@ -307,7 +307,7 @@ namespace Menus.Acquisition.Controller
protected
void
OnUser
(
UserData
userSelected
)
{
app
.
model
.
SetCurrentUser
(
userSelected
);
app
.
view
.
currentConfigValue
.
text
=
userSelected
.
FirstName
+
" "
+
userSelected
.
Last
Name
;
app
.
view
.
currentConfigValue
.
text
=
userSelected
.
Nick
Name
;
}
protected
void
OnDevice
(
DevicesInfos
.
Device
device
)
...
...
@@ -341,8 +341,7 @@ namespace Menus.Acquisition.Controller
if
(
app
.
model
.
GetDataBase
()
!=
null
)
{
app
.
view
.
CleanConfigPanel
();
app
.
view
.
User
.
text
=
app
.
model
.
GetCurrentUser
().
FirstName
+
" "
+
app
.
model
.
GetCurrentUser
().
LastName
;
app
.
view
.
User
.
text
=
app
.
model
.
GetCurrentUser
().
NickName
;
app
.
view
.
Device
.
text
=
app
.
model
.
GetDevice
().
ToString
();
app
.
view
.
Database
.
text
=
app
.
model
.
GetDataBase
().
Name
;
DBManager
.
GetInstance
().
SetCurrentDB
(
app
.
model
.
GetDataBase
());
...
...
Assets/Scripts/Menus/Acquisition/View/AcquisitionView.cs
View file @
73e7fbb1
...
...
@@ -142,8 +142,8 @@ namespace Menus.Acquisition.View
foreach
(
UserData
user
in
listUsers
)
{
UserButton
newButton
=
Instantiate
(
userButton
,
ConfigContent
.
transform
,
false
);
newButton
.
gameObject
.
name
=
user
.
FirstName
+
" "
+
user
.
Last
Name
;
newButton
.
text
.
text
=
user
.
FirstName
+
" "
+
user
.
Last
Name
;
newButton
.
gameObject
.
name
=
user
.
Nick
Name
;
newButton
.
text
.
text
=
user
.
Nick
Name
;
newButton
.
user
=
user
;
newButton
.
button
.
onClick
.
AddListener
(()
=>
{
...
...
Assets/Scripts/Menus/Demonstration/Controller/DemonstrationController.cs
View file @
73e7fbb1
...
...
@@ -215,8 +215,8 @@ namespace Menus.Demonstration.Controller
private
string
GetUniqueFileName
()
{
return
app
.
model
.
GetCurrentUser
().
LastName
+
app
.
model
.
GetCurrentUser
().
First
Name
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd-HH-mm-ss"
);
return
app
.
model
.
GetCurrentUser
().
Nick
Name
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd-HH-mm-ss"
);
//à modifier ?
}
protected
override
void
Enter
()
...
...
@@ -250,7 +250,7 @@ namespace Menus.Demonstration.Controller
protected
void
OnUser
(
UserData
userSelected
)
{
app
.
model
.
SetCurrentUser
(
userSelected
);
app
.
view
.
currentConfigValue
.
text
=
userSelected
.
FirstName
+
" "
+
userSelected
.
Last
Name
;
app
.
view
.
currentConfigValue
.
text
=
userSelected
.
Nick
Name
;
}
protected
void
OnDevice
(
DevicesInfos
.
Device
device
)
...
...
Assets/Scripts/Menus/Demonstration/View/DemonstrationView.cs
View file @
73e7fbb1
...
...
@@ -63,8 +63,8 @@ namespace Menus.Demonstration.View
foreach
(
UserData
user
in
listUsers
)
{
UserButton
newButton
=
Instantiate
(
UserButton
,
ConfigContent
.
transform
,
false
);
newButton
.
gameObject
.
name
=
user
.
FirstName
+
" "
+
user
.
Last
Name
;
newButton
.
text
.
text
=
user
.
FirstName
+
" "
+
user
.
Last
Name
;
newButton
.
gameObject
.
name
=
user
.
Nick
Name
;
newButton
.
text
.
text
=
user
.
Nick
Name
;
newButton
.
user
=
user
;
newButton
.
button
.
onClick
.
AddListener
(()
=>
{
...
...
Assets/Scripts/Menus/UserApp/Controller/UserAppController.cs
View file @
73e7fbb1
...
...
@@ -169,7 +169,7 @@ public class UserAppController : MenuController<UserAppApplication>
protected
void
OnUser
(
UserData
userSelected
)
{
app
.
model
.
SetCurrentUser
(
userSelected
);
app
.
view
.
currentConfigValue
.
text
=
userSelected
.
FirstName
+
" "
+
userSelected
.
Last
Name
;
app
.
view
.
currentConfigValue
.
text
=
userSelected
.
Nick
Name
;
}
public
void
ClosePanels
()
...
...
Assets/Scripts/Menus/UserApp/View/UserAppView.cs
View file @
73e7fbb1
...
...
@@ -62,8 +62,8 @@ namespace Menus.UserApp.View
foreach
(
UserData
user
in
listUsers
)
{
UserButton
newButton
=
Instantiate
(
UserButton
,
ConfigContent
.
transform
,
false
);
newButton
.
gameObject
.
name
=
user
.
FirstName
+
" "
+
user
.
Last
Name
;
newButton
.
text
.
text
=
user
.
FirstName
+
" "
+
user
.
Last
Name
;
newButton
.
gameObject
.
name
=
user
.
Nick
Name
;
newButton
.
text
.
text
=
user
.
Nick
Name
;
newButton
.
user
=
user
;
newButton
.
button
.
onClick
.
AddListener
(()
=>
{
...
...
Assets/Scripts/Menus/UsersManagement/Controller/UsersManagementController.cs
View file @
73e7fbb1
...
...
@@ -69,7 +69,7 @@ namespace Menus.UsersManagement.Controller
protected
void
OnAddUserClicked
()
{
UserManager
.
GetInstance
().
AddUser
(
new
UserData
(
"Jean"
,
"
Dupont
"
,
"30"
,
"183"
,
"72"
,
"
right"
,
"true
"
));
UserManager
.
GetInstance
().
AddUser
(
new
UserData
(
"Jean"
,
"
jean@gmail.fr
"
,
"30"
,
"183"
,
"72"
,
"
left"
,
"okiugbh"
,
"Pgm1"
,
"0"
,
"[]
"
));
app
.
model
.
GetUsers
().
Clear
();
app
.
model
.
SetUsers
(
UserManager
.
GetInstance
().
GetUsers
());
app
.
view
.
RefreshUserList
();
...
...
Assets/Scripts/Menus/UsersManagement/View/UsersManagementView.cs
View file @
73e7fbb1
...
...
@@ -75,8 +75,8 @@ namespace Menus.UsersManagement.View
foreach
(
UserData
user
in
listUsers
)
{
UserButton
newButton
=
Instantiate
(
userButton
,
listUsersContent
.
transform
,
false
);
newButton
.
gameObject
.
name
=
user
.
FirstName
+
" "
+
user
.
Last
Name
;
newButton
.
text
.
text
=
user
.
FirstName
+
" "
+
user
.
Last
Name
;
newButton
.
gameObject
.
name
=
user
.
Nick
Name
;
newButton
.
text
.
text
=
user
.
Nick
Name
;
newButton
.
user
=
user
;
newButton
.
button
.
onClick
.
AddListener
(()
=>
this
.
SelectedUser
(
newButton
));
}
...
...
@@ -99,13 +99,16 @@ namespace Menus.UsersManagement.View
public
void
SaveClicked
()
{
UserData
saveUser
=
new
UserData
(
app
.
model
.
GetCurrentUser
().
Id
,
dicInputAttribute
[
"
First
Name"
].
input_text
.
text
,
dicInputAttribute
[
"
LastName
"
].
input_text
.
text
,
dicInputAttribute
[
"
Nick
Name"
].
input_text
.
text
,
dicInputAttribute
[
"
Mail
"
].
input_text
.
text
,
dicInputAttribute
[
"Age"
].
input_text
.
text
,
dicInputAttribute
[
"Weight"
].
input_text
.
text
,
dicInputAttribute
[
"Size"
].
input_text
.
text
,
dicInputAttribute
[
"Hand"
].
input_text
.
text
,
dicInputAttribute
[
"Beginner"
].
input_text
.
text
dicInputAttribute
[
"EncryptedPwd"
].
input_text
.
text
,
dicInputAttribute
[
"Program"
].
input_text
.
text
,
dicInputAttribute
[
"ProgramAdv"
].
input_text
.
text
,
dicInputAttribute
[
"PastInfos"
].
input_text
.
text
);
UsersManagementNotification
.
SaveUserClicked
(
saveUser
);
}
...
...
Assets/Scripts/Recognizer/DataTools/GestureDataInkML.cs
View file @
73e7fbb1
...
...
@@ -44,13 +44,17 @@ namespace Recognizer
"</annotation>"
+
"\n\t</annotationXML>"
+
"\n\t<annotationXML type='user'>"
+
"\n\t\t<annotation type='
last
Name'>"
+
_currentUser
.
Last
Name
+
"</annotation>"
+
"\n\t\t<annotation type='
firstName
'>"
+
_currentUser
.
FirstName
+
"</annotation>"
+
"\n\t\t<annotation type='
nick
Name'>"
+
_currentUser
.
Nick
Name
+
"</annotation>"
+
"\n\t\t<annotation type='
mail
'>"
+
_currentUser
.
Mail
+
"</annotation>"
+
"\n\t\t<annotation type='age'>"
+
_currentUser
.
Age
+
"</annotation>"
+
"\n\t\t<annotation type='weight'>"
+
_currentUser
.
Weight
+
"</annotation>"
+
"\n\t\t<annotation type='size'>"
+
_currentUser
.
Size
+
"</annotation>"
+
"\n\t\t<annotation type='hand'>"
+
_currentUser
.
Hand
+
"</annotation>"
+
"\n\t\t<annotation type='userId'>"
+
_currentUser
.
Id
+
"</annotation>"
+
"\n\t\t<annotation type='program'>"
+
_currentUser
.
Program
+
"</annotation>"
+
"\n\t\t<annotation type='programAdv'>"
+
_currentUser
.
ProgramAdv
+
"</annotation>"
+
"\n\t\t<annotation type='pastInfos'>"
+
_currentUser
.
PastInfos
+
"</annotation>"
+
"\n\t\t<annotation type='pwd'>"
+
_currentUser
.
EncryptedPwd
+
"</annotation>"
+
"\n\t</annotationXML>"
+
directives
;
string
rawdata
=
"\n\t<traceGroup>"
;
...
...
Assets/Scripts/Recognizer/DataTools/UserData.cs
View file @
73e7fbb1
...
...
@@ -38,7 +38,7 @@ public class UserData
Constructor for UserData
*/
public
UserData
(
string
NickName
,
string
Mail
,
string
age
,
string
weight
,
string
size
,
string
EncryptedPwd
,
string
Program
,
string
ProgramAdv
,
string
PastInfos
)
public
UserData
(
string
NickName
,
string
Mail
,
string
age
,
string
weight
,
string
size
,
string
hand
,
string
EncryptedPwd
,
string
Program
,
string
ProgramAdv
,
string
PastInfos
)
{
Id
=
Guid
.
NewGuid
().
ToString
(
"N"
);
this
.
NickName
=
NickName
;
...
...
@@ -53,7 +53,7 @@ public class UserData
this
.
PastInfos
=
PastInfos
;
}
public
UserData
(
string
id
,
string
NickName
,
string
Mail
,
string
age
,
string
weight
,
string
size
,
string
EncryptedPwd
,
string
Program
,
string
ProgramAdv
,
string
PastInfos
)
public
UserData
(
string
id
,
string
NickName
,
string
Mail
,
string
age
,
string
weight
,
string
size
,
string
hand
,
string
EncryptedPwd
,
string
Program
,
string
ProgramAdv
,
string
PastInfos
)
{
this
.
Id
=
id
;
this
.
NickName
=
NickName
;
...
...
ProjectSettings/ProjectVersion.txt
View file @
73e7fbb1
m_EditorVersion: 2019.2.
21
f1
m_EditorVersionWithRevision: 2019.2.
21
f1 (
9d528d026557
)
m_EditorVersion: 2019.2.
9
f1
m_EditorVersionWithRevision: 2019.2.
9
f1 (
ebce4d76e6e8
)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment