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

Side by Side Diff: samples/third_party/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
(Empty)
1 part of ppw_canvas;
2
3 class GameTitleElement extends Thing {
4
5 GameTitleElement() : super(318, 96);
6
7 void drawOverride(CanvasRenderingContext2D ctx) {
8 _textureData.drawTextureKeyAt(ctx, 'logo_win.png');
9 }
10
11 GameElement get _gameElement => (parent as CanvasThing).parent;
12
13 TextureData get _textureData => _gameElement._textureData;
14
15 Game get _game => _gameElement._game;
16
17 void _mouseDirectlyOver(args) {
18 invalidateDraw();
19 }
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698