Chris Forbes
9279161de6
tidy in OreRefinery, Harvester, CncLobbyLogic, ScaredyCat
2011-10-31 09:11:33 +13:00
Chris Forbes
00372f4748
more general tidying in CNC widget code
2011-10-21 22:58:49 +13:00
Chris Forbes
6010034b4a
remove ObjectCreator.Param and all associated nonsense
2011-10-21 18:16:07 +13:00
Chris Forbes
c790c41465
unify bot spawn choosers in CNC and RA
2011-10-18 21:39:12 +13:00
Chris Forbes
7161b8062e
remove useless 'map' arg on ConvertToPreview
2011-10-18 20:55:49 +13:00
Chris Forbes
eddc4cc4b1
remove useless map var in CncLobbyLogic too
2011-10-18 20:47:48 +13:00
Chris Forbes
59fdceb4fd
convert Map.SpawnPoints to int2[]; tidy
2011-10-18 20:34:00 +13:00
Chris Forbes
50010faf58
move duplicates of GetSpawnColors to LobbyInfo
2011-10-18 20:15:31 +13:00
Chris Forbes
89ea4d1e0a
unify C&C and RA colorpicker palette manipulation code
2011-10-18 20:09:24 +13:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
1e32014190
add CountryInfo.Selectable
2011-10-15 13:00:19 +13:00
Chris Forbes
3cf15b870a
remove needless cast in CncLobbyLogic.AddChatLine
2011-10-06 22:58:32 +13:00
Chris Forbes
ec8c5849eb
remove dead SlotDropDownOption type in CncLobbyLogic
2011-10-06 22:58:31 +13:00
Chris Forbes
c76ebe51a5
remove duplicate ShowRaceDropDown
2011-10-06 22:58:31 +13:00
Chris Forbes
8f560d79fd
remove duplicate ShowTeamDropDown
2011-10-06 22:58:30 +13:00
Chris Forbes
6d469a1414
move ShowSlotDropDown to LobbyUtils; kill the cnc clone of it
2011-10-06 22:58:30 +13:00
Chris Forbes
c260635228
remove duplication of lobby name widget setup in CncLobbyLogic
2011-10-06 22:58:28 +13:00
Chris Forbes
d3b5939613
remove duplication between CncMapChooserLogic and MapChooserLogic
2011-10-06 22:58:27 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
7b3de29f05
simplify teamchat code
2011-09-26 08:40:39 +13:00
Chris Forbes
8844ea8e2f
fix #1082 ; setting a bot's color no longer clobbers saved player color
2011-08-09 08:51:35 +12:00
Chris Forbes
a302b7999a
trim usings after prev
2011-07-17 12:25:32 +12:00
Chris Forbes
413dd0cce4
move CncColorPickerLogic into its own file
2011-07-17 12:23:42 +12:00
Chris Forbes
af05856a5f
fix foreach/closure bugs in CncLobbyLogic when setting up spectators
2011-07-17 12:15:20 +12:00
Paul Chote
47ba4cb285
Add click sounds to ingame buttons
2011-07-14 21:00:45 +12:00
Paul Chote
195aecec0e
Add chat notification audio
2011-07-14 20:29:14 +12:00
Paul Chote
f724da5628
Tweak lobby chat panel
2011-07-14 20:29:14 +12:00
Paul Chote
3f468353fc
Fix player name color in lobby chat.
2011-07-14 20:29:14 +12:00
Paul Chote
e58e354c4b
Move IsDisabled checking for OnMouseDown into ButtonWidget. Remove unnecessary bool plumbing.
2011-07-14 20:29:02 +12:00
Paul Chote
bbeaf2047b
Remove OnMouseDown from Widget. Define it on just the widgets that want it.
2011-07-14 20:29:02 +12:00
Paul Chote
9b3cedd37f
Show map title in the lobby
2011-07-01 23:37:53 +12:00
Paul Chote
3dec6016e7
Remove diplomacy menu, lock teams option (Feature #950 ).
2011-07-01 23:19:50 +12:00
Paul Chote
ec3d467858
HackyAI supports teams ( Fixes #917 ).
2011-06-23 17:41:38 +12:00
Paul Chote
088573f2b7
Disable controls instead of hiding when ready. Fixes #889
2011-06-20 22:50:32 +12:00
Paul Chote
7838896c81
Display bot spawns to everyone, not just the host.
2011-06-20 22:50:32 +12:00
Paul Chote
e00bfd487d
Hook up the spawn selector.
2011-06-20 22:50:31 +12:00
Paul Chote
c80fbaacd5
Add a spawnpoint selector for bots (selector logic unimplemented)
2011-06-20 22:50:30 +12:00
Paul Chote
b4ce97691b
Use images instead of checkboxes for non-editable status fields and fix player template naming: local/remote -> editable/non-editable.
2011-06-20 22:50:30 +12:00
Paul Chote
ac68f9dab3
Remove Bot: label from bots in the slot dropdown.
2011-06-20 22:50:30 +12:00
Paul Chote
4f172d7ed8
Make bots first-class players.
...
- Bots have their own Clients, with unique ClientIDs
- Hosts can set bot team/color in the lobby
- Bots are kicked when switching to a smaller map without enough slots
- Order validator assumes that only client 0 has permission to issue bot orders
2011-06-20 22:50:29 +12:00
Paul Chote
19d74fef52
Server support for host changing other client's race/color/team/spawn
2011-06-20 22:50:28 +12:00
Paul Chote
d2df5722b5
Fix the lobby slots.
...
- lobbyInfo.Slots is now a dictionary, keyed by the name of the PlayerReference that the slot is tied to.
- LockRace/Color/Team is now specified on the slot, avoiding map lookups in the lobby
- Observers are no longer tied to slots -> players will join as observers instead of crashing the game if there are no available slots
- Observers are able to change their name and color
2011-06-20 22:50:27 +12:00
Paul Chote
bcbd18bb52
Skirmish mode starts with a bot selected.
2011-06-20 22:50:22 +12:00
Paul Chote
2ebb2ae921
Remove static handler crap from widget delegates - Register/unregister events manually (ra & cnc).
2011-06-01 19:15:55 +12:00
Paul Chote
a288c5df15
Use static ctors for static setup.
2011-05-30 22:15:14 +12:00
Chris Forbes
ef03d46f13
eradicate 'delegate' misuse
2011-05-22 22:02:09 +12:00