From 041594777175880427d4582c4091255e6c896283 Mon Sep 17 00:00:00 2001 From: Yimura Date: Sat, 26 Dec 2020 17:01:25 +0100 Subject: [PATCH] feat(Notify): Added Above Map notification --- BigBaseV2/src/features/notify.cpp | 12 ++++++++++++ BigBaseV2/src/features/notify.hpp | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 BigBaseV2/src/features/notify.cpp create mode 100644 BigBaseV2/src/features/notify.hpp diff --git a/BigBaseV2/src/features/notify.cpp b/BigBaseV2/src/features/notify.cpp new file mode 100644 index 00000000..552c7c1d --- /dev/null +++ b/BigBaseV2/src/features/notify.cpp @@ -0,0 +1,12 @@ +#include "notify.hpp" + +namespace big::features::notify +{ + void above_map(const char* text) + { + HUD::SET_TEXT_OUTLINE(); + HUD::BEGIN_TEXT_COMMAND_THEFEED_POST("STRING"); + HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); + HUD::END_TEXT_COMMAND_THEFEED_POST_TICKER(false, false); + } +} \ No newline at end of file diff --git a/BigBaseV2/src/features/notify.hpp b/BigBaseV2/src/features/notify.hpp new file mode 100644 index 00000000..948f1cb6 --- /dev/null +++ b/BigBaseV2/src/features/notify.hpp @@ -0,0 +1,7 @@ +#pragma once +#include "natives.hpp" + +namespace big::features::notify +{ + static void above_map(const char* text); +} \ No newline at end of file