Rename isHud to respectCamera (#1159)

* Camera as an internal component

* Correct respectCamera

* Added changelog entry

* Add super call that will later be removed

* Rename callRender -> callOwnRender

* Don't call render when root

* Remove callOwnRender

* Skip CameraWrapper in own renderTree

* Too complex to have camera as component

* Revert test

* Update docs for respectCamera

* Move down field

* Fix changelog
This commit is contained in:
Lukas Klingsbo
2021-12-04 14:41:51 +01:00
committed by GitHub
parent 0835741e63
commit 4b40479563
11 changed files with 58 additions and 37 deletions

View File

@ -163,11 +163,11 @@ class JoystickAdvancedExample extends FlameGame
speedText = TextComponent(
text: 'Speed: 0',
textRenderer: _regular,
)..isHud = true;
)..respectCamera = false;
directionText = TextComponent(
text: 'Direction: idle',
textRenderer: _regular,
)..isHud = true;
)..respectCamera = false;
final speedWithMargin = HudMarginComponent(
margin: const EdgeInsets.only(