mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-06-04 19:01:18 +00:00
Fixed, Visual mode: in some cases translucency was ignored on inner top sides of translucent 3d floors.
Internal, Script Editor: moved some setup/auto-completion logic to separate classes. Updated ZDoom_DECORATE.cfg (A_QuakeEx).
This commit is contained in:
parent
24439cd156
commit
411368307f
14 changed files with 753 additions and 541 deletions
41
Source/Core/Data/Scripting/DecorateScriptHandler.cs
Normal file
41
Source/Core/Data/Scripting/DecorateScriptHandler.cs
Normal file
|
@ -0,0 +1,41 @@
|
|||
#region ================== Namespaces
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
using CodeImp.DoomBuilder.Compilers;
|
||||
using CodeImp.DoomBuilder.Config;
|
||||
using CodeImp.DoomBuilder.Controls;
|
||||
using CodeImp.DoomBuilder.ZDoom.Scripting;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace CodeImp.DoomBuilder.Data.Scripting
|
||||
{
|
||||
[ScriptHandler(ScriptType.DECORATE)]
|
||||
internal class DecorateScriptHandler : ScriptHandler
|
||||
{
|
||||
#region ================== Methods
|
||||
|
||||
//TODO: Remove ScriptDocumentTab from here
|
||||
public override List<CompilerError> UpdateFunctionBarItems(ScriptDocumentTab tab, MemoryStream stream, ComboBox target)
|
||||
{
|
||||
List<CompilerError> result = new List<CompilerError>();
|
||||
if(stream == null) return result;
|
||||
target.Items.Clear();
|
||||
|
||||
DecorateParserSE parser = new DecorateParserSE();
|
||||
TextResourceData data = new TextResourceData(stream, new DataLocation(), "DECORATE", false);
|
||||
|
||||
if(parser.Parse(data, false))
|
||||
target.Items.AddRange(parser.Actors.ToArray());
|
||||
|
||||
if(parser.HasError)
|
||||
result.Add(new CompilerError(parser.ErrorDescription, parser.ErrorSource, parser.ErrorLine));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue