Add chat notifications for flares #7041

Open
Vantha wants to merge 2 commits from Vantha/0ad:flare-notifications into main
Member
No description provided.
Vantha added 1 commit 2024-09-12 17:56:46 +02:00
Add chat notifications for flares
Some checks failed
0ad-freebsd/pipeline/pr-main There was a failure building this commit
0ad-macos/pipeline/pr-main There was a failure building this commit
0ad-linux/pipeline/pr-main There was a failure building this commit
checkrefs / checkrefs (pull_request) Successful in 1m8s
pre-commit / build (pull_request) Successful in 1m22s
0ad-windows/pipeline/pr-main This commit looks good
db3717b916
Vantha requested review from marder 2024-09-12 17:56:47 +02:00
Vantha requested review from Imarok 2024-09-12 17:56:47 +02:00
Vantha requested review from s0600204 2024-09-12 17:56:47 +02:00
Vantha requested review from wraitii 2024-09-12 17:56:47 +02:00
Vantha removed review request for wraitii 2024-09-12 17:56:55 +02:00
Vantha removed review request for s0600204 2024-09-12 17:56:56 +02:00
Vantha removed review request for Imarok 2024-09-12 17:56:57 +02:00
Vantha removed review request for marder 2024-09-12 17:56:59 +02:00
Author
Member

This patch adds a setting (enabled by default) for flare chat notifications.
It's meant as a base for #7042 - a way to tell which observer sent a flare (since all observers flare in white).
The 'Game Session' settings category doesn't have space on the GUI page for a new setting which is why I moved all chat related settings (including the new one) into a new settings category called 'Chat'.

Points to discuss:

  • Should there be a option to only recieve the chat notifications when one is an observer? (And maybe use dropdown instead of a checkbox?)
  • Is the new settings category alright?
**This patch adds a setting (enabled by default) for flare chat notifications.** It's meant as a base for #7042 - a way to tell which observer sent a flare (since all observers flare in white). The 'Game Session' settings category doesn't have space on the GUI page for a new setting which is why I moved all chat related settings (including the new one) into a new settings category called 'Chat'. Points to discuss: - Should there be a option to only recieve the chat notifications when one is an observer? (And maybe use dropdown instead of a checkbox?) - Is the new settings category alright?
Vantha added a new dependency 2024-09-12 18:07:10 +02:00
Vantha added the
Theme
UI & Simulation
label 2024-09-13 12:27:02 +02:00
Contributor

Good idea! I think it would be nice to add an icon like icon_focusattacked and be able to click on the message to focus the camera on the flare.

Good idea! I think it would be nice to add an icon like `icon_focusattacked` and be able to click on the message to focus the camera on the flare.
Author
Member

Good idea! I think it would be nice to add an icon like icon_focusattacked and be able to click on the message to focus the camera on the flare.

Wow, clicking on the attack notification actually makes the camera jump to the attacked unit... how did I not know about this feature?
(could maybe also be included in the tips)

Anyway, in that case, I agree, making the flare message clickable too is definitely something that I should do.
Thanks.

> Good idea! I think it would be nice to add an icon like `icon_focusattacked` and be able to click on the message to focus the camera on the flare. Wow, clicking on the attack notification actually makes the camera jump to the attacked unit... how did I not know about this feature? (could maybe also be included in the tips) Anyway, in that case, I agree, making the flare message clickable too is definitely something that I should do. Thanks.
Vantha added 1 commit 2024-09-16 16:39:56 +02:00
Make the chat notification clickable
Some checks failed
0ad-freebsd/pipeline/pr-main There was a failure building this commit
0ad-macos/pipeline/pr-main There was a failure building this commit
0ad-linux/pipeline/pr-main There was a failure building this commit
checkrefs / checkrefs (pull_request) Successful in 1m17s
pre-commit / build (pull_request) Successful in 1m35s
0ad-windows/pipeline/pr-main This commit looks good
0364ed1be2
Author
Member

Added an icon to the beginning of the chat message (sprite extracted from the minimap flare button. Though, I'm not fully content with it):
screenshot0004.png

And also made the camera move to the flare's location when left-clicking on the notification:
screenshot0005.png

Added an icon to the beginning of the chat message (sprite extracted from the minimap flare button. Though, I'm not fully content with it): ![screenshot0004.png](/attachments/43ce4a22-e9e5-4191-b186-1c477cbc3a3b) And also made the camera move to the flare's location when left-clicking on the notification: ![screenshot0005.png](/attachments/5231bbaa-652f-48dd-afbf-85d633793de8)
Some checks failed
0ad-freebsd/pipeline/pr-main There was a failure building this commit
0ad-macos/pipeline/pr-main There was a failure building this commit
0ad-linux/pipeline/pr-main There was a failure building this commit
Required
Details
checkrefs / checkrefs (pull_request) Successful in 1m17s
Required
Details
pre-commit / build (pull_request) Successful in 1m35s
Required
Details
0ad-windows/pipeline/pr-main This commit looks good
Some required checks were not successful.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u flare-notifications:Vantha-flare-notifications
git checkout Vantha-flare-notifications
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: 0ad/0ad#7041
No description provided.