Check-in [7693c375f5]
Not logged in
Overview
SHA1 Hash:7693c375f56b779c1e1dad4b6ff441a8ca73c948
Date: 2012-07-14 11:04:49
User: kinaba
Comment:Air indicator.
Timelines: family | ancestors | descendants | both | trunk
Diffs: redesign
Downloads: Tarball | ZIP archive
Other Links: files | file ages | manifest
Tags And Properties
Changes

Modified test.d from [5bf75f7f55fc5b47] to [5ea3ddf4a0f6a860].

179 179 Map m; 180 180 int score; 181 181 182 182 this(Map m) 183 183 { 184 184 noMessageFilter(); 185 185 this.m = m; 186 - this.text = "Dark Integers"; 186 + this.text = .text("Score: ", score, " air[",m.water_proof-m.underwater,"]"); 187 187 this.keyDown ~= &myKey; 188 188 this.score = 0; 189 189 } 190 190 override void onResize(EventArgs ev) { 191 191 invalidate(); 192 192 } 193 193 override void onPaint(PaintEventArgs ev) ................................................................................ 262 262 break; 263 263 } 264 264 if(m.cleared) { 265 265 writeln(); 266 266 writeln("Score: ", score); 267 267 Application.exit(); 268 268 } 269 - this.text = .text("Score: ", score); 269 + this.text = .text("Score: ", score, " air[",m.water_proof-m.underwater,"]"); 270 270 invalidate(); 271 271 } 272 272 } 273 273 274 274 void main(string[] args) 275 275 { 276 276 Form myForm = new MyForm(new Map(File(args[1]))); 277 277 Application.run(myForm); 278 278 }