-
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.
- Loading branch information
1 parent
2a628b0
commit ad5aa75
Showing
4 changed files
with
71 additions
and
16 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
29 changes: 29 additions & 0 deletions
29
Source/Features/Hud/DefusingAlert/DefusingAlertPanelParams.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,29 @@ | ||
#pragma once | ||
|
||
#include <CS2/Panorama/CUILength.h> | ||
#include <CS2/Constants/ColorConstants.h> | ||
#include <CS2/Panorama/StyleEnums.h> | ||
#include <GameClasses/PanelAlignmentParams.h> | ||
#include <GameClasses/PanelFontParams.h> | ||
#include <GameClasses/PanelMarginParams.h> | ||
|
||
namespace defusing_alert_panel_params::timer_text_panel_params | ||
{ | ||
constexpr auto kWidth = cs2::CUILength::fillParentFlow(1.0f); | ||
constexpr auto kFont = PanelFontParams{ | ||
.fontFamily = "Stratum2 Bold TF, 'Arial Unicode MS'", | ||
.fontSize = 24}; | ||
constexpr auto kMixBlendMode = cs2::k_EMixBlendModeAdditive; | ||
constexpr auto kColor = cs2::kColorWhite; | ||
constexpr auto kAlignment = PanelAlignmentParams{.verticalAlignment = cs2::k_EVerticalAlignmentCenter}; | ||
constexpr auto kTextAlign = cs2::k_ETextAlignCenter; | ||
} | ||
|
||
namespace defusing_alert_panel_params::defuse_icon_panel_params | ||
{ | ||
constexpr auto kImageUrl = "s2r://panorama/images/icons/equipment/defuser.vsvg"; | ||
constexpr auto kTextureHeight = 25; | ||
constexpr auto kAlignment = PanelAlignmentParams{.verticalAlignment = cs2::k_EVerticalAlignmentCenter}; | ||
constexpr auto kColor = cs2::kColorDefuseKit; | ||
constexpr auto kMargin = PanelMarginParams{.marginLeft = cs2::CUILength::pixels(5)}; | ||
} |
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