Changeset 295 for trunk/LocalPlayer
- Timestamp:
- Mar 8, 2021, 4:24:21 PM (4 years ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r284 r295 216 216 Template := TBitmap.Create; 217 217 Template.PixelFormat := pf24bit; 218 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'City.png', gfNoGamma); 218 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'City.png', 219 [gfNoGamma]); 219 220 CityMapTemplate := TBitmap.Create; 220 221 CityMapTemplate.PixelFormat := pf24bit; 221 LoadGraphicFile(CityMapTemplate, GetGraphicsDir + DirectorySeparator + 'BigCityMap.png', gfNoGamma); 222 LoadGraphicFile(CityMapTemplate, GetGraphicsDir + DirectorySeparator + 'BigCityMap.png', 223 [gfNoGamma]); 222 224 SmallCityMapTemplate := TBitmap.Create; 223 225 SmallCityMapTemplate.PixelFormat := pf24bit; 224 226 LoadGraphicFile(SmallCityMapTemplate, GetGraphicsDir + DirectorySeparator + 'SmallCityMap.png', 225 gfNoGamma);227 [gfNoGamma]); 226 228 SmallCityMap := TBitmap.Create; 227 229 SmallCityMap.PixelFormat := pf24bit; -
trunk/LocalPlayer/Draft.pas
r209 r295 92 92 Template := TBitmap.Create; 93 93 Template.PixelFormat := pf24bit; 94 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'MiliRes.png', gfNoGamma); 94 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'MiliRes.png', 95 [gfNoGamma]); 95 96 end; 96 97 -
trunk/LocalPlayer/NatStat.pas
r290 r295 93 93 Template := TBitmap.Create; 94 94 Template.PixelFormat := pf24bit; 95 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'Nation.png', gfNoGamma); 95 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'Nation.png', 96 [gfNoGamma]); 96 97 end; 97 98 -
trunk/LocalPlayer/TechTree.pas
r288 r295 137 137 Image := TBitmap.Create; 138 138 Image.PixelFormat := pf24bit; 139 LoadGraphicFile(Image, HomeDir + 'Help' + DirectorySeparator + 'AdvTree.png', gfNoGamma); 139 LoadGraphicFile(Image, HomeDir + 'Help' + DirectorySeparator + 'AdvTree.png', 140 [gfNoGamma]); 140 141 141 142 with Image.Canvas do begin -
trunk/LocalPlayer/Term.pas
r294 r295 1123 1123 if UnitStatDlg.Visible then 1124 1124 UnitStatDlg.Close; 1125 end 1126 end 1125 end; 1126 end; 1127 1127 end; 1128 1128 … … 1151 1151 if UnitStatDlg.Visible then 1152 1152 UnitStatDlg.Close; 1153 end 1154 end 1153 end; 1154 end; 1155 1155 end; 1156 1156 … … 1175 1175 UnFocus := -1; 1176 1176 PaintLoc(Loc0); 1177 end 1177 end; 1178 1178 end; 1179 1179 UnFocus := uix; … … 1220 1220 MovieSpeed3Btn.Visible := false; 1221 1221 MovieSpeed4Btn.Visible := false; 1222 end 1222 end; 1223 1223 end; 1224 1224 … … 1249 1249 begin 1250 1250 FreeAndNil(AILogo[p]); 1251 end 1251 end; 1252 1252 end 1253 1253 else … … 1255 1255 if AILogo[p] = nil then 1256 1256 AILogo[p] := TBitmap.Create; 1257 if not LoadGraphicFile(AILogo[p], HomeDir + Name + '.png', gfNoError) then1257 if not LoadGraphicFile(AILogo[p], HomeDir + Name + '.png', [gfNoError]) then 1258 1258 begin 1259 1259 FreeAndNil(AILogo[p]); 1260 end 1261 end 1260 end; 1261 end; 1262 1262 end; 1263 1263 … … 1294 1294 MapValid := false; 1295 1295 PaintAllMaps; 1296 end 1297 end 1296 end; 1297 end; 1298 1298 end; 1299 1299 … … 1463 1463 if DelphiRandom(CountBest) = 0 then 1464 1464 result := j 1465 end 1465 end; 1466 1466 end; 1467 1467 end; … … 1521 1521 IconKind := mikShip; 1522 1522 IconIndex := Ship2Owner; 1523 end 1523 end; 1524 1524 end; 1525 1525 … … 1534 1534 MostCost := TestCost; 1535 1535 IconIndex := imShipComp + i 1536 end 1536 end; 1537 1537 end; 1538 1538 end; … … 1617 1617 sb := TPVScrollbar.Create(Self); 1618 1618 sb.OnUpdate := ScrollBarUpdate; 1619 end; { InitModule }1619 end; 1620 1620 1621 1621 procedure TMainScreen.InitTurn(NewPlayer: integer); … … 2235 2235 Flags and CityRepMask); 2236 2236 UpdatePanel := true; 2237 end 2237 end; 2238 2238 end 2239 2239 else { if mRepList.Checked then } … … 2241 2241 if Flags and CityRepMask <> 0 then 2242 2242 ShowCityList := true 2243 end 2244 end 2243 end; 2244 end; 2245 2245 end; { city loop } 2246 2246 end; // ClientMode=cTurn … … 2261 2261 Play('REVOLUTION'); 2262 2262 Server(sRevolution, me, 0, nil^); 2263 end 2263 end; 2264 2264 end; 2265 2265 end; // ClientMode=cTurn … … 2380 2380 else 2381 2381 Status := Status and not usWaiting; 2382 end 2382 end; 2383 2383 end; 2384 2384 end; // ClientMode=cTurn … … 2478 2478 opAllModel: 2479 2479 s := s + 'All models'; 2480 end 2480 end; 2481 2481 end; 2482 2482 LogDlg.Add(NewPlayer, G.RO[0].Turn, pchar(s)); … … 2486 2486 s := s + '--- ACCEPTED! ---'; 2487 2487 LogDlg.Add(NewPlayer, G.RO[0].Turn, pchar(s)); 2488 end 2488 end; 2489 2489 end; 2490 2490 … … 2842 2842 // this break will ensure speed of fast forward does not depend on cpu speed 2843 2843 Application.ProcessMessages; 2844 end 2844 end; 2845 2845 end; 2846 2846 … … 2921 2921 DipCall(scReject); 2922 2922 EndNego 2923 end 2924 end 2923 end; 2924 end; 2925 2925 end; 2926 2926 end; … … 7170 7170 SetTroopLoc(Loc); 7171 7171 PanelPaint 7172 end 7172 end; 7173 7173 end 7174 7174 else if Sender = mSelectTransport then … … 7189 7189 begin 7190 7190 HaveCities := true; 7191 Break 7191 Break; 7192 7192 end; 7193 7193 if Popup = GamePopup then … … 7289 7289 m.Checked := true; 7290 7290 mDebugMap.Add(m); 7291 end 7291 end; 7292 7292 end; 7293 7293 mSmallTiles.Checked := xxt = 33; … … 7473 7473 begin 7474 7474 SetTroopLoc(-1); 7475 PanelPaint 7475 PanelPaint; 7476 7476 end 7477 7477 else … … 7492 7492 SetTroopLoc(-1); 7493 7493 PanelPaint 7494 end 7495 end 7494 end; 7495 end; 7496 7496 end; 7497 7497 … … 7541 7541 2 + G.ly); 7542 7542 Update; 7543 end 7543 end; 7544 7544 end 7545 7545 else … … 7557 7557 MiniPaint; 7558 7558 PanelPaint; 7559 end 7559 end; 7560 7560 end; 7561 7561 … … 7609 7609 begin 7610 7610 result := (y >= TopBarHeight + MapHeight) or (y >= ClientHeight - PanelHeight) 7611 and ((x < xMidPanel) or (x >= xRightPanel)) 7611 and ((x < xMidPanel) or (x >= xRightPanel)); 7612 7612 end; 7613 7613 … … 7626 7626 GamePopup.Popup(Left + 4, Top + GetSystemMetrics(SM_CYCAPTION) + 4 + 7627 7627 TopBarHeight - 1); 7628 end 7628 end; 7629 7629 end 7630 7630 else if IsPanelPixel(x, y) then … … 7789 7789 CityRepMask := CityRepMask or (1 shl (Tag shr 8)) 7790 7790 else 7791 CityRepMask := CityRepMask and not(1 shl (Tag shr 8)) 7792 end 7791 CityRepMask := CityRepMask and not(1 shl (Tag shr 8)); 7792 end; 7793 7793 end; 7794 7794 … … 7837 7837 else if Flag = tfAllTechs then 7838 7838 TellNewModels 7839 end 7840 end 7839 end; 7840 end; 7841 7841 end; 7842 7842 … … 7908 7908 GamePopup.Popup(Left + 4, Top + GetSystemMetrics(SM_CYCAPTION) + 4 + 7909 7909 TopBarHeight - 1); 7910 exit 7911 end // windows menu button calls game menu7910 exit; 7911 end; // windows menu button calls game menu 7912 7912 end; 7913 7913 -
trunk/LocalPlayer/UnitStat.pas
r290 r295 83 83 Template := TBitmap.Create; 84 84 Template.PixelFormat := pf24bit; 85 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'Unit.png', gfNoGamma); 85 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'Unit.png', 86 [gfNoGamma]); 86 87 end; 87 88
Note:
See TracChangeset
for help on using the changeset viewer.