Changeset 130 for trunk/Forms/UFormNew.pas
- Timestamp:
- Jun 18, 2017, 11:27:44 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.pas
r125 r130 90 90 procedure Translate; 91 91 procedure ReloadView; 92 procedure UpdateInterface; 92 93 procedure Load(Game: TGame); 93 94 procedure Save(Game: TGame); … … 229 230 ListView1.Items.Count := Players.Count; 230 231 ListView1.Refresh; 231 ButtonPlayerRemove.Enabled := Assigned(ListView1.Selected) and (Players.Count > 1); 232 ButtonPlayerAdd.Enabled := Players.Count < MaxPlayerCount; 232 Translate; 233 UpdateInterface; 234 end; 235 236 procedure TFormNew.UpdateInterface; 237 begin 238 APlayerRemove.Enabled := Assigned(ListView1.Selected) and (Players.Count > 2); 239 APlayerAdd.Enabled := Players.Count < MaxPlayerCount; 233 240 APlayerModify.Enabled := Assigned(ListView1.Selected); 234 241 EditImageFile.Enabled := ComboBoxMapShape.ItemIndex = Integer(msImage); 235 242 ButtonImageBrowse.Enabled := ComboBoxMapShape.ItemIndex = Integer(msImage); 236 Translate;237 243 end; 238 244
Note:
See TracChangeset
for help on using the changeset viewer.