Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
UltimateZoneBuilder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alam Ed Arias
UltimateZoneBuilder
Commits
e62146f4
Commit
e62146f4
authored
15 years ago
by
codeimp
Browse files
Options
Downloads
Patches
Plain Diff
- Reset default drawing textures when map options are changed
- Fixed some minor bugs in the choice of default drawing textures
parent
2485c5b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/Core/Config/ProgramConfiguration.cs
+19
-13
19 additions, 13 deletions
Source/Core/Config/ProgramConfiguration.cs
Source/Core/Windows/MapOptionsForm.cs
+5
-0
5 additions, 0 deletions
Source/Core/Windows/MapOptionsForm.cs
with
24 additions
and
13 deletions
Source/Core/Config/ProgramConfiguration.cs
+
19
−
13
View file @
e62146f4
...
...
@@ -425,16 +425,19 @@ namespace CodeImp.DoomBuilder.Config
}
// Pick the first FLOOR from the list.
foreach
(
string
s
in
General
.
Map
.
Data
.
FlatNames
)
if
(!
foundone
)
{
if
(
s
.
StartsWith
(
"FLOOR"
)
)
foreach
(
string
s
in
General
.
Map
.
Data
.
FlatNames
)
{
foundone
=
true
;
defaultfloortexture
=
s
;
break
;
if
(
s
.
StartsWith
(
"FLOOR"
))
{
foundone
=
true
;
defaultfloortexture
=
s
;
break
;
}
}
}
// Otherwise just pick the first
if
(!
foundone
)
{
...
...
@@ -454,17 +457,20 @@ namespace CodeImp.DoomBuilder.Config
defaultceiltexture
=
General
.
GetByIndex
(
General
.
Map
.
Map
.
Sectors
,
0
).
CeilTexture
;
}
// Pick the first
FLOOR
from the list.
foreach
(
string
s
in
General
.
Map
.
Data
.
FlatNames
)
// Pick the first
CEIL
from the list.
if
(!
foundone
)
{
if
(
s
.
StartsWith
(
"FLOOR"
)
)
foreach
(
string
s
in
General
.
Map
.
Data
.
FlatNames
)
{
foundone
=
true
;
defaultceiltexture
=
s
;
break
;
if
(
s
.
StartsWith
(
"CEIL"
))
{
foundone
=
true
;
defaultceiltexture
=
s
;
break
;
}
}
}
// Otherwise just pick the first
if
(!
foundone
)
{
...
...
This diff is collapsed.
Click to expand it.
Source/Core/Windows/MapOptionsForm.cs
+
5
−
0
View file @
e62146f4
...
...
@@ -183,6 +183,11 @@ namespace CodeImp.DoomBuilder.Windows
options
.
StrictPatches
=
strictpatches
.
Checked
;
options
.
CopyResources
(
datalocations
.
GetResources
());
// Reset default drawing textures
General
.
Settings
.
DefaultTexture
=
null
;
General
.
Settings
.
DefaultFloorTexture
=
null
;
General
.
Settings
.
DefaultCeilingTexture
=
null
;
// Hide window
this
.
DialogResult
=
DialogResult
.
OK
;
this
.
Close
();
...
...
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