Commit Graph

2091 Commits

Author SHA1 Message Date
Paul Chote
19ead53223 Add a WarnCrush method to ICrushable which is called when a crusher begins to enter the cell. 2011-07-15 20:10:21 +12:00
Paul Chote
74d13286a8 Add a force flag to nudging which skips the ownership and idle checks 2011-07-15 20:10:21 +12:00
Paul Chote
98ae8c7630 Take ownership into account when determining crushability. Fixes the important half of #951 (tanks crushing your own walls). 2011-07-14 21:00:50 +12:00
Paul Chote
47ba4cb285 Add click sounds to ingame buttons 2011-07-14 21:00:45 +12:00
Paul Chote
5f3483ed17 Improve edge-scroll behavior 2011-07-14 20:29:12 +12:00
Paul Chote
b1fe085b4d Remove incorrectly hardcoded "dialog4" from WidgetUtils.GetBorderSizes(). 2011-07-14 20:29:12 +12:00
Paul Chote
06990e356f Simple world tooltip. 2011-07-14 20:29:12 +12:00
Paul Chote
88d68f7790 Containers shouldn't steal mouseover focus 2011-07-14 20:29:11 +12:00
Paul Chote
460451c402 Start implementing new tooltip bits. Test tooltips added for buttons and production palette. 2011-07-14 20:29:11 +12:00
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