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
706317a6
Commit
706317a6
authored
14 years ago
by
codeimp
Browse files
Options
Downloads
Patches
Plain Diff
@ same as r1422 but for actions and arguments on things
parent
01c071de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Core/Windows/ThingEditForm.cs
+15
-0
15 additions, 0 deletions
Source/Core/Windows/ThingEditForm.cs
with
15 additions
and
0 deletions
Source/Core/Windows/ThingEditForm.cs
+
15
−
0
View file @
706317a6
...
...
@@ -45,6 +45,7 @@ namespace CodeImp.DoomBuilder.Windows
private
ICollection
<
Thing
>
things
;
private
List
<
TreeNode
>
nodes
;
private
ThingTypeInfo
thinginfo
;
private
bool
preventchanges
=
false
;
#
endregion
...
...
@@ -95,6 +96,8 @@ namespace CodeImp.DoomBuilder.Windows
{
Thing
ft
;
preventchanges
=
true
;
// Keep this list
this
.
things
=
things
;
if
(
things
.
Count
>
1
)
this
.
Text
=
"Edit Things ("
+
things
.
Count
+
")"
;
...
...
@@ -170,6 +173,8 @@ namespace CodeImp.DoomBuilder.Windows
// Custom fields
fieldslist
.
SetValues
(
t
.
Fields
,
false
);
}
preventchanges
=
false
;
}
#
endregion
...
...
@@ -244,6 +249,16 @@ namespace CodeImp.DoomBuilder.Windows
arg2
.
Setup
(
arginfo
[
2
]);
arg3
.
Setup
(
arginfo
[
3
]);
arg4
.
Setup
(
arginfo
[
4
]);
// Zero all arguments when linedef action 0 (normal) is chosen
if
(!
preventchanges
&&
(
showaction
==
0
))
{
arg0
.
SetValue
(
0
);
arg1
.
SetValue
(
0
);
arg2
.
SetValue
(
0
);
arg3
.
SetValue
(
0
);
arg4
.
SetValue
(
0
);
}
}
// Browse Action clicked
...
...
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