Mercurial > hg > ristipolku
comparison game/Engine.java @ 115:8c3bc197310d
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 31 May 2011 18:44:50 +0300 |
parents | ae66d21d4747 |
children | 858b9644a61e |
comparison
equal
deleted
inserted
replaced
114:cce60b6960ca | 115:8c3bc197310d |
---|---|
111 public void paint(Graphics2D g) | 111 public void paint(Graphics2D g) |
112 { | 112 { |
113 int x = getScaledX(), y = getScaledY(), | 113 int x = getScaledX(), y = getScaledY(), |
114 w = getScaledWidth(), h = getScaledHeight(); | 114 w = getScaledWidth(), h = getScaledHeight(); |
115 | 115 |
116 g.setPaint(new Color(0.0f, 0.0f, 0.0f, 0.6f)); | 116 g.setPaint(new Color(0.0f, 0.0f, 0.0f, 0.7f)); |
117 g.fill(new RoundRectangle2D.Float(x, y, w, h, 10, 10)); | 117 g.fill(new RoundRectangle2D.Float(x, y, w, h, 10, 10)); |
118 | 118 |
119 setTextFont(G.fonts[3], G.metrics[3]); | 119 setTextFont(G.fonts[3], G.metrics[3]); |
120 setTextPaint(Color.white); | 120 setTextPaint(Color.white); |
121 | 121 |
123 drawString(g, "RistiPolku (CrossPaths) v"+ G.version +"\n"); | 123 drawString(g, "RistiPolku (CrossPaths) v"+ G.version +"\n"); |
124 | 124 |
125 setTextFont(G.fonts[1], G.metrics[1]); | 125 setTextFont(G.fonts[1], G.metrics[1]); |
126 if (aboutSecret) | 126 if (aboutSecret) |
127 { | 127 { |
128 g.drawImage(aboutImg, x + 20, y + 55, aboutImg.getWidth(), aboutImg.getHeight(), null); | 128 g.drawImage(aboutImg, x + 20, y + 55, |
129 aboutImg.getWidth(), aboutImg.getHeight(), null); | |
129 | 130 |
130 setCurrPos(x + 225, y + 75); | 131 setCurrPos(x + 225, y + 75); |
131 drawString(g, | 132 drawString(g, |
132 "Dedicated to my\n" + | 133 "Dedicated to my\n" + |
133 "favorite woman\n" + | 134 "favorite woman\n" + |