Changeset 194 for trunk/Forms/UFormNew.pas
- Timestamp:
- May 14, 2018, 5:38:45 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.pas
r193 r194 36 36 EditImageFile: TEdit; 37 37 Label1: TLabel; 38 Label10: TLabel; 38 39 Label11: TLabel; 39 40 Label12: TLabel; … … 61 62 RadioGroupGrowAmount: TRadioGroup; 62 63 RadioGroupGrowCells: TRadioGroup; 64 SpinEditMaxPower: TSpinEdit; 63 65 SpinEditServerPort: TSpinEdit; 64 66 SpinEditCityPercent: TSpinEdit; … … 98 100 procedure SpinEditMapSizeXChange(Sender: TObject); 99 101 procedure SpinEditMapSizeYChange(Sender: TObject); 102 procedure SpinEditMaxPowerChange(Sender: TObject); 100 103 procedure TrackBarSizeYChange(Sender: TObject); 101 104 procedure TrackBarSizeXChange(Sender: TObject); … … 191 194 end; 192 195 196 procedure TFormNew.SpinEditMaxPowerChange(Sender: TObject); 197 begin 198 UpdateInterface; 199 end; 200 193 201 procedure TFormNew.TrackBarSizeYChange(Sender: TObject); 194 202 begin … … 268 276 SpinEditServerPort.Enabled := RadioButtonModeNetworkServer.Checked; 269 277 ListViewServers.Enabled := RadioButtonModeNetworkClient.Checked; 278 PanelChat.Visible := RadioButtonModeNetworkClient.Checked or RadioButtonModeNetworkServer.Checked; 279 SpinEditNeutralUnits.MaxValue := SpinEditMaxPower.Value; 270 280 end; 271 281 … … 402 412 EditServerAddress.Text := LocalNetworkAddress; 403 413 SpinEditServerPort.Value := LocalNetworkPort; 414 SpinEditMaxPower.Value := Game.MaxPower; 404 415 end; 405 416 end; … … 429 440 Game.FogOfWar := CheckBoxFogOfWar.Checked; 430 441 Game.BridgeEnabled := CheckBoxBridges.Checked; 442 Game.MaxPower := SpinEditMaxPower.Value; 431 443 end; 432 444 end;
Note:
See TracChangeset
for help on using the changeset viewer.