Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radar - bomb position, adjust icon size #129

Closed
wants to merge 13 commits into from

Conversation

PetrSeifert
Copy link
Contributor

Bomb position is now shown on the radar.
image
Added drawer where is slider for setting of icon size.
image

Copy link
Collaborator

@WolverinDEV WolverinDEV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one :)

I've two things:

  1. Use None instead of some magic values to indicate that the bomb info is not available
  2. May extend the info send along for the bomb info similar to what the overlay does.
    This allows later on to easily extend the UI :)

radar/web/src/backend/connection.ts Show resolved Hide resolved

#[derive(Serialize, Deserialize, Clone, Debug)]
#[serde(rename_all = "camelCase")]
pub struct RadarBombInfo {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a flag whatever it's planted or not.
Maybe use a similar system as I've done here including the bomb state: https://github.com/Valthrun/Valthrun/blob/master/controller/src/enhancements/bomb.rs#L51

In your case it would be RadarBombInfo containing the position and the C4State which may includes Dropped, Carried as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added more data into RadarBombInfo. You can check it out.

radar/web/src/ui/pages/session/[id]/radar.tsx Outdated Show resolved Hide resolved
@WolverinDEV
Copy link
Collaborator

WolverinDEV commented Mar 13, 2024

Hey, I've merged manually your changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants