Changeset 194 for trunk/Packages/CevoComponents
- Timestamp:
- May 7, 2020, 8:39:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r192 r194 199 199 Gamma: Integer; // global gamma correction (cent) 200 200 201 procedure LoadAssets; 201 202 procedure UnitInit; 202 203 procedure UnitDone; … … 1486 1487 P: integer; 1487 1488 begin 1488 for Section := Low(TFontType) to High(TFontType) do1489 UniFont[Section] := TFont.Create;1490 1491 1489 Section := ftNormal; 1492 1490 AssignFile(FontScript, LocalizedFilePath('Fonts.txt')); 1493 1491 try 1494 Reset( fontscript);1495 while not E OF(FontScript) do begin1492 Reset(FontScript); 1493 while not Eof(FontScript) do begin 1496 1494 ReadLn(FontScript, s); 1497 1495 if s <> '' then … … 1549 1547 end; 1550 1548 1549 procedure LoadAssets; 1550 begin 1551 LoadPhrases; 1552 LoadFonts; 1553 LoadGraphicFile(Templates, GetGraphicsDir + DirectorySeparator + 1554 'Templates.png', gfNoGamma); 1555 LoadGraphicFile(Colors, GetGraphicsDir + DirectorySeparator + 'Colors.png'); 1556 LoadGraphicFile(Paper, GetGraphicsDir + DirectorySeparator + 'Paper.jpg'); 1557 LoadGraphicFile(BigImp, GetGraphicsDir + DirectorySeparator + 'Icons.png'); 1558 end; 1559 1551 1560 procedure UnitInit; 1561 var 1562 Section: TFontType; 1552 1563 begin 1553 1564 Gamma := 100; … … 1559 1570 {$ENDIF} 1560 1571 1561 LoadPhrases;1562 1563 1572 LogoBuffer := TBitmap.Create; 1564 1573 LogoBuffer.PixelFormat := pf24bit; 1565 1574 LogoBuffer.SetSize(wBBook, hBBook); 1566 1575 1567 LoadFonts; 1576 for Section := Low(TFontType) to High(TFontType) do 1577 UniFont[Section] := TFont.Create; 1568 1578 1569 1579 nGrExt := 0; … … 1572 1582 Templates := TBitmap.Create; 1573 1583 Templates.PixelFormat := pf24bit; 1574 LoadGraphicFile(Templates, GetGraphicsDir + DirectorySeparator +1575 'Templates.png', gfNoGamma);1576 1584 Colors := TBitmap.Create; 1577 1585 Colors.PixelFormat := pf24bit; 1578 LoadGraphicFile(Colors, GetGraphicsDir + DirectorySeparator + 'Colors.png');1579 1586 Paper := TBitmap.Create; 1580 1587 Paper.PixelFormat := pf24bit; 1581 LoadGraphicFile(Paper, GetGraphicsDir + DirectorySeparator + 'Paper.jpg');1582 1588 BigImp := TBitmap.Create; 1583 1589 BigImp.PixelFormat := pf24bit; 1584 LoadGraphicFile(BigImp, GetGraphicsDir + DirectorySeparator + 'Icons.png');1585 1590 MainTexture.Image := TBitmap.Create; 1586 1591 MainTextureAge := -2; … … 1588 1593 InitOrnamentDone := False; 1589 1594 GenerateNames := True; 1595 1596 LoadAssets; 1590 1597 end; 1591 1598
Note:
See TracChangeset
for help on using the changeset viewer.