Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: samples/pop_pop_win/lib/src/canvas/title_element.dart

Issue 200723008: samples/poppopwin: upgrade to first-class sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixed pkgbuild.status for rename Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 part of ppw_canvas; 1 part of ppw_canvas;
2 2
3 class GameTitleElement extends Thing { 3 class GameTitleElement extends Thing {
4 4
5 GameTitleElement() : super(318, 96); 5 GameTitleElement() : super(318, 96);
6 6
7 void drawOverride(CanvasRenderingContext2D ctx) { 7 void drawOverride(CanvasRenderingContext2D ctx) {
8 _textureData.drawTextureKeyAt(ctx, 'logo_win.png'); 8 _textureData.drawTextureKeyAt(ctx, 'logo_win.png');
9 } 9 }
10 10
11 GameElement get _gameElement => (parent as CanvasThing).parent; 11 GameElement get _gameElement => (parent as CanvasThing).parent;
12 12
13 TextureData get _textureData => _gameElement._textureData; 13 TextureData get _textureData => _gameElement._textureData;
14 14
15 Game get _game => _gameElement._game; 15 Game get _game => _gameElement._game;
16 16
17 void _mouseDirectlyOver(args) { 17 void _mouseDirectlyOver(args) {
18 invalidateDraw(); 18 invalidateDraw();
19 } 19 }
20 } 20 }
OLDNEW
« no previous file with comments | « samples/pop_pop_win/lib/src/canvas/square_element.dart ('k') | samples/pop_pop_win/lib/src/html/game_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698