mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-04-22 01:10:57 +00:00
Hide Parameter box for non-SRB2 maps
This commit is contained in:
parent
0c1ab582a7
commit
b85f90712c
1 changed files with 6 additions and 1 deletions
|
@ -83,6 +83,8 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
AddThingCategories(General.Map.Data.ThingCategories, typelist.Nodes); //mxd
|
||||
doupdatenode = true;
|
||||
doupdatetextbox = true;
|
||||
parametercaption.Visible = General.Map.SRB2;
|
||||
parameterid.Visible = General.Map.SRB2;
|
||||
}
|
||||
|
||||
//mxd. This recursively creates thing category tree nodes. Returns true when a thing in this category is obsolete
|
||||
|
@ -201,7 +203,10 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
|
||||
public int GetFullType(int original)
|
||||
{
|
||||
return GetResult(original % 4096) + parameterid.GetResult(original / 4096) * 4096;
|
||||
if (General.Map.SRB2)
|
||||
return GetResult(original % 4096) + parameterid.GetResult(original / 4096) * 4096;
|
||||
else
|
||||
return GetResult(original);
|
||||
}
|
||||
|
||||
//mxd
|
||||
|
|
Loading…
Reference in a new issue