Commit graph

1798 commits

Author SHA1 Message Date
biwa
d831d22217 Visual Mode: fixed a problem where wide classic skies were not rendered with the correct orientation 2020-10-29 20:21:42 +01:00
biwa
bb5780cf28 Thing/Linedef/Sector editing dialog: fixed a crash when pressing the up key in the action input box when the last action is selected. Fixes #493. 2020-10-25 01:52:49 +02:00
biwa
8330c70a41 Configuration file parser: floating point numbers without the "f" suffix are now parsed as double precision floating point numbers 2020-10-24 23:27:04 +02:00
biwa
0fc2296ce9 ACS parser: fixed a bug that prevented scripts from being recognized when the previous line ended with an empty line comment 2020-10-24 21:23:06 +02:00
biwa
ee6aad4150 Texture browser: filtering for a texture name now automatically selects the best matching texture name. Addresses #483. 2020-10-23 23:30:07 +02:00
biwa
09e40d2bae DECALDEF parser: fixed a crash when there are duplicate decal group entries in the DECALDEF files 2020-10-23 21:04:49 +02:00
biwa
9c10069d58 Visual Mode: improved support for GZDoom UDMF rendering styles. Partially addresses #485 2020-10-19 21:42:34 +02:00
biwa
79a507a8a7 DECALDEF parser: fixed a crash when there are duplicate entries in the DECALDEF files 2020-10-17 23:11:44 +02:00
biwa
722c79d894 Added preliminary DECALDEFS support. Parsing works, indexed decals and decal groups can be selected as the first argument of the Decal thing. Decals are not displayed in Visual Mode, decals without an index are not supported 2020-10-11 22:36:07 +02:00
biwa
3af704b7a6 Fixed a bug where PNG sprites without an offset incorrectly had their offset centered instead of using (0, 0) 2020-10-11 13:18:08 +02:00
biwa
50c00991d3 Fixed typo. 2020-10-11 01:07:36 +02:00
biwa
c0984c8b67 When loading UDMF maps and fields that have NaN (not a number) as a value are encountered those fields will now be dropped permanently. A warning that this happens will be displayed in the Errors and Warnings dialog. 2020-10-11 00:31:55 +02:00
biwa
a2c87358ea Merge branch 'master' of https://github.com/jewalky/UltimateDoomBuilder 2020-10-04 10:21:35 +02:00
biwa
22f7e99803 Fixed a crash when switching into Sectors Mode when there are no vertices in the map, but things 2020-10-04 10:21:13 +02:00
Magnus Norddahl
a66d4e72f2 Oops, forgot one flipped #if while testing 2020-10-03 23:34:07 +02:00
Magnus Norddahl
a608ad71fa For mono, put clipboard data in text/base64 form instead of relying on a memory stream 2020-10-03 23:33:04 +02:00
Magnus Norddahl
275b841e31 Merge branch 'texteditor' 2020-10-02 01:37:33 +02:00
Magnus Norddahl
160882a962 Fix null pointer that builds in Windows apparently didn't care about 2020-10-02 01:35:44 +02:00
Magnus Norddahl
61788e2be2 TabControlEX doesn't work with mono (why am I not surprised? xamarin, I want my money back!!) 2020-10-02 01:09:06 +02:00
Magnus Norddahl
a091225483 Update project file 2020-10-02 00:46:08 +02:00
Magnus Norddahl
3cdfc99f8e Remove NoScintilla.cs as it is no longer needed 2020-10-02 00:41:48 +02:00
Magnus Norddahl
f3dea17d1c Case sensitivity for the loss! 2020-10-02 00:37:06 +02:00
Magnus Norddahl
b330e61512 Create a minimal text editor implementation for mono where scintilla isn't available 2020-10-02 00:20:23 +02:00
Magnus Norddahl
e390bce8f6 Find the exact Scintilla.NET API used by UDB and create a stub implementation so that it builds without 2020-09-30 03:34:11 +02:00
Magnus Norddahl
d919570818 Workaround mono winforms clipboard bug 2020-09-29 23:41:45 +02:00
biwa
8e043aa875
Added support for loading PK3s in read-only mode (#477) 2020-09-27 15:05:27 +02:00
biwa
8064bc63b7 Added option in Preferences -> Appearance -> Rendering to toggle showing of the FPS counter in Visual Mode (disabled by default) 2020-09-26 18:15:01 +02:00
Kevin Caccamo
0b4b781980
Check whether geobuffers is null before indexing it
This is an attempt to fix #474
2020-09-24 20:52:33 -04:00
biwa
cd8d73d4cb Fixed problem when #include'ing files from a directory structure and using different directory path separators than the current OS's ones. Fixes #470. 2020-09-19 20:34:32 +02:00
biwa
3626d5d6ca Reverted changes from be1fab9f65 because it severely broke the additional mode buttons in the main menu. 2020-09-19 08:59:19 +02:00
Magnus Norddahl
be1fab9f65 Fix layout issue with the menu in mono winforms 2020-09-15 00:46:41 +02:00
Magnus Norddahl
353c714efc A few more hacks for the wonderful mono implementation of winforms 2020-09-15 00:41:53 +02:00
Magnus Norddahl
90831bd630 Fix cursor visible on Linux when in 3D mode 2020-09-13 23:43:11 +02:00
Magnus Norddahl
b740cadc13 Fix menubar getting the focus all the time on Linux 2020-09-13 23:01:38 +02:00
Kevin Caccamo
fdfeba1731
Fix some input issues on non-Windows systems (PR#467 by Talon1024)
* Fix some input issues on non-Windows systems

Disable the main menu bar when the 3D view is active.
Disable mouse input processing and "exclusive mouse input" until each editing dialog closes.

* Enable front/backgroup in LinedefEditForm{,UDMF} in the Setup method

The Setup method is called to specify which linedefs are being edited by the LinedefEditForm, and set up the dialog appropriately, so the front/backgroup should be enabled in the Setup method, at the same time the front/backside check boxes are checked or unchecked.
2020-09-13 19:40:09 +03:00
biwa
3218218dcc Fixed a crash when trying to load files that do not exist 2020-09-13 10:45:30 +02:00
Magnus Norddahl
626af9e85e
Merge pull request #448 from Talon1024/fix/UnixCaseSensitivity
Attempt to improve Unix filesystem support
2020-09-12 15:42:29 +02:00
alexey.lysiuk
a5672c19c5 Fix compilation error of Windows targets
General\General.cs(70,58): error CS0234: The type or namespace name 'Form' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
2020-09-12 12:14:06 +03:00
Kevin Caccamo
71f86980fd
Handle multiple entries with the same name but different case
This is done so that entries whose keys have a higher ordinal value (lowercase) will replace entries whose keys have a lower ordinal value. This is based on how I've seen GZDoom handle this sort of situation.
2020-09-11 22:24:43 -04:00
Magnus Norddahl
30c2ad22ea Workaround groups Enabled flag not getting applied in mono winforms implementation 2020-09-12 02:15:21 +02:00
Magnus Norddahl
efec88994b Apply workaround to datagridviews 2020-09-12 02:06:14 +02:00
Magnus Norddahl
ccf2191f10 Add workaround for broken View.List implementation in mono's winforms 2020-09-12 01:25:59 +02:00
Magnus Norddahl
87fe50df56 Write replacements for the unimplemented native calls for unix 2020-09-11 23:17:30 +02:00
Magnus Norddahl
0d07050bcb Remove the need for ZeroMemory 2020-09-11 22:39:18 +02:00
Magnus Norddahl
e62c8bdad4 Fallback C# implementation for when rawmouse is not present 2020-09-11 22:22:36 +02:00
Kevin Caccamo
2f48255ddf
Remove GetCorrectCaseForFile call in GetFileAtPath
It's redundant because GetCorrectCaseForFile is called in DirectoryReader.LoadFile, and UDB will change all filenames in a PK3 to lowercase when it loads a PK3 into memory.
2020-07-29 17:30:17 -04:00
biwa
6a926d337e Some cleanup, added some comments. 2020-07-29 22:05:12 +02:00
Kevin Caccamo
42be899204
Attempt to improve Unix filesystem support
Add some new methods to PK3StructuredReader and DirectoryReader, which get the filename with the correct case, and get a file at a particular path.
Replace backslashes in modeldef model paths with forward slashes, instead of doing the opposite, which was preventing some models from loading.

I don't know whether or not this is a good solution or not, since I don't know the UDB codebase very well.
2020-07-29 04:14:37 -04:00
biwa
8aa7462993 Files specific to UDB are now used in the program configuration folder. The files are now called UDBuilder.cfg, UDBuilder.log, and UDBCrash.txt. If there's no UDBuilder.cfg it first tries to copy GZBuilder.cfg before creating a new configuration file. Resolves #442 2020-07-25 18:42:07 +02:00
Kevin Caccamo
96208f7166
Fix directory separators
Path.DirectorySeparatorChar is a forward slash on Linux/Unix, so it ended up preventing DECORATE and ZSCRIPT code from being loaded on Linux.
2020-07-20 04:20:03 -04:00