v0.3.4: moved capitalization to Messages, added title case functionality, removed Utils

This commit is contained in:
Evan Debenham
2016-01-27 20:11:17 -05:00
committed by Evan Debenham
parent 16426c02ee
commit 551638f972
29 changed files with 71 additions and 89 deletions
@@ -45,7 +45,6 @@ import com.shatteredpixel.shatteredpixeldungeon.ui.ItemSlot;
import com.shatteredpixel.shatteredpixeldungeon.ui.RedButton;
import com.shatteredpixel.shatteredpixeldungeon.ui.ScrollPane;
import com.shatteredpixel.shatteredpixeldungeon.ui.Window;
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
public class WndRanking extends WndTabbed {
@@ -321,7 +320,7 @@ public class WndRanking extends WndTabbed {
name.x = slot.right() + 2;
name.y = y + (height - name.baseLine()) / 2;
String str = Utils.capitalize( item.name() );
String str = Messages.titleCase( item.name() );
name.text( str );
if (name.width() > width - name.x) {
do {