Changeset 41 for trunk/UFormMain.pas


Ignore:
Timestamp:
Dec 18, 2016, 12:49:59 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Avoid loading images from files by putting them to hidden form as component.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UFormMain.pas

    r35 r41  
    4646{$R *.lfm}
    4747
     48uses
     49  UFormImages;
     50
    4851{ TFormMain }
    4952
     
    7073begin
    7174  Randomize;
     75  Engine.ImagePassenger.Picture.Assign(FormImages.ImagePassenger.Picture);
     76  Engine.ImageLocomotive.Picture.Assign(FormImages.ImageLocomotive.Picture);
    7277  Engine.Map.Size := Point(PaintBox1.Width, PaintBox1.Height);
    7378  Engine.View.DestRect := Rect(0, 0, PaintBox1.Width, PaintBox1.Height);
Note: See TracChangeset for help on using the changeset viewer.