diff --git a/core/src/main/assets/messages/windows/windows.properties b/core/src/main/assets/messages/windows/windows.properties index ea59c6294..54b0bc4c2 100644 --- a/core/src/main/assets/messages/windows/windows.properties +++ b/core/src/main/assets/messages/windows/windows.properties @@ -43,7 +43,7 @@ windows.wndclericspells.cast_title=cast a spell windows.wndclericspells.info_title=spell info windows.wndclericspells.cast_desc_desktop=Select a spell to cast it, right click for info or to set a spell to quick cast. windows.wndclericspells.cast_desc_mobile=Select a spell to cast it, long press to set a spell to quick cast, or press the info button to switch to info mode. -windows.wndclericspells.info_desc=Select a spell to learn about it, or press the info button to switch to cast mode. +windows.wndclericspells.info_desc=Select a spell to learn about it, or press the holy tome button to switch to cast mode. windows.wndclericspells.cast=Cast windows.wndclericspells.info=Info windows.wndclericspells.quick_cast=Quick Cast diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java index 903d421d8..abbca3612 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java @@ -57,12 +57,17 @@ public class WndClericSpells extends Window { public WndClericSpells(HolyTome tome, Hero cleric, boolean info){ - IconTitle title = new IconTitle(new ItemSprite(tome), Messages.titleCase(Messages.get( this, info ? "info_title" : "cast_title"))); + IconTitle title; + if (!info){ + title = new IconTitle(new ItemSprite(tome), Messages.titleCase(Messages.get(this, "cast_title"))); + } else { + title = new IconTitle(Icons.INFO.get(), Messages.titleCase(Messages.get(this, "info_title"))); + } title.setRect(0, 0, WIDTH, 0); add(title); - IconButton btnInfo = new IconButton(Icons.INFO.get()){ + IconButton btnInfo = new IconButton(info ? new ItemSprite(tome) : Icons.INFO.get()){ @Override protected void onClick() { GameScene.show(new WndClericSpells(tome, cleric, !info));