mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-06-03 18:31:12 +00:00
Changed, UDMF: rearranged linedef activation flags to make their order more logical.
Linedef/Thing Edit forms: cosmetic changes to named/numbered script drop-down locations.
This commit is contained in:
parent
0374a0bf90
commit
b047dc4ae1
7 changed files with 31 additions and 12 deletions
|
@ -392,7 +392,6 @@ mapformat_udmf
|
||||||
// LINEDEF ACTIVATIONS
|
// LINEDEF ACTIVATIONS
|
||||||
linedefactivations
|
linedefactivations
|
||||||
{
|
{
|
||||||
include("UDMF_misc.cfg", "linedefactivations");
|
|
||||||
include("ZDoom_misc.cfg", "linedefactivations_udmf");
|
include("ZDoom_misc.cfg", "linedefactivations_udmf");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,9 +57,19 @@ linedefflags_udmf
|
||||||
|
|
||||||
linedefactivations_udmf
|
linedefactivations_udmf
|
||||||
{
|
{
|
||||||
firstsideonly = "Front side only";
|
repeatspecial = "Repeatable action";
|
||||||
checkswitchrange = "Switch height check";
|
playeruse = "When player presses use";
|
||||||
|
playercross = "When player walks over";
|
||||||
|
playerpush = "When player bumps";
|
||||||
|
monsteruse = "When monster presses use";
|
||||||
|
monstercross = "When monster walks over";
|
||||||
|
monsterpush = "When monsters bumps";
|
||||||
anycross = "Any crossing non-missile activates";
|
anycross = "Any crossing non-missile activates";
|
||||||
|
missilecross = "When projectile crosses";
|
||||||
|
impact = "On projectile impact";
|
||||||
|
checkswitchrange = "Switch height check";
|
||||||
|
passuse = "Pass use on";
|
||||||
|
firstsideonly = "Front side only";
|
||||||
playeruseback = "Player can use from back side";
|
playeruseback = "Player can use from back side";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -607,8 +607,12 @@ namespace CodeImp.DoomBuilder.Config
|
||||||
linedefactivates.Add(new LinedefActivateInfo(de.Key.ToString(), de.Value.ToString()));
|
linedefactivates.Add(new LinedefActivateInfo(de.Key.ToString(), de.Value.ToString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort the list
|
//mxd. Sort only when activations are numeric
|
||||||
linedefactivates.Sort();
|
MapSetIO io = MapSetIO.Create(formatinterface);
|
||||||
|
if(io.HasNumericLinedefActivations)
|
||||||
|
{
|
||||||
|
linedefactivates.Sort();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Linedef generalized actions
|
// Linedef generalized actions
|
||||||
|
|
|
@ -125,7 +125,7 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
backlow.Initialize();
|
backlow.Initialize();
|
||||||
|
|
||||||
//mxd. Setup script numbers
|
//mxd. Setup script numbers
|
||||||
scriptNumbers.Location = arg0.Location;
|
scriptNumbers.Location = new Point(arg0.Location.X, arg0.Location.Y + 2);
|
||||||
|
|
||||||
foreach(ScriptItem si in General.Map.NumberedScripts)
|
foreach(ScriptItem si in General.Map.NumberedScripts)
|
||||||
scriptNumbers.Items.Add(si);
|
scriptNumbers.Items.Add(si);
|
||||||
|
@ -422,6 +422,7 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
private void UpdateScriptControls()
|
private void UpdateScriptControls()
|
||||||
{
|
{
|
||||||
scriptNumbers.Visible = (Array.IndexOf(GZBuilder.GZGeneral.ACS_SPECIALS, action.Value) != -1);
|
scriptNumbers.Visible = (Array.IndexOf(GZBuilder.GZGeneral.ACS_SPECIALS, action.Value) != -1);
|
||||||
|
arg0.Visible = !scriptNumbers.Visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -216,12 +216,12 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
backlow.Initialize();
|
backlow.Initialize();
|
||||||
|
|
||||||
//mxd. Setup script numbers
|
//mxd. Setup script numbers
|
||||||
scriptNumbers.Location = arg0.Location;
|
scriptNumbers.Location = new Point(arg0.Location.X, arg0.Location.Y + 2);
|
||||||
foreach(ScriptItem si in General.Map.NumberedScripts) scriptNumbers.Items.Add(si);
|
foreach(ScriptItem si in General.Map.NumberedScripts) scriptNumbers.Items.Add(si);
|
||||||
scriptNumbers.DropDownWidth = Tools.GetDropDownWidth(scriptNumbers);
|
scriptNumbers.DropDownWidth = Tools.GetDropDownWidth(scriptNumbers);
|
||||||
|
|
||||||
//mxd. Setup script names
|
//mxd. Setup script names
|
||||||
scriptNames.Location = arg0.Location;
|
scriptNames.Location = scriptNumbers.Location;
|
||||||
foreach(ScriptItem nsi in General.Map.NamedScripts) scriptNames.Items.Add(nsi);
|
foreach(ScriptItem nsi in General.Map.NamedScripts) scriptNames.Items.Add(nsi);
|
||||||
scriptNames.DropDownWidth = Tools.GetDropDownWidth(scriptNames);
|
scriptNames.DropDownWidth = Tools.GetDropDownWidth(scriptNames);
|
||||||
|
|
||||||
|
@ -693,6 +693,8 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
scriptNumbers.Visible = false;
|
scriptNumbers.Visible = false;
|
||||||
cbArgStr.Checked = false;
|
cbArgStr.Checked = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
arg0.Visible = (!scriptNames.Visible && !scriptNumbers.Visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
//mxd
|
//mxd
|
||||||
|
|
|
@ -114,7 +114,7 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
}
|
}
|
||||||
else //mxd. Setup script numbers
|
else //mxd. Setup script numbers
|
||||||
{
|
{
|
||||||
scriptNumbers.Location = arg0.Location;
|
scriptNumbers.Location = new Point(arg0.Location.X, arg0.Location.Y + 2);
|
||||||
|
|
||||||
foreach(ScriptItem si in General.Map.NumberedScripts)
|
foreach(ScriptItem si in General.Map.NumberedScripts)
|
||||||
scriptNumbers.Items.Add(si);
|
scriptNumbers.Items.Add(si);
|
||||||
|
@ -306,6 +306,7 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
private void UpdateScriptControls()
|
private void UpdateScriptControls()
|
||||||
{
|
{
|
||||||
scriptNumbers.Visible = (Array.IndexOf(GZBuilder.GZGeneral.ACS_SPECIALS, action.Value) != -1);
|
scriptNumbers.Visible = (Array.IndexOf(GZBuilder.GZGeneral.ACS_SPECIALS, action.Value) != -1);
|
||||||
|
arg0.Visible = !scriptNumbers.Visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -137,8 +137,8 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
fieldslist.ListFixedFields(General.Map.Config.ThingFields);
|
fieldslist.ListFixedFields(General.Map.Config.ThingFields);
|
||||||
|
|
||||||
// Tag/Effects
|
// Tag/Effects
|
||||||
scriptNames.Location = arg0.Location;
|
scriptNumbers.Location = new Point(arg0.Location.X, arg0.Location.Y + 2);
|
||||||
scriptNumbers.Location = arg0.Location;
|
scriptNames.Location = scriptNumbers.Location;
|
||||||
|
|
||||||
// Setup script names
|
// Setup script names
|
||||||
foreach(ScriptItem nsi in General.Map.NamedScripts) scriptNames.Items.Add(nsi);
|
foreach(ScriptItem nsi in General.Map.NamedScripts) scriptNames.Items.Add(nsi);
|
||||||
|
@ -402,6 +402,8 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
scriptNumbers.Visible = false;
|
scriptNumbers.Visible = false;
|
||||||
cbArgStr.Checked = false;
|
cbArgStr.Checked = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
arg0.Visible = (!scriptNames.Visible && !scriptNumbers.Visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue