Commit graph

321 commits

Author SHA1 Message Date
codeimp
69376ee5e0 working on visual mode 2008-12-01 06:51:00 +00:00
codeimp
858e36acef added different render passes and fixes a bug which caused some lines to be drawn multiple times unnecessarily 2008-11-30 22:04:30 +00:00
codeimp
9513eabd58 textures now properly aligned in visual mode 2008-11-30 20:46:39 +00:00
codeimp
43a0e69de7 visual mode extreme makeover! (internally at least) now using proper view frustum for culling and lots of other improvements to render the map more efficiently 2008-11-30 02:17:19 +00:00
codeimp
e135c279eb more on selectable editing modes 2008-11-27 19:25:13 +00:00
codeimp
d49b31dfc0 miauw 2008-11-27 13:42:18 +00:00
codeimp
bc465effea moo 2008-11-27 12:37:20 +00:00
codeimp
580fe3f181 oops, the EditingManager should be a general manager, not depending on the loaded map 2008-11-27 11:59:17 +00:00
codeimp
ae8daa2924 - refactored all editing mode management into the EditingManager
- added interface controls for editing mode selection in game configurations
2008-11-27 10:33:09 +00:00
codeimp
af509c3682 - some optimizations to visual mode
- changed timing to use double
- added delta time as parameter in OnProcess event
2008-11-27 06:53:38 +00:00
codeimp
0fee24865c working on visual mode 2008-11-25 21:54:50 +00:00
codeimp
a3e9e54b74 working on visual mode 2008-11-20 21:32:23 +00:00
codeimp
eee46b13f2 working on visual mode 2008-11-19 16:18:36 +00:00
codeimp
659a3df7be - implemented esselfortium's idea to highlight the original sector(s) in Make Sector mode when move the mouse over potential sector areas.
- replaced direct thread-to-thread invocations with messages through the windows message pump (this solves deadlocks)
- delay-update the display when in-map images are loaded by the background thread (results in smoother performance while background loading)
- fixed enabling/disabling some menu items
2008-11-18 13:05:04 +00:00
codeimp
f5c635a998 added settings and view menu and more stuff 2008-11-17 00:41:52 +00:00
codeimp
d514c8837a fixed crash in Make Sector mode on empty map 2008-10-28 10:38:31 +00:00
codeimp
b4fcd78897 moved intuitive line drawing code to doom builder core 2008-10-26 09:49:06 +00:00
codeimp
00bf885d5e typos 2008-10-25 15:55:00 +00:00
codeimp
abc2bab6e1 error checking for overlapping lines that do not reference the same sector on all sides 2008-10-25 10:34:32 +00:00
codeimp
e059562e72 2008-10-24 19:16:38 +00:00
codeimp
415820af86 added two error-check results for line references 2008-10-24 19:16:23 +00:00
codeimp
22d903c630 more work on map analysis 2008-10-24 14:53:04 +00:00
codeimp
180e252163 2008-10-24 09:40:55 +00:00
codeimp
dfa7a74ce5 NOTE: An ErrorChecker may NEVER modify the map, because it runs multithreaded with other ErrorCheckers. Do not even change element properties such as 'marked' and 'selected'! 2008-10-24 09:19:05 +00:00
codeimp
d7a843938a sorting error checkers with highest cost first (estimated CPU usage) 2008-10-24 07:39:29 +00:00
codeimp
46434b8b7c working on map analysis mode 2008-10-24 05:50:37 +00:00
codeimp
27e05b7f1b moo 2008-10-23 22:01:07 +00:00
codeimp
cc292c9c40 more work on error checking 2008-10-23 19:08:55 +00:00
codeimp
b82c18064f more work on error checking 2008-10-23 13:33:59 +00:00
codeimp
ed5bb35c7c more work on error checking 2008-10-23 11:36:00 +00:00
codeimp
28172b94bb working on map analysis mode 2008-10-23 05:53:34 +00:00
codeimp
3773dbdbd4 right mousebutton inserts new thing in things mode 2008-10-20 05:44:07 +00:00
codeimp
f2c08e64a5 improved the make door feature 2008-10-19 09:42:18 +00:00
codeimp
96dc652632 create undo snapshot before actually making the door! 2008-10-17 09:44:10 +00:00
codeimp
38f1cb6c3a make door feature added 2008-10-17 09:39:07 +00:00
codeimp
1bf3ab747c changed the make sector mode to work properly with the new view modes 2008-10-15 18:15:23 +00:00
codeimp
02573549f0 changed the brightness mode to work properly with the new view modes 2008-10-15 18:09:56 +00:00
codeimp
279b974683 - some bug fixes in the view modes
- fixed some bugs in resources loading
2008-10-15 17:26:59 +00:00
codeimp
b120c567bc generic system to display sector brightness and textures in their polygons (still buggy, working on it) 2008-10-15 11:46:43 +00:00
codeimp
4f92956d44 controls in preferences dialog are now sorted in categories 2008-10-08 22:01:10 +00:00
codeimp
ab28c9d66b better way to cancel editing mode 2008-10-08 15:14:02 +00:00
codeimp
0fd6efb82f renamed events OnEndSelect to OnSelectEnd and OnEndEdit to OnEditEnd for naming consistency 2008-10-08 14:24:21 +00:00
codeimp
8b6a6754ab renamed events OnSelect to OnSelectBegin and OnEdit to OnEditBegin for naming consistency 2008-10-08 14:19:09 +00:00
codeimp
53ff1e1fa1 - undo/redo support in brightness mode
- added OnUndoEnd and OnRedoEnd events to editing modes
2008-10-08 13:57:43 +00:00
codeimp
07c45ff90f - userfriendlyness additions in brightness mode
- gradient feature working in brightness mode
- fixed bug in tags renaming when adding button to form (buttons where ignored because the function unnecessarily checked for menu items)
2008-10-08 12:56:12 +00:00
codeimp
e8b9cb3a30 - tweaked the font
- fixed bugs in sectors mode
- worked on brightness mode
2008-10-08 12:32:08 +00:00
codeimp
1a6641f46b working on the brightness mode 2008-10-08 05:45:24 +00:00
codeimp
3117725c15 labels in brightness mode 2008-10-07 15:19:55 +00:00
codeimp
e43acf03d7 forgot to clean this reference up as well 2008-10-07 14:56:43 +00:00
codeimp
ae79633c39 cleaning up 2008-10-07 14:46:36 +00:00
codeimp
09da6dbefd nice automatic label positions for sectors 2008-10-07 12:54:15 +00:00
codeimp
f941f7a7ad more on label positions 2008-10-07 08:58:11 +00:00
codeimp
496619d211 triangulation properties wrapped as read-only 2008-10-07 08:20:29 +00:00
codeimp
5a0ef82fec 2008-10-07 07:42:55 +00:00
codeimp
6af1a93695 2008-10-07 07:34:51 +00:00
codeimp
46935a6132 sector triangulator changes 2008-10-07 05:50:39 +00:00
codeimp
2dd337cffa renamed SectorTools to Tools and removed useless Polygon class (methods are in Tools now) 2008-10-06 19:33:13 +00:00
codeimp
a6fb612c55 sector brightness in 3d mode 2008-10-02 11:36:25 +00:00
codeimp
1dad4b68c6 - change a lot in the resources system
- fixed memory leak in PixelColorBlock
- several small changes and bugfixes
2008-09-28 21:20:56 +00:00
codeimp
15693e1ca8 moo 2008-09-24 12:00:55 +00:00
codeimp
dcda9cdab3 - added automatic heights adjustments when pasting geometry
- fixed a merging bug
2008-09-24 11:26:23 +00:00
codeimp
4fe3645740 smalled grab handles and no immediate dragging after pasting 2008-09-24 09:26:26 +00:00
codeimp
2228a6b7f7 better merging with pasted geometry 2008-09-24 05:51:28 +00:00
codeimp
2964b1fea9 fixed two bugs in copy/paste 2008-09-23 20:33:56 +00:00
codeimp
8d3d00372b even better copy/pasting 2008-09-23 17:46:34 +00:00
codeimp
5a47093999 bug fixes in pasted geometry merging 2008-09-23 10:12:39 +00:00
codeimp
a71999542e more copy/paste code 2008-09-23 10:04:10 +00:00
codeimp
b1ccdbbc7f lots of stuff (including half decent copy/paste) 2008-09-22 18:27:50 +00:00
codeimp
fccba768f0 copy/paste test 2008-09-17 20:16:29 +00:00
codeimp
241a271bd0 small improvements to EditSelectionMode 2008-09-15 19:55:03 +00:00
codeimp
2c5ccfa81f - more functional EditSelectionMode
- linked image in about box? let's link on the website later on
2008-09-15 19:42:11 +00:00
codeimp
0c77136c30 - clearing selection now editing mode's responsibility (because it is not wanted in all modes)
- fixes flashing of editing mode name and button when editing mode refuses to engage
- a highlight also works now for classic modes to go to EditSelectionMode
2008-09-12 05:50:19 +00:00
codeimp
8a3e761896 each basic mode now takes care of converting the current selection as best as possible for that mode 2008-09-10 12:44:38 +00:00
codeimp
cd6ee145a2 - added option to customize testing parameters (default uses parameters from configuration)
- added new placeholders %L1 and %L2 which result in the first and second map number (usefull for -warp)
- clicking outside the selection in EditSelectionMode accepts the changes and returns to previous mode
2008-09-09 23:06:31 +00:00
codeimp
ed66294339 added rotation snapping to 45 degrees in EditSelectionMode 2008-09-09 17:59:49 +00:00
codeimp
2478719da0 - fixed bug in alignment with vertices
- tweaked some visual settings
2008-09-09 13:10:23 +00:00
codeimp
19ef987556 - some minor bug fixes
- added snapping to grid and snapping to nearest vertex for resize in EditSelectionMode
- added line that shows the alignment during resize in EditSelectionMode
2008-09-09 12:20:39 +00:00
codeimp
3dc2e39764 working EditSelectionMode! 2008-09-09 05:52:11 +00:00
codeimp
eb08197d56 begun working on EditSelectionMode (unfinished) 2008-09-07 21:28:20 +00:00
codeimp
6b8f631bf8 fixed close button on Find/Replace window and fixed crash after closing the Find/Replace window with the X button 2008-09-01 12:41:45 +00:00
codeimp
eea16ffa2c added find/replace mode feature (not all find/replace types implemented yet, but mode is functional, adding types is a just matter of making the right classes for them) 2008-09-01 12:14:35 +00:00
codeimp
3b07c29c39 added automatic association highlighting for things, sectors and linedefs 2008-06-19 07:25:01 +00:00
codeimp
1bd143c9b3 - added Make Sectors mode
- added editing mode name at the bottom information bar
- some bugfixes in game configurations
2008-06-11 05:02:48 +00:00
codeimp
c37b28e15f - improved game config guessing to better detect UDMF when map is opened
- added game config detection pattern to Doom Legacy game config
- insert thing feature added, including automatic thing defaults
- fixed typo in all game configs (defaulthingflags -> defaultthingflags)
2008-06-10 11:32:06 +00:00
codeimp
e30b68c9c3 UDMF on top! 2008-06-01 20:25:46 +00:00
codeimp
8aa99cfb88 separated the Interface namespace into Controls and Windows 2008-05-29 11:54:45 +00:00
codeimp
d73ec193bf renamed Controls namespace to Actions in preparation for separation of user controls into Controls namespace 2008-05-29 11:34:01 +00:00
codeimp
dc158d2407 - things filters! (filtering by fields doesn't work yet, will complete that when UDMF has been implemented)
- several bug fixes
2008-05-26 20:06:15 +00:00
codeimp
87ea1c0e51 now plugins can add their own buttons to the toolbar 2008-05-26 12:14:48 +00:00
codeimp
efdc703f94 moo 2008-05-26 10:36:41 +00:00
codeimp
c2a5ca1c8e automatically remove new lines without sides after drawing 2008-05-19 06:51:55 +00:00
codeimp
f5673a06d5 set minimum angle in CurveLinedefsForm to 1, or it will create an invalid curve 2008-05-18 20:36:25 +00:00
codeimp
5d5b9d1c33 - added curve lines code (by Anders Ã…strand)
- updated logo images
2008-05-18 20:03:09 +00:00
codeimp
747a8929a9 constants for minimums and maximums in CurveLinedefsForm 2008-05-18 19:02:36 +00:00
codeimp
132ef51429 - fixed automatic polygon close bug in DrawGeometryMode
- small optimizations in LinedefAngleSorter
- fixed curve linedefs dialog input boxes
2008-05-18 18:32:56 +00:00
codeimp
11151c36cc - map changed fixes
- toolbar buttons fixed
2008-05-18 11:56:45 +00:00
codeimp
12eb6fdaf2 lots of rendering changes 2008-05-18 11:43:28 +00:00
codeimp
1d58484dd3 - created dynamic presentation pipeline
- added sectors brightness editing mode
2008-05-18 07:31:33 +00:00
codeimp
a5a6119190 thing dialog and bunch minor of fixes/changes 2008-05-17 17:43:57 +00:00
codeimp
e2e9e17985 some fixes and the ability to start drawing with right-click (Edit) when nothing is highlighted 2008-05-17 08:00:25 +00:00
codeimp
8805a48058 - 'delete item' implemented for all elements
- fixed bug with disposing a Vertex
2008-05-17 06:24:16 +00:00
codeimp
b8be666814 - support for setting mouse cursors from plugin
- added Insert Vertex action (for all classic modes)
- added Split Linedefs action
- fixed bugs when unused vertices or unused sectors are joined
2008-05-16 21:48:23 +00:00
codeimp
8c777ca780 - prevented showing editing dialog when EndEdit was the result of a BeginEdit action started from another mode (which is normal behavior and desired in some cases, such as dragging)
- implemented Accept action and corresponding OnAccept event for all editing modes
2008-05-16 21:08:36 +00:00
codeimp
0d35ce0536 - fixed bug introduced with automatic release of all keys when a dialog appears on BeginAction causing an EndAction which shows a dialog to run twice
- implemented Join Sectors and Merge Sectors
- added an ordered selection list to SectorsMode
- removed selection on undo/redo
- Interface AddMenu now completes short action names on menu items Tag property to fully qualified action names depending on calling plugin
2008-05-16 20:00:49 +00:00
codeimp
d72ebc4330 - removed some unneeded code
- finished CurveLinedefsMode (except for Anders_A's code)
- added public method to cancel editing modes
2008-05-16 10:55:25 +00:00
codeimp
df4ad6d2e0 degrees/radian conversion tools 2008-05-15 19:48:07 +00:00
codeimp
7416731833 beginning of curve lines editing mode 2008-05-15 19:31:11 +00:00
codeimp
4dd8877eba - renamed selection methods
- create undo for flipping linedefs/sidedefs
2008-05-15 12:54:02 +00:00
codeimp
bc8151d7f7 - added flip linedefs mode
- fixed shortcut key descriptions in menu
2008-05-15 12:36:55 +00:00
codeimp
6b2ba4f2d6 added more missing files 2008-05-15 08:56:23 +00:00
codeimp
e962a49f83 what?! these files were not in the svn?! 2008-05-15 08:25:45 +00:00
codeimp
7e6d49450c added the On* prefix to all event methods 2008-05-15 08:10:29 +00:00
codeimp
d7656f1f3b - added some new menus in the plugin
- volatile mode may not be started from a volatile mode by shortcut key!
- added ability to cancel an editing mode change
- added mipmap levels setting to images (this fixes blurred fonts in low-quality display)
2008-05-14 21:48:36 +00:00
codeimp
7c08847a5b prepared for more plugin features 2008-05-13 22:28:30 +00:00
codeimp
9f07f2ef2c - nice wrapper for line length labels
- line length labels while drawing!
2008-05-13 17:11:33 +00:00
codeimp
77720694a3 - added proper text rendering
- linedef lengths visible when dragging geometry
- included my ancient bitmap font creator
2008-05-13 14:24:35 +00:00
codeimp
3fd1ce1e8d fixed more compiler settings 2008-05-10 18:14:48 +00:00
codeimp
a12981abc7 - added font resources
- fixed target CPU compiler settings
2008-05-10 18:06:09 +00:00
codeimp
737886ca8b fixed invisible lines when dragging from lines mode 2008-05-09 16:57:12 +00:00
codeimp
d338487e69 - fixed non-stitching geometry drawings
- renamed Association color to Indication (more a general-purpose color)
2008-05-08 22:01:37 +00:00
codeimp
6f255e1866 - introduced "volatile" editing modes
- automated exclusive mouse mode management
- fixed bug with actions that never ended when a dialog appears
2008-05-08 16:39:14 +00:00
codeimp
33d2af5417 few bugfixes 2008-05-08 13:44:48 +00:00
codeimp
8f8690aac3 "intuitive" default build properties and sorted textures/flats in browsers 2008-05-08 13:04:18 +00:00
codeimp
51f57471c7 geometry drawing fixes 2008-05-08 12:04:20 +00:00
codeimp
3214ef4593 some little fixes in drawing geometry 2008-05-08 05:45:30 +00:00
codeimp
e63ee4dc81 worked on geometry drawing (i think it is actually working perfect now, aside from some default settings on the new sidedefs then) 2008-05-07 22:46:15 +00:00
codeimp
c43f0dc3a6 little bit more on geometry drawing (still unfinished) 2008-05-06 21:31:20 +00:00
codeimp
3e5d429393 - fixed stitch distance
- fixed bug in FlipBackwardLinedefs
2008-05-06 05:41:36 +00:00
codeimp
d0f6963fb2 some fixes and additions with floating point vertices 2008-05-05 22:22:53 +00:00
codeimp
4522698765 completely got rid of integral vertex coordinates (now all floating point) 2008-05-05 22:01:27 +00:00
codeimp
87ca45f93d more on geometry drawing 2008-05-05 21:38:52 +00:00
codeimp
3c0e66a36e some improvements in sector drawing (still very buggy though) 2008-05-05 18:21:13 +00:00
codeimp
b5b7875f75 - limited possible characters typed for map lump name
- improved sector making and drawing
2008-05-05 15:35:58 +00:00
codeimp
1ada9addf3 - added SectorMaker (unfinished)
- changed a lot in data management
- less memory usage by texture browsers
2008-05-05 14:22:36 +00:00
codeimp
5a5f113855 removed useless triangulators and changed EarClipTriangulator into just Triangulator 2008-05-03 09:26:44 +00:00
codeimp
72b14c37bd some more drawing code (still unfinished) 2008-05-01 19:31:49 +00:00
codeimp
e95a24f281 the "Marked" property of map elements now indicates the set we are working with, not the user selection 2008-05-01 14:10:38 +00:00
codeimp
018f8ab26a these don't need to be protected, class is sealed. 2008-05-01 12:08:40 +00:00
codeimp
08e38f62bd little more on drawing mode (still unfinished) 2008-05-01 10:59:37 +00:00
codeimp
935e21b47d 0.8 is nicer than 0.6 2008-04-29 20:59:59 +00:00
codeimp
6ba6d7416d snapping to nearest lines where they intersect the grid! this is hot! 2008-04-29 14:41:16 +00:00
codeimp
4ae985d630 - changed a lot around the actions
- no more mousebutton-specific code in the editing modes (now all bound by actions)
- some progress on the drawing editing mode
2008-04-27 12:07:26 +00:00
codeimp
606983deb6 moved some files around 2008-04-20 22:57:12 +00:00
codeimp
4b2e0285f2 - started on the line drawing mode
- removed some unneeded 'unsafe' modifiers
2008-04-20 22:54:24 +00:00
codeimp
40f5e853bd some optimizations 2008-04-19 15:44:05 +00:00
codeimp
53fd1fb04c fixed automatic geometry merging when dragging lines and sectors 2008-04-19 15:04:44 +00:00
codeimp
f4fd8ff188 overlay text rendering crap 2008-04-17 05:36:48 +00:00
codeimp
0dd329bb5e generic undo name for dragging 2008-04-13 11:58:13 +00:00
codeimp
a3fab2f666 selecting by drawing a rectangle! 2008-04-13 11:51:09 +00:00
codeimp
535ecc54a2 - added overlay rendertarget
- renamed some rendering methods
- added rectangle rendering method for overlay
2008-04-12 16:07:10 +00:00
codeimp
3d43205f2c changed some rendering calls for seperate rendering to different layers 2008-04-12 12:45:57 +00:00
codeimp
406f828473 - added things dragging mode
- removed allow3dchange from undo snapshots (I expect 3D mode to handle all changes)
- removed unused parameters from drag modes constructors
2008-04-07 14:33:41 +00:00
codeimp
abb89a4944 fixed automatic anchor vertex choice when dragging geometry 2008-04-07 12:20:48 +00:00
codeimp
b3c83f95ce lots of minor changes/fixes/additions 2008-02-24 21:52:18 +00:00
codeimp
0d8ff97abd - finished sector edit dialog
- cleaned up unused variables
2008-02-22 17:11:29 +00:00
codeimp
2e741f7c8e added configuration support for generalized sector effects 2008-02-21 06:47:43 +00:00
codeimp
9bfaae721e - fixed things redrawing bug in dragging modes
- worked little on sector edit dialog
2008-02-19 21:32:40 +00:00
codeimp
a670efca20 - added dragging mode for sectors
- changed "diposed" typos to "disposed" and i'm still too lazy to fix it in my template
2008-02-19 19:04:19 +00:00
codeimp
a878520a7f - generalized geometry dragging into DragGeometryMode
- added dragging mode for linedefs
- deleted old icon resources
2008-02-19 18:54:04 +00:00
codeimp
eee375031f - cleaned up debug stuff from action delegates binding
- fixed things in drag mode (now move correctly along with scroll/zoom), this fixes issue 0000039
2008-02-15 12:15:46 +00:00
codeimp
ea75719392 updated slimdx and d3dx to nov-07 version 2008-01-18 21:05:15 +00:00
codeimp
471a9e3d51 triangulation fixes, put the TriangulatorMode back in and some visibility range checking in visual mode 2008-01-18 19:52:19 +00:00
codeimp
1ead52f14e fix repo 2008-01-16 06:33:20 +00:00
codeimp
3c43547c6c some 3D mode rendering 2008-01-13 21:23:59 +00:00
codeimp
c32d678fea added right-click in TriangulatorMode to triangulate entire map 2008-01-08 19:56:20 +00:00
codeimp
6b7540eab1 implemented cutting! ear clipping algorithms are now complete i think. 2008-01-07 23:03:36 +00:00
codeimp
bdf192492f added ear clipping (outer polygon only, still have to implement cutting) 2008-01-07 19:10:23 +00:00
codeimp
bd6356c999 first step of EarClipTriangulator (trace sector to polygons) works! 2008-01-06 20:56:48 +00:00
codeimp
924a384aab i think the cam xy and z angles are wrong, but at least the 3d rendering base framework is there 2008-01-05 18:11:29 +00:00
codeimp
0498ecdd16 bra 2008-01-04 00:16:58 +00:00
codeimp
c5e990f1b7 merged plugin system into trunk 2008-01-02 21:49:43 +00:00