Commit Graph

46 Commits

Author SHA1 Message Date
Andreas Schneider f2764e928e - Added option to set the render background to white (fixes #59) 2009-12-23 20:54:56 +01:00
Andreas Schneider cf4c155858 - Changed TWorldItem and TWorldBlock Change-tracking
- Reverted TStaticItem.UpdatePriorities
- Fixed vdtTiles' HintCanvas to use the desired font when drawing
- Fixed UpdateFilter to no longer call ForceUpdateCurrentTile
- Several code cleanups
2009-12-23 16:39:24 +01:00
Andreas Schneider eb62553f5c - Fixed static tiles with hue 1 using the wrong cache id
- Commented some debug messages
2009-12-22 19:47:46 +01:00
Andreas Schneider 21e398ae92 - Added lightlevel slider 2009-12-21 20:12:45 +01:00
Andreas Schneider 7b46795bc1 - Implemented basic light source rendering 2009-12-20 22:05:15 +01:00
Andreas Schneider 158403e41a - Removed custom tile info window
- Updated VirtualTreeView
- Added tile info as owner drawn hint to vdtTiles (fixes #55)
2009-12-19 19:01:48 +01:00
Andreas Schneider 387d5fb28d - Added selection listener to TfrmMain
- Added "grab coordinates" using the new selection listener to TfrmLargeScaleCommand (fixes #54)
2009-12-19 13:57:29 +01:00
Andreas Schneider ff87bdea15 - Realigned TfrmLargeScaleCommand
- Fixed overlay being drawn with correct color and alpha
2009-12-19 01:02:06 +01:00
Andreas Schneider b0b014f66a - Added saving of random presets when creating or overwriting one 2009-12-17 21:05:46 +01:00
Andreas Schneider c41fd3be95 - Several code cleanups
- Fixed TArt.RefreshBuffer using the wrong variable (j <> i)
- Suppressed some hints
2009-12-17 15:41:54 +01:00
Andreas Schneider 3969493d90 - Added XML storage for Random Presets 2009-12-16 23:24:57 +01:00
Andreas Schneider 34c0e9c901 - Implemented saving and loading of locations to/from xml 2009-12-16 16:03:35 +01:00
Andreas Schneider 59ab7046c4 - Relect selection of the random tile list with the normal list list (fixes #51) 2009-12-10 16:54:43 +01:00
Andreas Schneider 9c010eeb89 - Added option to toggle animated tiles
- Added option to toggle the security question when performing area commands
2009-12-10 14:30:47 +01:00
Andreas Schneider 3bd5add656 - More adjustements to frmLogin
- Added property storage to several frmMain options
2009-12-09 19:10:07 +01:00
Andreas Schneider c0b5051b00 - Added Keyboard movement to oglGameWindow (fixes #5) 2009-12-07 16:26:47 +01:00
Andreas Schneider 6eaf10e73e - Added error handling when loading Locations and Profiles (fixes #2) 2009-12-06 20:03:24 +01:00
Andreas Schneider 4280db3f7e - Added flat-mode settings to toggle height display 2009-12-05 17:37:33 +01:00
Andreas Schneider 2fedab62cc - Added Undo operation 2009-12-04 20:24:36 +01:00
Andreas Schneider 8df2313b4d - Fixed TfrmLogin to create the profile path if it doesn't exist
- Removed old code from TfrmMain.Render
- Bumped version to 0.4.5
- Moved TVirtualTile to UWorldItem
- Added TVirtualTile handling to CompareWorldItems
- Added priorities to the virtual tiles
2009-12-02 18:40:03 +01:00
Andreas Schneider f58bef6d63 - Fixed drawing of TileName in the tile list (assuming ISO8859-1 encoding) - fixes #37 2009-10-24 14:29:32 +02:00
Andreas Schneider 94d77d4a00 - Changed TVirtualTile to inherit directly from TWorldItem
- Added FRepaintNeeded to minimize unnecessary repaints
2009-09-29 16:06:52 +02:00
Andreas Schneider 99c21fa951 - Added Logging unit and MultiLog dependency
- Removed StaticsFilter parameter from FillDrawList
2009-09-28 18:16:29 +02:00
Andreas Schneider b9ef61c0db - Added UfrmToolWindow
- Changed the tool windows to inherit from TfrmToolWindow
- Added a "close timer" to TfrmToolWindow to handle different focus behaviours of window managers
- Moved position changes for the tool windows to the appropriate TfrmToolWindow.FormShow event
2009-09-02 03:21:39 +02:00
Andreas Schneider 2cfde3eea5 - Changed TfrmFilter to enable tile and hue filter on tile/hue list changes
- Changed TfrmFilter placement to be off by -4 in x and y direction
- Disabled "scroll to center" in TfrmMain's TileList
- Disabled unncessary drag operations in TfrmMain's TileList
2009-08-06 15:42:19 +02:00
Andreas Schneider 1f1f5ac7b4 - Added TLandscape.OnMapChanged to handle changes to map tiles
- Reenabled terrain, statics, nodraw and flat toggles
- Fixed editing target list generation (in OnMouseUp) to only consider "normal" tiles, use their correct new order and the CanBeEdited attribute
- Removed obsolete TfrmMain.CanBeModified
2009-08-03 19:32:03 +02:00
Andreas Schneider 2e16269397 - Extracted TfrmMain.PrepareScreenBlock from RebuildScreenBuffer
- Added events for OnStatic-Inserted, -Deleted and -Elevated
2009-08-02 20:45:23 +02:00
Andreas Schneider b70f03ba2a - Added iterator to TCacheManager
- Added access (CanBeWritten) tracking to TStaticItem
- Moved TLandscape.UpdateStaticsPriorities to TStaticItem.UpdatePriorities
- Moved ULandscape.CompareWorldItems to UWorldItem
- Renamed TSeperatedStaticBlock.RefreshList to RebuildList
- Changed TStaticBlock.Sort to use CompareWorldItems and TList.Sort
- Some code style changes
2009-08-02 13:45:26 +02:00
Andreas Schneider f3888db49c - Removed several unnecessary panels from frmMain (using Anchors instead) 2009-07-31 17:03:26 +02:00
Andreas Schneider 01d5fb98d1 - Optimized blockInfo.ScreenRect calculation for static tiles
- Fixed TScreenBuffer.Find to correctly handle the new buffer usage (search at the end, not the beginning)
2009-07-30 17:04:49 +02:00
Andreas Schneider 31d2623df9 - Changed terrain rendering from GL_TRIANGLES to GL_QUADS to fix coastlines and other overlapping (thanks Turley) 2009-06-11 14:41:30 +02:00
Andreas Schneider 7fdfd1ee23 - Merged TTileList into TScreenBuffer
- Added shortcuts to TScreenBuffer to speed up the InsertionSort
- Renamed TScreenBuffer.Store to TScreenBuffer.Insert
- Added TScreenBuffer.Add to append to the list
- Added TScreenBuffer.Sort to sort the list using MergeSort
- Changed TLandscape.FillDrawList to just append to the list and sort afterwards
- Added screen buffer invalidation on TfrmMain.OnLandscapeChanged
2009-05-20 18:16:18 +02:00
Andreas Schneider fee66eada8 - Refined state handling for TBlockInfo
- Added caching of normals into TBlockInfo
- Added differentiation for low and high res materials to TBlockInfo
- Removed draw list clearing from FillDrawList
- Changed TScreenBuffer.Store to return a reference to the stored TBlockInfo
- Added missing ; to GetSerial
- More cleanups in ULandscape.pas
- Moved several local variables of TfrmMain.Render into TfrmMain members
- Moved several size related variable initializations from Render into OnResize
- Extracted GetDrawOffset
- Added seperate RebuildScreenBuffer
2009-05-17 15:32:51 +02:00
Andreas Schneider 61db743ee5 - Cleanup in ULandscape.pas
- Removed unncessary virtual and ghost tile handling from FillDrawList
- Added serial generation and tracking to TScreenBuffer
- Added editing state tracking to TScreenBuffer
- Changed TScreenBuffer.Store to perform an InsertSort
- Changed TScreenBuffer.Store to handle only the most necessary parameters
2009-05-17 14:12:52 +02:00
Andreas Schneider 2f560a7738 - Changed rendering to build the draw list for the whole range
- Added CanBeEdited flag to TWorldItem
- Changed list sorting from custom heap sort implementation to the FCL standard (QuickSort)
2009-05-15 23:37:10 +02:00
Andreas Schneider 45537315b5 - Updated to a recent VirtualTrees revision
- Updated README accordingly
2009-01-27 10:45:01 +01:00
Andreas Schneider e727aadcf2 - Fixed TfrmEditAccount.RegionDeleted to check, if the region is known (to prevent index out of bounds errors)
- Fixed UfrmMain to be compatible with newer versions of FPC
- Added a slider to frmRegionControl
- Added buttons to add and delete regions to frmRegionControl
- Fixed unsaved regions not being removed in TfrmRegionControl
- Extracted TfrmRegionControl.CheckUnsaved
2008-09-28 22:00:32 +02:00
Andreas Schneider 8a3f00fd4c - Updated version to 0.4.1
- Updated changelog
2008-09-07 15:40:23 +02:00
Andreas Schneider 7399b13fd0 - Fixed WheelDelta not being adjusted right 2008-09-06 23:08:50 +02:00
Andreas Schneider 1c3d624949 - Added client side visualization of area restrictions
- Added an icon to the "Region control" menu item
- Changed the former TAccessLevelChangedPacket and the TLoginResponsePacket to add informations about the writeable areas
- Changed OnModifyUserPacket to update clients according to new accesslevel/area restrictions
- Changed OnModifyRegionPacket to update clients using that particular region
- Fixed UPacketHandlers.ValidateAccess to check the region bounds according to the PtInRect function
2008-08-26 22:48:48 +02:00
Andreas Schneider 85cc0c0066 - Fixed/Removed some compiler warnings and hints
- Some more syntactic changes to UfrmRegionControl.pas
- Implemented region modification and deletion
- Changed the server side region handling to broadcast the changes
- Added safer admin packet registration
- Added some more units to the project files
2008-08-23 23:09:20 +02:00
Andreas Schneider d5069bbb50 - Fixed memory leak in TfrmFilter (not freeing FCheckedHues)
- Fixed memory leak in TfrmMain (not freeing the strings in the location info nodes)
- Rearranged frmEditAccount to allow region handling
- Added region handling to the client side account specific network packets
- Fixed some more code style inconsistencies in UfrmRegionControl.pas
- Fixed redrawing in TfrmRegionControl
- Fixed memory leak in TAccount (not freeing FRegions)
- Fixed the TModifyRegionResponsePacket ID
- Fixed the content of the TUserListPacket to not contain the list of all regions
2008-08-17 20:12:36 +02:00
Andreas Schneider c7d845997e - Changed alignment of frmBoundaries and frmVirtualLayer
- Added ParentFont to all controls to keep a consistent look among all widgetsets and DE settings
2008-08-17 15:38:54 +02:00
Andreas Schneider 2409b861e3 - Added GTK2 support to UGUIPlatformUtils.pas
- Fixed compilation of the ImagingLib with newer Lazarus versions
- Renamed TInvalidConfigVersionExeption to TInvalidConfigException
- Cleanup in ULandscape.pas
- Removed widgetset and platform constraints from the project file
2008-08-09 19:38:09 +02:00
Andreas Schneider 12773fd63e - Fixed "UTiledata" spelling in ULandscape.pas
- Added ISerializable and IInvalidate interfaces
- Implemented a TConfig class and XML storage
- Added some more detailed messages when a login fails to the server console
- Removed obsolete IStream interface references
- Readded lbHue in TfrmHueSettings
2008-03-06 22:55:49 +01:00
Andreas Schneider c0a125042b - Initial import from internal repository 2007-12-21 21:31:58 +01:00