diff --git a/TODO.md b/TODO.md index 70298d4..bf94230 100644 --- a/TODO.md +++ b/TODO.md @@ -26,16 +26,16 @@ Character sheet * Highlight allowed destinations during drag-and-drop, with text hints * When transferring to another ship, if the item can't be equipped (unmatched requirements), the transfer is cancelled instead of trying cargo * Effective skill is sometimes not updated when upgrading base skill -* Tooltip to show the sources of attributes [WIP] * Forbid to modify escorted ship * Add merged cargo display for the whole fleet +* Fix player's ship name not updating with level Battle ------ * Add a voluntary retreat option * Display effects description instead of attribute changes -* Display radius for area effects (both on action hover, and while action is active) +* Display radius and power usage hints for area effects on action icon hover + add confirmation ? * Any displayed info should be based on a ship copy stored in ArenaShip, and in sync with current log index (not the game state ship) * Add engine trail effect, and sound * Fix targetting not resetting on current cursor location when using keyboard shortcuts @@ -78,6 +78,7 @@ Technical Common UI --------- +* Add feedback sounds (clicks...) * Fix hover being stuck when the cursor exits the window, or the item moves or is hidden * Add a standard confirm dialog * Mobile: think UI layout so that fingers do not block the view (right and left handed) diff --git a/graphics/ui/battle.svg b/graphics/ui/battle.svg index a488839..07875fd 100644 --- a/graphics/ui/battle.svg +++ b/graphics/ui/battle.svg @@ -1161,6 +1161,81 @@ style="color-interpolation-filters:sRGB" id="filter5016" inkscape:label="filtre19" /> + + + + + + + + + + + + + + + + + + + inkscape:snap-bbox-midpoints="true" + inkscape:lockguides="true" /> @@ -2533,10 +2609,10 @@ + style="display:none"> - - + inkscape:export-ydpi="90" + style="display:inline"> + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + arena.width - 100) ? (35 - this.effects_messages.width) : (-this.effects_messages.width * 0.5)), - (this.ship.arena_y < arena.height * 0.9) ? 45 : (-45 - this.effects_messages.height) + (this.ship.arena_y < arena.height * 0.9) ? 50 : (-50 - this.effects_messages.height) ); this.game.tweens.removeFrom(this.effects_messages); @@ -303,5 +320,20 @@ module TS.SpaceTac.UI { }); } } + + /** + * Update the activated effects radius + */ + updateEffectsRadius(): void { + this.effects_radius.clear(); + this.ship.getAvailableActions().forEach(action => { + if (action instanceof ToggleAction && action.activated) { + this.effects_radius.lineStyle(2, 0xe9f2f9, 0.3); + this.effects_radius.beginFill(0xe9f2f9, 0.0); + this.effects_radius.drawCircle(0, 0, action.radius * 2); + this.effects_radius.endFill(); + } + }); + } } }