Commit Graph

1969 Commits

Author SHA1 Message Date
Chris Forbes
aa772db9a7 fix crashy behavior in TextFieldWidget 2011-05-21 17:26:19 +12:00
Chris Forbes
310ecc34ce clean up usings everywhere 2011-05-21 17:26:18 +12:00
Paul Chote
eb8aafced0 Normalize ButtonWidgets 2011-05-21 17:26:18 +12:00
Paul Chote
3eb3ae76f0 Fix progressbars 2011-05-21 17:26:18 +12:00
Paul Chote
d7f009b218 Use the font dictionary everywhere 2011-05-21 17:26:18 +12:00
Paul Chote
e1c8658fdc Fonts are now defined in mod.yaml 2011-05-21 17:26:18 +12:00
Paul Chote
ab423fbe8c Mark some bits obsolete 2011-05-21 17:26:18 +12:00
Paul Chote
cb565e5d3c Wire up the settings panel 2011-05-21 17:26:17 +12:00
Paul Chote
1526b6ff37 Make Game.LoadWidget / Widget.LoadWidget consistent. 2011-05-21 17:26:16 +12:00
Paul Chote
21267688b0 Split the colorpicker logic into its own handler. Game.LoadWidget no longer adds the loaded widget to the RootWidget. 2011-05-21 17:26:16 +12:00
Paul Chote
529ed51034 Nit: use ServerSettings to pass info to the server 2011-05-21 17:26:16 +12:00
Paul Chote
f4ea4c5daa Add a WidgetArgs type to work around gmcs not understanding lambda -> Action -> object. 2011-05-21 17:26:16 +12:00
Paul Chote
603379aa96 Fix nits 2011-05-21 17:26:16 +12:00
Paul Chote
5fffc9d816 Don't tell the master server about local servers 2011-05-21 17:26:16 +12:00
Paul Chote
be79529d9e Perf debug 2011-05-21 17:26:15 +12:00
Paul Chote
00f0773dc1 Clear state correctly on mod transition 2011-05-21 17:26:15 +12:00
Paul Chote
80d5b67bb9 Music installation 2011-05-21 17:26:15 +12:00
Paul Chote
86159f9ddc Fix lobby color picker 2011-05-21 17:26:15 +12:00
Paul Chote
814845730f Work around a race condition with local servers. 2011-05-21 17:26:14 +12:00
Paul Chote
33a4f5e29e Support loopback servers for solo play 2011-05-21 17:26:14 +12:00
Paul Chote
b1a6eec3d3 Stop using MasterServerQuery in server browser 2011-05-21 17:26:14 +12:00
Paul Chote
37577afc36 Polish 2011-05-21 17:26:13 +12:00
Paul Chote
6a1f3cfc18 Installing from CD reimplemented 2011-05-21 17:26:13 +12:00
Paul Chote
372d2f5426 Saner load code for cnc. Installing not yet implemented. 2011-05-21 17:26:10 +12:00
Paul Chote
3d347848f3 Remove another hardcoded widget reference and prepare for saner init code. 2011-05-21 17:25:45 +12:00
Paul Chote
d95138b600 Use the same mechanism for loading ingame and shellmap ui. 2011-05-21 17:25:45 +12:00
Paul Chote
8957caeaca Basic ingame menu reimplemented. 2011-05-21 17:25:44 +12:00
Paul Chote
fdf9927854 Remember the last map. Disable the server desc and password fields. Draw the chat entry box on top of the display box. 2011-05-21 17:25:44 +12:00
Paul Chote
5c59f7703d Reimplement connecting / connection failed dialogs. 2011-05-21 17:25:43 +12:00
Paul Chote
1e66d57ef1 Refactor font code out of LabelWidget 2011-05-21 16:28:17 +12:00
Paul Chote
188a16fc08 Cnc scrollpanel with support for rollover etc. 2011-05-21 16:27:38 +12:00
Paul Chote
6cb0cb7d0e Can now start a game and disconnect from lobby without triggering a reload.
It is now possible to crash the game by starting a new server before the previous one has had time to timeout and release the port binding (the previous loadscreen pause meant this was always hidden).
2011-05-21 16:27:37 +12:00
Paul Chote
845b32281d Reimplement server browser 2011-05-21 16:27:37 +12:00
Paul Chote
a3b430c24a Remove engine references to MAINMENU_BG. Don't push the menu background onto the window list. Crashes whenever a delegate tries to open MAINMENU_BG. 2011-05-21 16:27:37 +12:00
Chris Forbes
24d9e292dd wire up ButtonWidget.VisualHeight to ChromeMetrics as an example 2011-05-21 16:27:06 +12:00
Chris Forbes
b183366d54 add ChromeMetrics for values we dont want to duplicate everywhere 2011-05-21 16:27:06 +12:00
Paul Chote
c270f9ff4a Refactor text wrapping into WidgetUtils 2011-05-21 16:27:06 +12:00
Paul Chote
f3a54a802a Add color support to LabelWidget 2011-05-21 16:27:06 +12:00
Paul Chote
24712825eb Throw a useful exception on duplicated widget Id. 2011-05-21 16:27:06 +12:00
Paul Chote
388324dd69 Throw a sane exception when trying to load an invalid widget. 2011-05-21 16:27:06 +12:00
Chris Forbes
178e4664c7 790 fixed -- Widget.EventHandler was never used, removed 2011-05-21 16:27:06 +12:00
Chris Forbes
ec82e6fe68 make ScrollPanelWidget mouse interaction cheaper 2011-05-21 16:27:06 +12:00
Chris Forbes
0c9a1a03ce make ProgressBarWidget cheaper 2011-05-21 16:27:05 +12:00
Chris Forbes
4d4a07b791 make ScrollPanelWidget cheaper 2011-05-21 16:27:04 +12:00
Chris Forbes
9ee7fcdff1 mark some nonsense in LabelWidget 2011-05-21 16:27:03 +12:00
Chris Forbes
8d78ad2fec fix comment in CheckboxWidget 2011-05-21 16:27:03 +12:00
Chris Forbes
788e4780c6 s/order/event/ in ButtonWidget 2011-05-21 16:27:03 +12:00
Chris Forbes
8adca1960d fix comment spelling in ButtonWidget 2011-05-21 16:27:02 +12:00
Chris Forbes
1cf63ec803 Make ButtonWidget cheaper 2011-05-21 16:27:01 +12:00
Chris Forbes
072a42536e Make DropDownButtonWidget cheaper 2011-05-21 16:27:01 +12:00