Commit Graph

3625 Commits

Author SHA1 Message Date
Oliver Brakmann
8cec848a0f Add a mission objectives GUI panel 2014-08-08 13:35:49 +02:00
Oliver Brakmann
7546e8237e Make CheckboxWidget honour GetText() 2014-08-08 13:35:49 +02:00
Oliver Brakmann
a3bf3e7403 Add support for mission objectives
Objectives can be either primary or secondary objectives. Primary ones
influence the outcome of the game.  If all primary objectives are
completed the game is won, and lost when any of them fails.

Objectives can be added at any stage during the game, allowing to react
dynamically to game events.

The objectives backend only contains the information about the
objectives themselves. It does not check if objectives are completed or
failed.  Instead, the state of objectives must be manually marked. The
backend, however, does check whether the game is won or lost.
2014-08-07 16:56:17 +02:00
Paul Chote
bf5da145b0 Introduce IUpgradable and purchasable unit upgrades. 2014-08-07 20:40:47 +12:00
obrakmann
2512bc52f8 Merge pull request #6134 from Mailaender/lobby-notify-followup
Made the lobby notifications less spammy and added some more cases
2014-08-06 19:58:15 +02:00
Curtis Shmyr
b572c9b5eb Add an ingame message if a Lua FatalError call occurs 2014-08-05 22:37:00 -06:00
atlimit8
898bf4959a Remove sub-cell offset bounds checking 2014-08-04 18:09:26 -05:00
atlimit8
9b30c21f93 Load subcells and default subcell index from mod.yaml 2014-08-04 18:09:26 -05:00
atlimit8
4b7537bb13 Moved MobileInfo.SubCellOffsets to Map (dropping static) & added Map.SubCellsDefaultIndex 2014-08-04 18:09:26 -05:00
atlimit8
43478dd500 enum SubCell => int & Dictionary<SubCell, WVec> => WVec[] 2014-08-04 18:09:26 -05:00
reaperrr
8798658b35 New Explosion system code changes. 2014-08-04 23:24:51 +02:00
Taryn Hill
b6fd757672 Merge pull request #6030 from UberWaffe/CustomWarheads
Custom Warheads refactor
2014-08-03 10:35:36 -05:00
UberWaffe
c972b39687 Custom Warheads refactor
Changes included:

Warhead code split out of weapon code and refactored.
Warhead functionality now split into several classes, each handling one effect/impact.

Additional custom warheads can now be defined and called via yaml.
Custom warheads inherit the abstract class Warhead,
which provides target check functions.

Custom warheads have to define their own impact functions,
and can also define their own replacement for check
functions.
2014-08-03 17:10:44 +02:00
Matthias Mailänder
0502d90a05 Merge pull request #6084 from pchote/renderpreview
Improve actor preview rendering
2014-08-03 12:51:21 +02:00
Matthias Mailänder
b382c0339f only notify when the lobby settings differ from the default 2014-08-03 09:31:25 +02:00
Paul Chote
0006f4dd2f Remaining hotkey changes. 2014-08-03 19:28:10 +12:00
Paul Chote
5d90b2016f Change status bar hotkeys to match C&C3. 2014-08-03 19:28:10 +12:00
Paul Chote
8b5fd454df Change unit selection hotkeys to match C&C3. 2014-08-03 19:28:10 +12:00
Paul Chote
9626654f87 Redefine orderbutton and menu hotkeys. 2014-08-03 19:28:09 +12:00
Paul Chote
43bd8a361e Implement new production hotkeys. Fixes #3915, #4142, #4181. 2014-08-03 19:28:07 +12:00
Paul Chote
ef2f909f65 Reorganize IBodyOrientation. 2014-08-03 19:20:40 +12:00
ScottNZ
ca4b947037 Rename IAcceptInfiltrator to INotifyInfiltrated 2014-08-02 22:36:44 +12:00
Matthias Mailänder
9422285aa2 Merge pull request #6108 from havok13888/LobbyInfoNotification
Closes #6012
2014-08-02 07:19:23 +02:00
havok13888
65c77677d4 Inform client about changes in lobby options 2014-08-01 15:41:02 -05:00
Matthias Mailänder
f84b1c145e Merge pull request #6098 from pchote/select-hotkey
Fix unit selection hotkeys for players.
2014-07-31 19:25:58 +02:00
Matthias Mailänder
6ef315217a Merge pull request #6113 from atlimit8/FieldLoadWVecArray
Load WVec[] from MiniYaml
2014-07-31 19:21:56 +02:00
ScottNZ
9f2e0e181f Add ITraitInfo constraint to Requires<T> 2014-07-31 22:43:37 +12:00
atlimit8
d79ab8070d Added the abiltity to load WVec[] from MiniYaml 2014-07-30 14:34:28 -05:00
Paul Chote
13656710ca Fix unit selection hotkeys for players. Fixes #5753.
This also explicitly disables them for spectators.
2014-07-29 23:32:47 +12:00
Oliver Brakmann
ad2327828d Make actors outside map borders selectable for their owner
PR #5967 only made planes not lose their selection when they strayed
outside the map border. This PR makes it possible to select them when
they already are outside the map.  It also ensures that the selection
decorations are drawn.  Rank designations, however, will disappear when
a unit leaves the map.

