wesnoth / haldric

Wesnoth 2.0, being developed in the Godot engine.
https://www.wesnoth.org
368 stars 48 forks source link

Decouple unit UI from unit #129

Closed iwek7 closed 4 years ago

iwek7 commented 4 years ago
  1. as requested in https://github.com/wesnoth/haldric/issues/67 UnitPlate is now separate node managed by GameUI
  2. Unit has remote transform that allows UnitPlate to follow moving Unit
  3. Unit communicates with UnitPlate only with signals. They only know about each other through remote transform and during initialization (to wire-up signals and set transform reference)
  4. GameHUD and GameUI have been splitted, there was an issue when HUD was attempting to draw viewport it was part of in separate viewports (minimap, unit view)