v0.2.4: tweaked some windows

This commit is contained in:
Evan Debenham
2015-02-21 21:07:30 -05:00
parent 9c5d4facf5
commit 810ce1b8e4
2 changed files with 10 additions and 29 deletions
@@ -17,6 +17,7 @@
*/
package com.shatteredpixel.shatteredpixeldungeon.windows;
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
import com.watabou.input.Touchscreen.Touch;
import com.watabou.noosa.BitmapTextMultiline;
import com.watabou.noosa.Game;
@@ -29,8 +30,9 @@ import com.watabou.utils.SparseArray;
public class WndStory extends Window {
private static final int WIDTH = 120;
private static final int MARGIN = 6;
private static final int WIDTH_P = 120;
private static final int WIDTH_L = 144;
private static final int MARGIN = 6;
private static final float bgR = 0.77f;
private static final float bgG = 0.73f;
@@ -83,7 +85,9 @@ public class WndStory extends Window {
super( 0, 0, Chrome.get( Chrome.Type.SCROLL ) );
tf = PixelScene.createMultiline( text, 7 );
tf.maxWidth = WIDTH - MARGIN * 2;
tf.maxWidth = ShatteredPixelDungeon.landscape() ?
WIDTH_L - MARGIN * 2:
WIDTH_P - MARGIN *2;
tf.measure();
tf.ra = bgR;
tf.ga = bgG;