Changeset 558 for trunk/LocalPlayer/Select.pas
- Timestamp:
- Apr 25, 2024, 6:31:34 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Select.pas
r550 r558 139 139 procedure TListDlg.FormCloseQuery(Sender: TObject; var CanClose: Boolean); 140 140 begin 141 CanClose := Closable or not (Kind in MustChooseKind);141 CanClose := Closable or not (Kind in MustChooseKind); 142 142 end; 143 143 … … 918 918 then 919 919 Include(Shift, ssShift); // don't close list window 920 if (ssLeft in Shift) and not (ssShift in Shift) then920 if (ssLeft in Shift) and not (ssShift in Shift) then 921 921 begin 922 922 if Selected <> -2 then … … 1089 1089 TryAddImpLine(0, I + cpImp); 1090 1090 for I := nWonder to nImp - 1 do 1091 if not (Imp[I].Kind in [ikCommon, ikTrGoods]) and1091 if not (Imp[I].Kind in [ikCommon, ikTrGoods]) and 1092 1092 ((MyRO.NatBuilt[I] = 0) or (Imp[I].Kind = ikNatLocal)) then 1093 1093 TryAddImpLine(0, I + cpImp); … … 1182 1182 Inc(Lines[0]); 1183 1183 for I := 0 to nAdv - 1 do 1184 if not (I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and1184 if not (I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and 1185 1185 ((AdvValue[I] < 2000) or (MyRO.Tech[adMassProduction] > tsNA)) and 1186 1186 ((AdvValue[I] < 1000) or (MyRO.Tech[adScience] > tsNA)) then … … 1194 1194 begin 1195 1195 for I := 0 to nAdv - 1 do 1196 if not (I in FutureTech) and (MyRO.Tech[I] >= tsApplicable) and1196 if not (I in FutureTech) and (MyRO.Tech[I] >= tsApplicable) and 1197 1197 (MyRO.EnemyReport[DipMem[Me].pContact].Tech[I] < tsSeen) then 1198 1198 begin … … 1210 1210 begin 1211 1211 for I := 0 to nAdv - 1 do 1212 if not (I in FutureTech) and (MyRO.Tech[I] < tsSeen) and1212 if not (I in FutureTech) and (MyRO.Tech[I] < tsSeen) and 1213 1213 (MyRO.EnemyReport[DipMem[Me].pContact].Tech[I] >= tsApplicable) then 1214 1214 begin … … 1743 1743 ShowFocus := False; 1744 1744 for I := 0 to nAdv - 1 do 1745 if not (I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and1745 if not (I in FutureTech) and (MyRO.Tech[I] < tsApplicable) and 1746 1746 ((AdvValue[I] < 2000) or (MyRO.Tech[adMassProduction] > tsNA)) and 1747 1747 ((AdvValue[I] < 1000) or (MyRO.Tech[adScience] > tsNA)) and … … 1753 1753 ToggleBtn.Visible := (Kind = kCities) and not Supervising or (Kind = kAdvance) 1754 1754 and ShowFocus or (Kind = kModels) or (Kind = kEModels); 1755 CloseBtn.Visible := not (Kind in MustChooseKind);1755 CloseBtn.Visible := not (Kind in MustChooseKind); 1756 1756 1757 1757 inherited ShowNewContent(NewMode, ForceClose);
Note:
See TracChangeset
for help on using the changeset viewer.