Commit graph

484 commits

Author SHA1 Message Date
MaxED
ae56aad3b7 Hints panel was improperly resized in some cases.
Info panel was not updated after leaving Visual mode.
Moved hints logic to ClassicMode, so hints can be displayed by any plugin.
Visual mode: dynamic light animation was not working.
Minor performance improvements in Actor, Configuration, UDMF and TEXTURES parsers.
2013-12-18 09:11:04 +00:00
MaxED
b1b3dda28b Increased performance when creating new map geometry (for example, when applying changes made by "Draw Line", "Draw Rectangle" etc. actions). 2013-12-17 13:18:44 +00:00
MaxED
9df67e8b22 Thing Info panel: thing action is no longer shown in Doom map format.
Sector and Thing Info panels: fixed possible crash when trying to show unknown thing/sector flag.
Hints were not shown properly when multiselection was started while highlighting a map element.
Copy/Paste actions work much faster now.
Classic modes: rendered grid size in now adjusted to current zoom level.
2013-12-17 08:19:40 +00:00
MaxED
1bd58bab4b Increased performance when deleting things in Things mode, linedefs in Linedefs mode and sectors in Sectors mode.
Increased performance when canceling Edit mode after pasting.
"Export to Wavefront .obj" function: current selection is now converted to sectors before running the function (previously it would export selected sectors when there were sectors selected, or the whole map when no sectors were selected).
2013-12-13 09:31:18 +00:00
MaxED
ab4d8c2776 "Export to Wavefront .obj" action should work much faster now.
Things mode: selection info was not updated when selection was cleared.
2013-12-12 09:07:30 +00:00
MaxED
894a2069e8 Fixed/reverted some of optimizations from r1845... 2013-12-11 09:47:35 +00:00
MaxED
47cebd9b20 Sectors mode: selected sectors geometry cache was not updated after undo/redo.
Updated hint system.
Corrected 2 typos in action names.
2013-12-11 08:47:11 +00:00
MaxED
0b622c5f73 Thing Edit form: the logic of thing position controls was broken.
Info panel: current mode name was shown when in shouldn't have been.
2013-12-10 13:01:27 +00:00
MaxED
4e52d9bb9c Sectors mode: optimized rectangular selection logic.
Sectors mode: optimized sector highlight rendering logic.
Sectors mode: optimized sector effect/tag labels update logic.
Geometry tools: optimized several core functions.
Hints for current editing mode can now be displayed when nothing is highlighted (currently the hints are shown only in Draw Geometry mode).  
GZDB is now build with LARGEADDRESSAWARE flag, which increases amount of RAM GZDB can use from 1.4 to 2.8 GB.
2013-12-10 12:19:27 +00:00
MaxED
a99811a106 Linedef info panel, UDMF: activation flags were not shown in flags panel and were causing exception.
Linedef info panel, Hexen map format: activation is now shown.
2013-12-06 11:21:10 +00:00
MaxED
890fd10b7f Linedef info panel: linedef flags are now shown.
Removed 15 Mb of unused files (3 DB2 splash screen sources).
2013-12-05 14:04:25 +00:00
MaxED
0ca7135121 Fixed a crash when user cancels engine launch during Test Map action.
These changes were made in previous commit. I just forgot to write info about them:
Classic modes: going to Draw modes when Edit button is pressed when nothing is highlighted can be disabled in Preferences -> Editing -> "Start drawing when Edit pressed over empty space in Classic modes".
Classic modes: removed Preferences -> Editing -> "Try to align horizontal tex. offset of dragged geometry", because it was more confusing than helpful...
2013-12-05 09:42:29 +00:00
MaxED
ca03109006 Info panels: thing and sector flags are now displayed.
Visual mode: changed "Move Texture Left/Right/Up/Down by 8" actions to "Move Texture Left/Right/Up/Down by cur. grid size"
Visual mode: holding Ctrl-Shift while dragging texture with the mouse will snap texture offsets to current grid size.
Classic modes: interiors of highlighted sectors are now highlighted when the action target of currently highlighted map element is sector.
Unhandeled exceptions infos are now written to the event log.
2013-12-05 09:24:55 +00:00
MaxED
44bf0b9588 New angle control logic was behaving incorrectly in some cases.
Angle control (the newer, photoshop-like one): left-clicking inside the control now clamps angle to 45-degree increments. Right-clicking inside the control sets precise angle.
Thing Edit Form: replaced angle control with newer one.
Classic modes: fixed minor rendering artifacts when drawing thing direction arrow.
2013-12-04 13:27:34 +00:00
MaxED
55fb9f872d "Raise" and "Lower Floor/Ceiling to adjacent sector" actions: when the action is not able to find suitable height from the elements of the same type, element of opposite type is used instead (damn that's cryptic :) ). Example: when no ceiling lower than lowest in selection was found while lowering selected ceilings, highest floor height of sectors, selected ceilings belong to, will be used instead. Even shorter: these actions can now be used to "close" and "open" doors quickly. 2013-12-03 13:12:12 +00:00
MaxED
bf2f520a8e Fixed a crash when opening Thing Filters form when non-UDMF map was loaded.
Fixed a possible crash when rendering thing arrows in classic modes caused by incorrect vertex buffer size calculation.
Reverted changes to texture\flat access when "mixtexturesflats" option is set to true in game configuration.
2013-12-03 10:50:33 +00:00
MaxED
d9439850f7 Error checks: PlaneAlign action is now taken into account when checking for missing upper/lower textures.
Several fixes in flat/texture/patch loading and precedence. Texture loading will no longer fail when there's a texture and a flat with the same name.
2013-12-02 15:02:01 +00:00
MaxED
cd50592cd5 Classic modes: hopefully fixed a thread-related exception while loading sprites.
Visual mode: direction arrows are no longer rendered for non-directional things.
Actions log is now saved to GZCrash.txt
2013-12-02 09:26:09 +00:00
MaxED
e4a924eb14 Sectors and Linedefs modes: rectangular selection now checks for intersections between linedefs and itself when "select touching" is enabled. 2013-11-29 14:45:29 +00:00
MaxED
c4130499fc Edit forms: current selection is no longer cleared when the edit is canceled.
Updated documentation.
2013-11-29 12:24:47 +00:00
MaxED
898c8e6166 Open Map Form was unable to pick game configuration when selected wad contained maps in several map formats.
Texture selector control: fixed a crash when trying to refresh current image when the map was no longer available.
2013-11-27 15:38:03 +00:00
MaxED
f482aebfb0 Classic modes: thing sprites are now rendered in classic modes.
Classic modes: models no longer disappear when the thing the model is attached to is no longer visible.
2013-11-27 12:45:28 +00:00
MaxED
52985db127 Some fixes to sector brightness/heights override logic added in previous commit. 2013-11-21 11:51:48 +00:00
MaxED
e8f52aecb9 Added Draw Settings side panel, which replaces Set Default Textures Form and allows to set textures, brightness and floor/ceiling heights to use when drawing sectors. Used settings are now saved in the map's .dbs file.
Location and active tab of all Edit Forms are now stored while GZDB is running.
Focus management between editing window and the rest of the interface should work better now.
Tag Explorer plugin: editing window was not updated properly when Edit forms were opened from Tag Explorer.
Tag Explorer plugin, UDMF: comment editing was incorrectly initialized in some cases.
2013-11-21 10:53:11 +00:00
MaxED
c441c5640a Visual mode, UDMF: "nofakecontrast", "smoothlighting" and "lightabsolute" flags are now taken into account when calculating fake contrast/smooth lighting brightness values for walls. 2013-11-20 14:59:31 +00:00
MaxED
7a2aafbb6b Visual mode, UDMF: we shouldn't render fade when sector brightness is 248 or higher.
Plugins: fixed a crash caused by inability to find referenced assembly when loading a plugin, which depends on other plugin(s).
Undo-redo, UDMF: undo information was not created properly for several types of UDMF fields for the last map element in the selection when the selection contained more that 1 element.
Updated documentation.

Maintenance stuff:
Core/Plugins/Plug: made current display location and size information properly available to plugins.
Made Core/Controls/ColorControl available to be used by plugins.
2013-11-20 13:29:41 +00:00
MaxED
7c8370b9d3 Script editor: fixed a crash when trying to compile one-line script. 2013-11-18 12:36:42 +00:00
MaxED
aa4fbd8b43 Texture browser form: Tab key behavior was broken when the window was opened in maximized state.
Texture browser form: last window location is now restored when the window is opened.
2013-11-08 10:51:35 +00:00
MaxED
1be5a9e2ab UDMF, Custom Fields: fixed a crash when trying to create undo snapshot for a custom field of type bool or string when the map's .dbs file is not present or it doesn't contain type info about said field. 2013-11-06 09:34:47 +00:00
MaxED
9c63c617d8 Texture Browser form: fixed Tab key behavior yet again. 2013-11-04 11:17:16 +00:00
MaxED
76dba9cd87 Bridge mode: some float values were not rounded leading to curve position errors in some cases. 2013-09-27 10:56:44 +00:00
MaxED
ec9d829916 Texture Browser: textures can now be filtered by size.
Visual mode: offsets of double-sided middle textures were still clamped when not required in some cases.
Updated documentation.
2013-09-26 12:43:39 +00:00
MaxED
3f66656b3b Sector edit forms: sector height label was showing incorrect values when relative values were used. 2013-09-17 08:21:12 +00:00
MaxED
7f775bbbd2 Warning about missing DECORATE actors was shown twice. 2013-09-16 14:07:12 +00:00
MaxED
735447edbe Default sector brightness can now be set in Preferences.
Default sector ceiling height can now be set in Preferences.
Default sector floor height can now be set in Preferences.
Maximum number of recent files can now be changed in Preferences.
UDMF, Custom fields: a warning is now shown when a user tries to manually add a managed filed.
UDMF: "Translucent" linedef flag is now marked as obsolete.
2013-09-16 13:41:00 +00:00
MaxED
ed75933d60 Sectors mode: sector tags are now shown on top of unselected sectors (works only if "View Selection Numbering" option is enabled).
Some cosmetic fixes here and there.
2013-09-13 14:54:43 +00:00
MaxED
dcc063f008 Sectors mode: sector effects are now shown on top of unselected sectors (works only if "View Selection Numbering" option is enabled).
Updated documentation.
2013-09-12 15:02:08 +00:00
MaxED
261811cc57 Fixed a crash when updating engine selector dropdown after removing engines when selected engine index was greater than engines count.
Some code simplifications in MapinfoParser, also it can now read fade/outsidefog color defined as "XXXXXX"
2013-09-12 09:51:56 +00:00
MaxED
ebf5a3961b Probably fixed a D3D-related crash after testing the map in GZDoom. Or not. 2013-09-11 15:01:55 +00:00
MaxED
ae1b2153ef Sector Edit form, UDMF: floor and ceiling rotation angles can now be entered as decimals.
Visual mode: removed unrelated message when copying textures using "Copy Selection" action.
2013-09-11 14:22:11 +00:00
MaxED
fc57c3e331 Replaced massive amount of spaces with (massive amount of tabs / 4) 2013-09-11 09:47:53 +00:00
MaxED
ead2521451 Sectors mode, UDMF: Create Brightness Gradient action can now work in "Light" and "Fade" modes.
Visual mode: added support for "fogdensity" and "outsidefogdensity" MAPINFO properties.
Sector Info panel now shows the number of sector's sidedefs as well as light and fade colors (UDMF only).
UDMF: Sector and sidedef flags are now copied/pasted when using "Copy Properties" and "Paste Properties" actions.
Fixed: in some cases default texture overrides were used even when corresponding option was disabled.
Sector Edit form: light and fade values were not saved when a value was pasted/entered into text box.
Sector Edit form: "reset value" button was not shown for light and fade values when selected sectors had different light/fade colors.
Reverted Open Map form changes from previous commit (my assumption that map marker is always empty was not correct...)
Updated documentation.
2013-09-11 08:49:45 +00:00
MaxED
2598389d6b Sector Info panel now shows how many sidedefs highlighted sector has.
Snap Map Elements to Grid mode now works much faster and shows a message when completed.
Forced default textures are now only used in drawing modes.
Exception Dialog: long error descriptions were breaking window layout.
Map will no longer be shown in Open Map form if unrelated data is encountered inside of map namespace.
2013-09-09 14:03:02 +00:00
MaxED
b80bc3f811 Manual linedef splitting: UDMF texture coordinates were incorrectly interpolated in some cases.
Manual linedef splitting: "Duplicate texture coordinates" and "Reset X coordinate, copy Y coordinate" settings now affect UDMF texture offsets.
2013-09-05 13:03:17 +00:00
MaxED
8a0ca0e650 Visual mode: added "Auto-align Textures to Selection (X)", "Auto-align Textures to Selection (Y)" and "Auto-align Textures to Selection (X and Y)" actions.
"Snap Map Elements to Grid" mode now tries to fix invalid geometry after vertex snapping.
Vertices mode: in some cases not all vertices were removed when deleting vertices.
Removed "Load GZDoom light definitions" from preferences. If you want to use GZDoom's GLDEFS definitions, add "lights.pk3" as a resource.
Visual mode: fixed a crash when toggling GZDoom Geometry Effects (Tab)
Fixed sector bounding box calculation error.
Renamed "Edit -> Grid Setup..." to "Edit -> Grid and Backdrop Setup..."
Updated documentation
2013-09-03 09:34:28 +00:00
MaxED
0ea1056b44 Error Checking: renamed "Check unclosed sectors" to "Check invalid sectors". Now it also finds sectors with less than 3 sidedefs and sectors, which area is 0. 2013-08-30 15:00:44 +00:00
MaxED
c6170f644b Changed the way sector bounding box is calculated. This fixes major slowdowns when a sector with invalid geometry (e.g. without triangulation) is highlighted in Classic modes and a crash in Visual mode when such sector is rendered. 2013-08-29 12:07:54 +00:00
MaxED
6f23311167 Replaced Unhandled exception dialog with custom one 2013-08-29 10:05:50 +00:00
MaxED
b84b613d4b Added a way to assign new tags, which finds a tag unused by current map element type. 2013-08-28 08:29:06 +00:00
MaxED
a6ee7a5ca2 Copy/Paste logic was broken in Doom and Hexen map formats since r1758... 2013-08-27 14:22:19 +00:00