-
Notifications
You must be signed in to change notification settings - Fork 970
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move player bomb carrying/planting icon next to the active weapon icon
- Loading branch information
1 parent
8c0a11c
commit c8b56ca
Showing
25 changed files
with
251 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
.../Features/Visuals/PlayerInfoInWorld/PlayerWeaponIcon/BombIcon/PlayerBombIconPanelParams.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#pragma once | ||
|
||
#include <CS2/Classes/Color.h> | ||
#include <CS2/Constants/ColorConstants.h> | ||
#include <CS2/Panorama/CUILength.h> | ||
#include <CS2/Panorama/StyleEnums.h> | ||
#include <FeatureHelpers/PanelShadowParams.h> | ||
#include <GameClasses/PanelAlignmentParams.h> | ||
#include <GameClasses/PanelMarginParams.h> | ||
|
||
namespace player_bomb_icon_panel_params::bomb_icon_panel_params | ||
{ | ||
static constexpr auto kImageUrl = "s2r://panorama/images/icons/equipment/c4.svg"; | ||
static constexpr auto kTextureHeight = 24; | ||
static constexpr auto kShadowParams = PanelShadowParams{ | ||
.horizontalOffset{cs2::CUILength::pixels(0)}, | ||
.verticalOffset{cs2::CUILength::pixels(0)}, | ||
.blurRadius{cs2::CUILength::pixels(3)}, | ||
.strength = 3, | ||
.color{cs2::kColorBlack} | ||
}; | ||
} | ||
|
||
namespace player_bomb_icon_panel_params::container_panel_params | ||
{ | ||
static constexpr auto kAlignment = PanelAlignmentParams{ | ||
.verticalAlignment = cs2::k_EVerticalAlignmentCenter | ||
}; | ||
static constexpr auto kMargin = PanelMarginParams{.marginLeft = cs2::CUILength::pixels(2.5), .marginRight = cs2::CUILength::pixels(2.5)}; | ||
static constexpr auto kColorCarryingC4 = cs2::Color{255, 255, 77}; | ||
static constexpr auto kColorPlantingC4 = cs2::Color{255, 193, 77}; | ||
} |
Oops, something went wrong.