Commit Graph

33 Commits

Author SHA1 Message Date
Oliver Brakmann
00bf032a8f Fix custom map tab offset in cnc mod 2015-05-24 11:45:37 +02:00
Oliver Brakmann
dc08b7a90a Add buttons for map file management to map chooser 2015-05-24 01:49:30 +02:00
Oliver Brakmann
1854d994fd Split map chooser in system- and user-installed map lists 2015-05-24 01:28:22 +02:00
s1ww
db99b816db Implementing search feature in map choosers 2014-09-29 06:59:42 +02:00
Paul Chote
5760e665d3 Clean up map previews. Fixes #5665. 2014-06-21 21:15:11 +12:00
RoosterDragon
9dbbc23967 Make map preview generation fast.
- Change Map.LoadMapTiles and Map.LoadResourceTiles to read the whole stream into memory before processing individual bytes. This removes the cost of significant overhead from repeated calls to ReadUInt8/16.
- Remove significant UI jank caused by the map chooser by not including the placeholder widget. The maps render fast enough that it is no longer worthwhile and it was causing a lot of flushes which were the source of the jank.
- Trigger async generation for all maps when the chooser is loaded. This means in practice all previews will be ready by the time the user begins to scroll the selection. Since generation is fast, there is no issue with scrolling straight to the bottom and having to wait for the backlog to clear.
2014-06-10 11:46:39 +01:00
Paul Chote
28c0310357 Merge pull request #5192 from matija-hustic/spawnchoice
Spawnchoice
2014-05-17 17:53:00 +12:00
Saticmotion
1bf3f3e03e The engine now uses the SDL2.0 scroll events properly.
Scroll speed is now a user preference.
2014-05-16 13:56:22 +02:00
matija-hustic
6eac7a3e05 Smaller spawns+letters. Map dialog width. Unavailable spawns disabled. 2014-05-16 11:23:23 +01:00
Matthias Mailänder
27a73d810f auto reformatting to key: value 2014-04-21 13:49:00 +02:00
Matthias Mailänder
d514689ec7 hard-coded ScrollVelocity to YAML 2014-03-29 19:50:31 +01:00
Paul Chote
4bc5d06c19 Minor map chooser polish tweaks. 2013-04-06 02:28:26 +13:00
Paul Chote
8f7940f969 Move threading into the preview generation. 2013-04-06 01:39:05 +13:00
Paul Chote
792405d789 Polish C&C map chooser layout. 2013-04-06 01:39:04 +13:00
Paul Chote
5423c400f7 Add game-type filter to C&C map chooser. 2013-04-06 01:39:04 +13:00
Paul Chote
c2cc4c2256 Add random map button to the C&C map chooser.
This also fixes issues relating to RunAfterTick
calls being run out of order - the downside being
that the list remains empty until the iteration
is complete. This will be fixed in a following patch.
2013-04-06 01:39:04 +13:00
Paul Chote
4907ea1f0c Center C&C map chooser panel. 2013-04-06 01:39:04 +13:00
Scott_NZ
c33c9e9f69 Fixes #2386 (Add map size to map list) 2012-08-28 16:18:15 +12:00
Chris Forbes
533f9044cc strip redundant Id: elements from chrome yaml 2012-04-09 13:10:40 +12:00
Chris Forbes
57308773a2 grid layout mapchooser in cnc too 2011-10-09 11:12:57 +13:00
Chris Forbes
d3b5939613 remove duplication between CncMapChooserLogic and MapChooserLogic 2011-10-06 22:58:27 +13:00
Paul Chote
dc9b0adba9 Kill unused map installation code. 2011-06-24 17:26:33 +12:00
Paul Chote
81515705ec Add keyboard shortcut support to ButtonWidgets.
Hook up 'escape' and 'return' as appropriate for moving through menus.
2011-05-30 22:15:14 +12:00
Chris Forbes
ef03d46f13 eradicate 'delegate' misuse 2011-05-22 22:02:09 +12:00
Paul Chote
e09cd16042 Normalize scrollpanel 2011-05-21 17:26:19 +12:00
Paul Chote
eb8aafced0 Normalize ButtonWidgets 2011-05-21 17:26:18 +12:00
Paul Chote
2075c7033b Refactor scrollpanel items into their own widget 2011-05-21 17:26:18 +12:00
Paul Chote
033880862d Remove last uses of Bold: in cnc 2011-05-21 17:26:18 +12:00
Paul Chote
fb4a5d4083 Fix mapchooser button order 2011-05-21 17:26:15 +12:00
Paul Chote
1881a6b713 Generalize the map chooser to work anywhere. Hook it up in server creation. 2011-05-21 17:25:42 +12:00
Paul Chote
9f4eba9003 Tweaks. The primary button feels better on the right. 2011-05-21 17:13:20 +12:00
Paul Chote
188a16fc08 Cnc scrollpanel with support for rollover etc. 2011-05-21 16:27:38 +12:00
Paul Chote
d349c5341e Map chooser 2011-05-21 16:27:38 +12:00