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

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

Issue 242443008: samples/pop_pop_win: now based on StageXL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tiny nit Created 6 years, 8 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 pop_pop_win.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
« no previous file with comments | « samples/pop_pop_win/lib/src/canvas/square_element.dart ('k') | samples/pop_pop_win/lib/src/game.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698