Commit 0348692
authored
Feat: hide screencapture camera HUD (#5637)
## What does this PR change?
Closes #5616
Add possibility to hide screencapture camera HUD
- created 2 new keyboard actions for this
- add ESC functionality to exit camera mode
- add info to shortcuts of screencapture camera HUD
- add Notification logic when HUD is hidden
## How to test the changes?
1. Launch the explorer
2. Open screencapture camera by pressing C
3. Observe additional line in shortcut Info Panel describing that **U** is for **Show/Hide UI**
4. Press U and observe HUD is hidden
5. Press U again to see it back
---
1. Launch the explorer
2. Hide in-game UI by pressing U
3. Open screencapture camera by pressing C
4. Press C again to exit
5. Observe in-game UI is shown
---
1. Launch the explorer
2. Make exploratory testing by playing with hiding in-game UI (**U**), open/close screencapture camera (**C**), and hide/show its UI (**U**)
## Our Code Review Standards
https://github.com/decentraland/unity-renderer/blob/master/docs/code-review-standards.md
## Copilot summary
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 6175fcf</samp>
This pull request adds new input actions and UI elements for the screenshot camera feature. It allows the user to exit the screenshot mode, toggle the visibility of the HUD, and see the shortcuts information. It also refactors and cleans up some code related to the `ScreencaptureCameraBehaviour`, the `HUDController`, and the `InputController` classes. It updates the `ScreencaptureCameraHUD` prefab and the `ScreencaptureCamera` assembly definition file. It creates new asset files and meta files for the new input actions.1 parent f12e67e commit 0348692
File tree
14 files changed
+539
-21
lines changed- unity-renderer/Assets
- DCLServices/ScreencaptureCamera
- CameraObject
- Scripts
- Tests
- UI
- Prefabs
- Scripts
- Resources/Prefabs
- Scripts/MainScripts/DCL/Controllers
- HUD
- InputController
- Resources
14 files changed
+539
-21
lines changedLines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
| 137 | + | |
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
| |||
237 | 242 | | |
238 | 243 | | |
239 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
240 | 248 | | |
241 | | - | |
| 249 | + | |
242 | 250 | | |
243 | 251 | | |
244 | 252 | | |
| |||
279 | 287 | | |
280 | 288 | | |
281 | 289 | | |
282 | | - | |
283 | 290 | | |
284 | 291 | | |
285 | 292 | | |
| |||
289 | 296 | | |
290 | 297 | | |
291 | 298 | | |
292 | | - | |
| 299 | + | |
293 | 300 | | |
294 | 301 | | |
295 | 302 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2852 | 2852 | | |
2853 | 2853 | | |
2854 | 2854 | | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
2855 | 2860 | | |
2856 | 2861 | | |
2857 | 2862 | | |
| |||
2938 | 2943 | | |
2939 | 2944 | | |
2940 | 2945 | | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
2941 | 2956 | | |
2942 | 2957 | | |
2943 | 2958 | | |
| |||
3037 | 3052 | | |
3038 | 3053 | | |
3039 | 3054 | | |
3040 | | - | |
| 3055 | + | |
3041 | 3056 | | |
3042 | 3057 | | |
3043 | 3058 | | |
| |||
0 commit comments