Differences From Artifact [a6dfca9cc307c324]:
- File
src/gui.d
- 2012-07-15 13:58:47 - part of checkin [68b686ff6d] on branch trunk - memo (user: kinaba) [annotate]
To Artifact [93d9f5f261f71d2c]:
- File
src/gui.d
- 2012-07-15 15:38:46 - part of checkin [d40deaae5a] on branch trunk - Trampoline factored out. (user: kinaba) [annotate]
77 77 this.render['R'] = "☃";
78 78 this.render['r'] = "☃";
79 79 this.render['d'] = "☠";
80 80 this.render['L'] = "☒";
81 81 this.render['O'] = "☐";
82 82 this.render['W'] = "ꔣ";
83 83 this.render['!'] = "✄";
84 - foreach(c,tp; g.map.tr_target) this.render[c] = [cast(dchar)('☢'+g.map[tp]-'1')].to!string();
85 - foreach(char c; '1'..':') this.render[c] = [cast(dchar)('☢'+c-'1')].to!string();
84 + foreach(char c; g.tr.source_list)
85 + this.render[c] = [cast(dchar)('☢'+g.tr.target_of(c)-'1')].to!string();
86 + foreach(char c; g.tr.target_list)
87 + this.render[c] = [cast(dchar)('☢'+c-'1')].to!string();
86 88 this.paint ~= (Control c, PaintEventArgs ev) {
87 89 graphicContext.copyTo(ev.graphics, Rect(0,0,this.clientSize.width,this.clientSize.height));
88 90 };
89 91 }
90 92
91 93 void draw(in Game g)
92 94 {