v3.0.0: made spell cast and spell info windows more distinct

This commit is contained in:
Evan Debenham
2025-02-02 12:20:32 -05:00
parent 86fd699cba
commit 24370f87fe
2 changed files with 8 additions and 3 deletions

View File

@@ -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

View File

@@ -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));