Commit Graph

318 Commits

Author SHA1 Message Date
Paul Chote
eb69b697b1 Fix bogus handling of special keyboard characters everywhere else. Textfields now only accept valid characters, support right-delete. 2011-03-18 10:48:12 +13:00
Chris Forbes
caa52b2780 remove CachedView 2011-03-17 22:09:09 +13:00
Chris Forbes
911ecb2ffa add missing copyright header to Mod.cs 2011-03-13 00:00:27 +13:00
Chris Forbes
1e3f365cf2 move all the Game.Exts junk either down into FileFormats or into WorldUtils 2011-03-12 22:33:24 +13:00
Chris Forbes
16cb275a5f fix rendering of very large maps 2011-03-08 19:24:15 +13:00
Chris Forbes
7cf07f5765 make forcing evaluation of lazyness explicit 2011-03-07 19:53:39 +13:00
Chris Forbes
69ea44310b remove another 40M/min of boxing junk by specializing the key comparer on SpriteFont's dict 2011-03-06 08:59:25 +13:00
Chris Forbes
8d1a69e8ff enhance Cache to allow specializing the key comparer 2011-03-06 08:56:39 +13:00
Chris Forbes
269347ef01 specialize pair's comparison to do something sensible with <char,Color> saving 16M. 2011-03-05 21:51:49 +13:00
Chris Forbes
ea40cb015d fix dumb bug in map importer 2011-02-28 22:29:11 +13:00
Chris Forbes
ad2ae8b763 report memory usage for textures 2011-02-24 18:48:55 +13:00
Paul Chote
7f39909dc8 Throw an exception if a reservation is eaten by the GC. Better to die early with a known error than to desync later. 2011-02-24 17:26:14 +13:00
Paul Chote
eb9054a4d6 Fix default ColorRamp 2011-02-17 21:50:16 +13:00
Chris Forbes
f894705568 add chrisf's PNG loader for use by modding tools 2011-02-13 15:31:10 +13:00
Paul Chote
094907c1a9 Update copyright header. Normalize line endings to LF. 2011-02-13 10:38:57 +13:00
Paul Chote
b134ba41f4 Convert Waypoints to actors 2011-02-11 21:50:11 +13:00
Paul Chote
4a7be2e0c8 Remove redundant MapStub fields. 2011-02-11 21:50:11 +13:00
Paul Chote
5f6d2df503 Drop support for older map formats. 2011-02-11 21:50:11 +13:00
Paul Chote
db770eb997 Bake PickAny tiles on map save. Translate maxvalue index to random tile for backwards compat. 2011-02-11 21:50:10 +13:00
Paul Chote
9407c55262 Drop TopLeft and BottomRight from MapFormat 5. Use Bounds directly. 2011-02-11 21:50:10 +13:00
Paul Chote
6ef330c357 Fix Waypoint == Startpoint assumption in MapFormat 5. 2011-02-11 21:50:10 +13:00
Paul Chote
fae355f5b6 Add support for a "Creeps" faction that is hostile to all combatant players. Add a mod field to be used for map installation. 2011-02-11 21:50:10 +13:00
Chris Forbes
6afbb5550a fix some more stuff in utility 2011-02-05 11:54:33 +13:00
Chris Forbes
d3ddefbaa3 add ActionQueue, rather than leaving random variables lying around in Game.cs 2011-01-27 21:46:36 +13:00
Matthew Bowra-Dean
4c053dae24 Elevation for utility app on unix platforms that have gksudo or kdesudo. Small change to Folder.cs to create empty folder if it doesn't exist. 2011-01-27 20:50:03 +13:00
Paul Chote
37fc836b46 Ingame mod selector ui. 2011-01-27 20:50:01 +13:00
Paul Chote
108b90f192 Allow the ra/cnc package dir to be overridden at launch-time. 2011-01-27 20:50:00 +13:00
Paul Chote
9db41f5638 Remove fp from facing calculation. 2011-01-27 12:01:02 +13:00
Chris Forbes
ad0e0a18bd fix format80 encoder to actually work 2011-01-26 21:47:54 +13:00
Chris Forbes
6f807c4501 fix bogus writing of EOF header 2011-01-26 21:47:53 +13:00
Chris Forbes
1b3f769f34 shp writer 2011-01-26 21:47:53 +13:00
Chris Forbes
b362d9f9fc fix bogus interpretation of range parameter 2011-01-09 16:09:58 +13:00
Chris Forbes
70afea85a9 new map format introduced: 4. format3 player colors are automatically upgraded to ColorRamp 2011-01-08 18:17:19 +13:00
Chris Forbes
3426b52247 add ColorRamp type; change everything to use it; maps not yet upgraded 2011-01-08 18:17:18 +13:00
Paul Chote
df460d7407 Add extension methods to Rectangle/RectangleF, remove a pile of ToPoint()'s. 2011-01-05 22:24:11 +13:00
Paul Chote
c6fb1b641e Fix MouseButton orthogonality and remove unnecessary winforms dep. 2011-01-05 12:56:11 +13:00
Chris Forbes
dcbb6ee4eb small tweak to HttpUtil - we don't support 1.1, so dont pretend we do; also, set WebClient.Proxy everywhere to null 2011-01-04 20:02:23 +13:00
Chris Forbes
fe720186f5 add fast HttpUtil.DownloadData() 2011-01-04 17:53:00 +13:00
Paul Chote
6e7156e023 Mousewheel scrolls ScrollPanel. 2011-01-04 14:33:59 +13:00
Chris Forbes
ba2ec557bc fix another dumb bug in ZipFile 2011-01-01 21:24:42 +13:00
Chris Forbes
dffb5293d0 hack up ZipFile to fix #464; filesystem needs rework to be sane 2011-01-01 15:28:07 +13:00
Chris Forbes
cf2ad68a7c add very basic Format80 encoder 2011-01-01 09:27:39 +13:00
Paul Chote
e2d1eec56e Shift Client creation to the client, sent in the handshake response. Fixes the `Newbie' bug and removes a lot of fragmented behaviour on player join. 2010-12-31 12:51:19 +13:00
Paul Chote
cb50182fac Bugfixes: ZipFile.GetInputStream().GetAllBytes/.Length doesn't work; Divide by zero when no shellmaps are available; UseAsShellmap isn't saved by the editor; Duplicate maps crashes game. 2010-12-30 17:43:44 +13:00
Paul Chote
47bbc3a6de Wire up the rest of saving. Save-as will now properly overwrite existing contents. 2010-12-30 17:43:44 +13:00
Matthew Bowra-Dean
428999fc0b Create an empty zip file if it doesn't exist. 2010-12-30 02:21:39 +13:00
Paul Chote
b7975031bc Wire up most of saving again. 2010-12-29 22:13:51 +13:00
Paul Chote
fc6438e311 Use Filepaths instead of IFolders where possible. 2010-12-29 21:25:43 +13:00
Paul Chote
829fe6530a Start fixing the editor 2010-12-29 19:03:45 +13:00
Paul Chote
c3ff679f3a Make map saving independent of Container type. Saving zip/oramap/mix untested as the editor cannot load non-folder maps. 2010-12-29 11:39:26 +13:00