Changeset 65 for trunk/UCore.pas
- Timestamp:
- Jan 23, 2020, 12:21:53 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r51 r65 40 40 private 41 41 procedure GameChange(Sender: TObject); 42 procedure GamePaint(Sender: TObject); 42 43 procedure GameWin(Sender: TObject); 43 44 procedure GameOver(Sender: TObject); … … 80 81 Game.Board.Size := Point(4, 4); 81 82 Game.OnChange := GameChange; 83 Game.OnPaint := GamePaint; 82 84 Game.OnWin := GameWin; 83 85 Game.OnGameOver := GameOver; … … 179 181 procedure TCore.GameChange(Sender: TObject); 180 182 begin 181 FormMain.Redraw;182 183 UpdateInterface; 184 end; 185 186 procedure TCore.GamePaint(Sender: TObject); 187 begin 188 if Assigned(FormMain) then FormMain.Redraw; 183 189 end; 184 190
Note:
See TracChangeset
for help on using the changeset viewer.