Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GlitterWorld Prime Mod
Release build
Commits
21dd8a55
Commit
21dd8a55
authored
Aug 03, 2019
by
Adam Leyshon
Browse files
Merge branch 'develop' into 'master'
Develop See merge request GWP/Release!8
parents
8af1bd65
809cd3fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
Glitterworld Prime/DialogPrimeTrade.cs
Glitterworld Prime/DialogPrimeTrade.cs
+16
-9
Glitterworld Prime/Properties/AssemblyInfo.cs
Glitterworld Prime/Properties/AssemblyInfo.cs
+2
-2
Glitterworld Prime/Utilities.cs
Glitterworld Prime/Utilities.cs
+0
-2
No files found.
Glitterworld Prime/DialogPrimeTrade.cs
View file @
21dd8a55
...
...
@@ -415,20 +415,27 @@ namespace Glitterworld_Prime
// Enumerate list of ThingCategoryDef and add to menu options.
var
allDefsListForReading
=
DefDatabase
<
ThingCategoryDef
>.
AllDefsListForReading
;
for
(
var
i
=
0
;
i
<
allDefsListForReading
.
Count
;
i
++
)
for
each
(
var
def
in
allDefsListForReading
)
{
var
def
=
allDefsListForReading
[
i
];
try
{
if
(
def
.
LabelCap
.
NullOrEmpty
())
{
LogWriter
.
WriteMessage
(
$"ThingCategoryDef
{
def
.
defName
}
has no label!, Not able to filter by this, skipping. Please report to Mod Author."
);
continue
;
}
if
(
def
.
LabelCap
.
NullOrEmpty
())
// We'll never deal with corpses so don't show them.
if
(
def
.
LabelCap
.
ToLower
().
Contains
(
"corpse"
))
continue
;
list
.
Add
(
new
FloatMenuOption
(
def
.
LabelCap
,
delegate
{
filterSetter
(
def
);
}));
}
catch
(
Exception
e
)
{
LogWriter
.
WriteMessage
(
$"ThingCategoryDef
{
def
.
defName
}
has no label!, Not able to filter by this, skipping. Please report to Mod Author."
);
Utilities
.
CaptureError
(
e
);
continue
;
}
// We'll never deal with corpses so don't show them.
if
(!
def
.
LabelCap
.
ToLower
().
Contains
(
"corpse"
))
list
.
Add
(
new
FloatMenuOption
(
def
.
LabelCap
,
delegate
{
filterSetter
(
def
);
}));
}
Find
.
WindowStack
.
Add
(
new
FloatMenu
(
list
));
...
...
Glitterworld Prime/Properties/AssemblyInfo.cs
View file @
21dd8a55
...
...
@@ -40,5 +40,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[
assembly
:
AssemblyVersion
(
"1.0.2.
2
"
)]
[
assembly
:
AssemblyFileVersion
(
"1.0.2.
2
"
)]
[
assembly
:
AssemblyVersion
(
"1.0.2.
3
"
)]
[
assembly
:
AssemblyFileVersion
(
"1.0.2.
3
"
)]
Glitterworld Prime/Utilities.cs
View file @
21dd8a55
...
...
@@ -46,8 +46,6 @@ namespace Glitterworld_Prime
internal
static
void
CaptureError
(
Exception
exception
)
{
LogWriter
.
WriteMessage
(
"Not forcing stacktrace"
);
var
e
=
new
SentryEvent
(
exception
);
// Get User ID / Type
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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