Chris Forbes
2ec88a6f64
remove duplicated NextPowerOf2 definition
2011-07-14 20:29:11 +12:00
Chris Forbes
2259a0e7a5
remove duplication of DrawSelectionBox
2011-07-14 20:29:11 +12:00
Chris Forbes
6f477a2c14
fix broken detection of desktop resolution on linux
2011-07-14 20:29:10 +12:00
Chris Forbes
b06647a079
reduce noise in Renderer
2011-07-14 20:29:10 +12:00
Chris Forbes
ceaca47747
don't use ScrollDirection.Set when it's not needed
2011-07-14 20:29:10 +12:00
Chris Forbes
1196948a13
remove duplicated box-drawing code from WICW
2011-07-14 20:29:10 +12:00
Chris Forbes
2a7be6debd
add missing using for MouseScrollType
2011-07-14 20:29:10 +12:00
Chris Forbes
496135d321
clean up ViewportScrollControllerWidget.GetCursor
2011-07-14 20:29:10 +12:00
Chris Forbes
2da523e824
drop unused WorldRenderer.DrawBox
2011-07-14 20:29:10 +12:00
Chris Forbes
98ebb7c87e
add DrawRect helper to LineRenderer, use it in both Radar*Widgets
2011-07-14 20:29:09 +12:00
Chris Forbes
5633d84d21
add lint pass to check whether types with ISync actually have any [Sync] members
2011-07-14 20:29:09 +12:00
Chris Forbes
513b852a67
fix [Sync] being allowed in places that don't make sense
2011-07-14 20:29:09 +12:00
Chris Forbes
74335f0734
fix bogus indent in ObjectCreator
2011-07-14 20:29:09 +12:00
Chris Forbes
60a3f170ab
clean up remaining non-generic GetValue uses
2011-07-14 20:29:09 +12:00
Chris Forbes
913ca89d4f
use generic GetValue<> in VoiceInfo
2011-07-14 20:29:09 +12:00
Chris Forbes
4e1c845303
add common version of AreMutualAllies to WorldUtils
2011-07-14 20:29:07 +12:00
Chris Forbes
c9c31345aa
fix broken indent in WorldUtils.cs
2011-07-14 20:29:07 +12:00
Chris Forbes
e44b965785
fixed #999 -- replace order/first[ordefault] with .ClosestTo(point)
2011-07-14 20:29:07 +12:00
Chris Forbes
8610222e2c
remove spurious typenames from WidgetUtils.WrapText
2011-07-14 20:29:05 +12:00
Chris Forbes
5b5bca9903
split FormatTime, FormatTimeSeconds
2011-07-14 20:29:05 +12:00
Chris Forbes
d40b071ab1
tidy in WidgetUtils
2011-07-14 20:29:05 +12:00
Chris Forbes
99b8c765c7
fixed #996 -- Rules.InstalledMusic
2011-07-14 20:29:05 +12:00
Chris Forbes
cd63da85d8
remove FieldLoader.LoadAttribute; replace with FieldLoader.IgnoreAttribute
2011-07-14 20:29:03 +12:00
Chris Forbes
a4648cfbcc
move SheetSize to Graphics section of settings
2011-07-14 20:29:03 +12:00
Chris Forbes
dcd9627c22
fixed #989 : don't do renderer setup in a reflected call.
2011-07-14 20:29:03 +12:00
Chris Forbes
a07e151ab5
drop bogus comment in renderer
2011-07-14 20:29:03 +12:00
Paul Chote
0c95b43c87
Save some dumb perf in Widget.RenderBounds.
2011-07-14 20:29:03 +12:00
Paul Chote
e9d67860de
Proper mouseover support.
2011-07-14 20:29:02 +12:00
Paul Chote
1114293035
Apply consistent widget method names. Semantic change: Widgets that want to tick when !Visible must override TickOuter() instead of Tick().
2011-07-14 20:29:02 +12:00
Paul Chote
193999a040
Move OnMouseUp onto ButtonWidget and drop its unnecessary plumbing.
2011-07-14 20:29:02 +12:00
Paul Chote
8189ef109e
Reorganize Widget into static/nonstatic.
2011-07-14 20:29:02 +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
7a69daa99c
Remove Widget.OnMouseMove.
2011-07-14 20:29:01 +12:00
Paul Chote
c1f7152857
Change Widget key support: Move (unused) Widget.OnKeyPress hook onto ButtonWidget; Buttons will respond to keys with modifiers.
2011-07-14 20:28:35 +12:00
Paul Chote
c81735911e
Add Funcs for custom label Color/ContrastColor
2011-07-01 23:04:48 +12:00
Paul Chote
97186d8bd9
Support custom checkbox symbols. Add a crossed variant to C&C. Correctly copies checkbox state when copying checkboxes.
2011-07-01 23:04:48 +12:00
Paul Chote
7c63138e3f
Mechanism for showing mission objectives in the ingame menu. Fixes #948 .
2011-07-01 02:34:30 +12:00
Chris Forbes
0e45968573
remove 'private' keyword where possible
2011-06-29 09:15:39 +12:00
Paul Chote
b64c5e001e
Add support for C&C Covert Ops music (fixes half of #824 ).
2011-06-25 14:43:45 +12:00
Paul Chote
5e220a9ac7
Fix #306
2011-06-21 20:35:08 +12:00
Paul Chote
1cdfd44d43
Fix #897 .
2011-06-21 03:40:39 +12:00
Paul Chote
ce65127e34
Fix observer tooltips (Bug #769 )
2011-06-21 02:51:50 +12:00
Paul Chote
c014731a2f
Fix Map.PlayerCount
2011-06-20 22:50:31 +12:00
Paul Chote
bafa411329
Expose LockTeam/LockSpawn to mappers
2011-06-20 22:50:31 +12:00
Paul Chote
e00bfd487d
Hook up the spawn selector.
2011-06-20 22:50:31 +12:00
Paul Chote
e7543f28df
Fix naming of Player.PlayerReference.
2011-06-20 22:50:29 +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
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
e934baa6e9
Better bot spawning code; better random color and proper player names.
2011-06-20 22:50:27 +12:00