Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Virtual Acoustics 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
Virtual Acoustics Plugin
Commits
7b8867c0
Commit
7b8867c0
authored
4 years ago
by
Ehret
Browse files
Options
Downloads
Patches
Plain Diff
minor improvement to error message boxes
parent
729a8c20
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Source/VAPlugin/Private/VAPlugin.cpp
+2
-2
2 additions, 2 deletions
Source/VAPlugin/Private/VAPlugin.cpp
Source/VAPlugin/Private/VAUtils.cpp
+2
-30
2 additions, 30 deletions
Source/VAPlugin/Private/VAUtils.cpp
Source/VAPlugin/Private/VAUtils.h
+1
-2
1 addition, 2 deletions
Source/VAPlugin/Private/VAUtils.h
with
5 additions
and
34 deletions
Source/VAPlugin/Private/VAPlugin.cpp
+
2
−
2
View file @
7b8867c0
...
@@ -95,8 +95,8 @@ void FVAPlugin::ProcessException(const FString Location, const CVAException Exce
...
@@ -95,8 +95,8 @@ void FVAPlugin::ProcessException(const FString Location, const CVAException Exce
void
FVAPlugin
::
ProcessException
(
const
FString
Location
,
const
FString
ExceptionString
)
void
FVAPlugin
::
ProcessException
(
const
FString
Location
,
const
FString
ExceptionString
)
{
{
FString
output
=
"
[FVAPlugin::ProcessException()]:
Exception from ["
;
FString
output
=
"Exception from ["
;
output
.
Append
(
Location
).
Append
(
"] with error message:
"
).
Append
(
ExceptionString
);
output
.
Append
(
Location
).
Append
(
"] with error message:
\n
"
).
Append
(
ExceptionString
);
FVAUtils
::
LogStuff
(
output
,
true
);
FVAUtils
::
LogStuff
(
output
,
true
);
FVAUtils
::
OpenMessageBox
(
output
,
true
);
FVAUtils
::
OpenMessageBox
(
output
,
true
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Source/VAPlugin/Private/VAUtils.cpp
+
2
−
30
View file @
7b8867c0
...
@@ -15,38 +15,10 @@ void FVAUtils::OpenMessageBox(const FString Text, const bool bError)
...
@@ -15,38 +15,10 @@ void FVAUtils::OpenMessageBox(const FString Text, const bool bError)
return
;
return
;
}
}
FString
TrueStatement
;
FText
Title
=
FText
::
FromString
(
FString
(
bError
?
"ERROR"
:
"Message"
));
if
(
bError
)
FMessageDialog
::
Open
(
EAppMsgType
::
Ok
,
FText
::
FromString
(
Text
),
&
Title
);
{
TrueStatement
=
"TRUE"
;
}
}
else
{
TrueStatement
=
"FALSE"
;
}
LogStuff
(
"[FVAUtils::OpenMessageBox(ERROR = "
+
TrueStatement
+
")]: Opening Message Box with message: "
+
Text
);
if
(
bError
)
{
FMessageDialog
::
Open
(
EAppMsgType
::
Ok
,
FText
::
FromString
(
AddExclamationMarkAroundChar
(
Text
)));
}
else
{
FMessageDialog
::
Open
(
EAppMsgType
::
Ok
,
FText
::
FromString
(
Text
));
}
}
FString
FVAUtils
::
AddExclamationMarkAroundChar
(
const
FString
Text
)
{
size_t
Length
=
Text
.
Len
();
FString
ReturnedString
=
FString
(
"!!!!!"
);
ReturnedString
.
Append
(
Text
).
Append
(
"!!!!!"
);
return
ReturnedString
;
}
bool
FVAUtils
::
CheckLibraryHandle
(
const
void
*
LibraryHandle
)
bool
FVAUtils
::
CheckLibraryHandle
(
const
void
*
LibraryHandle
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Source/VAPlugin/Private/VAUtils.h
+
1
−
2
View file @
7b8867c0
...
@@ -18,7 +18,6 @@ public:
...
@@ -18,7 +18,6 @@ public:
// Open Message Box with Text. bool error expresses whether to use excl. marks ++ //
// Open Message Box with Text. bool error expresses whether to use excl. marks ++ //
static
void
OpenMessageBox
(
FString
Text
,
bool
bError
=
false
);
static
void
OpenMessageBox
(
FString
Text
,
bool
bError
=
false
);
static
FString
AddExclamationMarkAroundChar
(
FString
Text
);
// Checking LibraryHandle //
// Checking LibraryHandle //
static
bool
CheckLibraryHandle
(
const
void
*
LibraryHandle
);
static
bool
CheckLibraryHandle
(
const
void
*
LibraryHandle
);
...
...
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