Fixes #5651 for real, then.
2014-07-26 11:05:41 +02:00
Matthias Mailänder
2d02e3f04a Merge pull request #5972 from pchote/new-ra-ui
Closes #2394
Closes #2385
Closes #4980
Closes #5108
2014-07-26 10:22:03 +02:00
Matthias Mailänder
2637c99d25 Merge pull request #5991 from obrakmann/fix5976
Make sure actors are removed from control groups when captured
2014-07-26 09:25:19 +02:00
Paul Chote
90403ad40b Fix mouseover filtering in cloned widgets. 2014-07-26 18:20:06 +12:00
Paul Chote
4fb9e59402 Allow ImageWidget to filter mouse events. 2014-07-26 18:20:06 +12:00
Paul Chote
d8b6eac64e Fix mouse event filtering in BackgroundWidget. 2014-07-26 18:20:06 +12:00
Matthias Mailänder
1d0538526d Merge pull request #6040 from pchote/more-renderables
Convert RenderAfterWorld to use Renderables.
2014-07-26 07:28:53 +02:00
atlimit8
0319b8cbda INotifyCreated 2014-07-25 17:07:15 -05:00
Paul Chote
0884722c4b Change IOrderGenerator.RenderAfterWorld to return Renderables. 2014-07-25 21:14:39 +12:00
Paul Chote
da6ecbf92e Change IPostRenderSelection and IPlaceBuildingDecoration to return renderables. 2014-07-25 21:14:39 +12:00
Paul Chote
8ac9477cd9 Add UISpriteRenderable for screen-space decorations. 2014-07-25 21:14:39 +12:00
Paul Chote
1beff77c6a Split selectable rendering into *Renderables. 2014-07-25 21:14:39 +12:00
Paul Chote
c4bcf0af46 Introduce RangeCircleRenderable. 2014-07-25 21:14:39 +12:00
Taryn Hill
b4cecff74e ClonesProductionUnits:
string[] CloneableTypes	checks Cloneable.Types

Cloneable:
	string[] Types checked by ClonesProductionUnits.CloneableTypes

Added INotifyOtherProduction
	for notifying self when another actor
	produces a unit.
2014-07-24 19:08:08 -05:00
Matthias Mailänder
79a9b531ea Merge pull request #5941 from reaperrr/spread-upgrade
Added MaxSpread for more control over maximum area of damage
2014-07-24 22:18:03 +02:00
Paul Chote
8837b3453c Merge pull request #6036 from Mailaender/trait-export-decimal-separators
Fixed country specific decimal separators in the traits documentation
2014-07-24 20:42:12 +12:00
Paul Chote
b2e7cf8edb Merge pull request #5853 from RoosterDragon/actormap-perf
Sped up ActorMap.ActorsInBox.
2014-07-24 20:40:15 +12:00
Paul Chote
a7fc41b87e Merge pull request #5943 from pavlos256/fieldloader
Fieldloader and non-public fields
2014-07-24 20:29:25 +12:00
Paul Chote
a2e6feac2a Merge pull request #5850 from pavlos256/game-loop
Improve the game loop
2014-07-24 20:24:08 +12:00
Matthias Mailänder
d830a0a7ae Merge pull request #6029 from pchote/gametomods
Move *Renderables and Render* out of Game.
2014-07-23 06:54:42 +02:00
Matthias Mailänder
8ce65f7310 same for double 2014-07-23 06:33:52 +02:00