Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
StudyFramework Plugin
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
StudyFramework Plugin
Commits
9df7956a
Commit
9df7956a
authored
1 year ago
by
Malte Christian Kögel
Browse files
Options
Downloads
Patches
Plain Diff
Added DEBUG MODE message to csv-logs
parent
6a50dfc9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/StudyFrameworkPlugin/Private/HUD/SFHUDWidget.cpp
+0
-4
0 additions, 4 deletions
Source/StudyFrameworkPlugin/Private/HUD/SFHUDWidget.cpp
Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp
+3
-0
3 additions, 0 deletions
Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp
with
3 additions
and
4 deletions
Source/StudyFrameworkPlugin/Private/HUD/SFHUDWidget.cpp
+
0
−
4
View file @
9df7956a
...
@@ -89,7 +89,6 @@ void USFHUDWidget::AddLogMessage(const FString& Text)
...
@@ -89,7 +89,6 @@ void USFHUDWidget::AddLogMessage(const FString& Text)
void
USFHUDWidget
::
ClearWidget
()
void
USFHUDWidget
::
ClearWidget
()
{
{
//TODO Clear Debug as well? When is this called?
SetCondition
({});
SetCondition
({});
SetParticipant
(
"???"
);
SetParticipant
(
"???"
);
SetPhase
(
"???"
);
SetPhase
(
"???"
);
...
@@ -99,7 +98,6 @@ void USFHUDWidget::ClearWidget()
...
@@ -99,7 +98,6 @@ void USFHUDWidget::ClearWidget()
FHUDSavedData
USFHUDWidget
::
GetData
()
FHUDSavedData
USFHUDWidget
::
GetData
()
{
{
FHUDSavedData
Data
;
FHUDSavedData
Data
;
//Data.bInDebugMode = bInDebugMode; // TODO: Do we want to save, whether data has been collected in debug mode? Or should we treat it the same? What happens, if the first half is collected in debug mode, the second half in normal mode
Data
.
Status
=
StatusTextBox
->
GetText
().
ToString
();
Data
.
Status
=
StatusTextBox
->
GetText
().
ToString
();
Data
.
Participant
=
ParticipantTextBox
->
GetText
().
ToString
();
Data
.
Participant
=
ParticipantTextBox
->
GetText
().
ToString
();
Data
.
Phase
=
PhaseTextBox
->
GetText
().
ToString
();
Data
.
Phase
=
PhaseTextBox
->
GetText
().
ToString
();
...
@@ -110,8 +108,6 @@ FHUDSavedData USFHUDWidget::GetData()
...
@@ -110,8 +108,6 @@ FHUDSavedData USFHUDWidget::GetData()
void
USFHUDWidget
::
SetData
(
FHUDSavedData
Data
)
void
USFHUDWidget
::
SetData
(
FHUDSavedData
Data
)
{
{
//TODO Do we want this?
//SetbInDebugMode(bInDebugMode);
if
(
Data
.
Status
.
StartsWith
(
"Status:"
))
if
(
Data
.
Status
.
StartsWith
(
"Status:"
))
StatusTextBox
->
SetText
(
FText
::
FromString
(
Data
.
Status
));
StatusTextBox
->
SetText
(
FText
::
FromString
(
Data
.
Status
));
else
else
...
...
This diff is collapsed.
Click to expand it.
Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp
+
3
−
0
View file @
9df7956a
...
@@ -765,6 +765,9 @@ void USFGameInstance::OnFadedIn()
...
@@ -765,6 +765,9 @@ void USFGameInstance::OnFadedIn()
if
(
Participant
&&
Participant
->
GetCurrentCondition
())
if
(
Participant
&&
Participant
->
GetCurrentCondition
())
{
{
//this should be logged first
//this should be logged first
if
(
bInDebugMode
)
{
USFLoggingBPLibrary
::
LogComment
(
"Running in DEBUG MODE"
);
}
USFLoggingBPLibrary
::
LogComment
(
"Start Condition: "
+
Participant
->
GetCurrentCondition
()
->
GetPrettyName
());
USFLoggingBPLibrary
::
LogComment
(
"Start Condition: "
+
Participant
->
GetCurrentCondition
()
->
GetPrettyName
());
}
}
...
...
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