Changeset 401 for tags/1.4.0/Forms


Ignore:
Timestamp:
Jan 6, 2025, 11:12:12 AM (15 months ago)
Author:
chronos
Message:

Merged revision(s) 396-400 from trunk:

  • Fixed: Charts form chart was not drawn on the initial show.
  • Fixed: Run Randomize only once at startup.
  • Fixed: Store current state of RandSeed to game save.
  • Fixed: Load/store RandSeed as its Cardinal type instead of Integer.
  • Modified: Maximum number of player set to 12.
  • Fixed: Standard yellow color is too bright and not readable with white text. Used darker yellow instead.
  • Fixed: Integrity checks for id references loaded from game file.
  • Fixed: Wrong players and units id recalculation during game save causing bad references.
  • Modified: Set new created players as computer.
  • Fixed: Scale charts line width.
  • Fixed: Item form made bigger to avoid showing scrollbars.
  • Fixed: Item form string control made shorter.
Location:
tags/1.4.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tags/1.4.0

  • tags/1.4.0/Forms/FormCharts.pas

    r394 r401  
    5555procedure TFormCharts.FormShow(Sender: TObject);
    5656begin
    57   Redraw;
    5857  Translate;
    5958  if (ComboBox1.ItemIndex = -1) and (ComboBox1.Items.Count > 0) then
    6059    ComboBox1.ItemIndex := 0;
    6160  Chart1.BackColor := ThemeManager.ActualTheme.ColorWindow;
     61  Redraw;
    6262end;
    6363
     
    7373    NewSeries := TLineSeries.Create(nil);
    7474    NewSeries.LinePen.Color := Color;
     75    NewSeries.LinePen.Width := Scale96ToScreen(1);
    7576    for X := 0 to TurnStats.Count - 1 do begin
    7677      if ComboBox1.ItemIndex = 0 then NewSeries.AddXY(X, TurnStats[X].OccupiedCells)
  • tags/1.4.0/Forms/FormNew.pas

    r394 r401  
    498498procedure TFormNew.FormShow(Sender: TObject);
    499499begin
    500   Randomize;
    501500  NewRandSeed := RandSeed;
    502501  ReloadView;
     
    659658procedure TFormNew.ButtonRandomizeClick(Sender: TObject);
    660659begin
    661   Randomize;
    662660  NewRandSeed := RandSeed;
    663661  MapPreviewRedraw;
Note: See TracChangeset for help on using the changeset viewer.