diff --git a/src/client/launcher/launcher.cpp b/src/client/launcher/launcher.cpp index ccd1baca..4bbbff00 100644 --- a/src/client/launcher/launcher.cpp +++ b/src/client/launcher/launcher.cpp @@ -3,6 +3,8 @@ #include +#include + launcher::launcher() { this->create_main_menu(); @@ -43,7 +45,7 @@ void launcher::create_main_menu() return DefWindowProcA(*window, message, w_param, l_param); }); - this->main_window_.create("S2-Mod", 750, 420); + this->main_window_.create("S2-Mod: " VERSION, 750, 350); this->main_window_.load_html(load_content(MENU_MAIN)); this->main_window_.show(); } diff --git a/src/client/resources/main.html b/src/client/resources/main.html index f391208c..fac11bea 100644 --- a/src/client/resources/main.html +++ b/src/client/resources/main.html @@ -61,13 +61,13 @@ } p a { - color: #a8a8a8; + color: #f1d097; text-decoration: none; text-shadow: 2px 1px 1px #000000, 1px 1px 3px #000000, 0 0 13px #000000; } p a:hover { - color: #ac88a7; + color: #F4AF37; cursor: pointer; } @@ -264,6 +264,11 @@ overflow: hidden; } + .about-image img { + overflow: hidden; + text-align: center; + } + .card img { display: block; width: 100%; @@ -301,7 +306,8 @@ .card .card-content span { font-family: "Segoe UI Light", "Segoe UI", "Lucida Sans", Arial, sans-serif; - font-size: 3.8vw; + font-size: 3.3vw; + text-align: center; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0.3px 0 0 currentColor, 0 0.3px 0 currentColor, 2px 2px 4px #040404d0, 0px 0px 12px #5f5f5f55, 0px 1px 2px #454545; @@ -451,6 +457,23 @@ +
+ +
+
+
+ +
+
+ Zombies + +
+ Play +
+
+
+
+
@@ -485,16 +508,18 @@
-
-
+ +
+ +

- Made by skkuull + Made by: skkuull
- Discord, - Website, - Docs, - GitHub +
+ Discord, + + GitHub

diff --git a/src/common/utils/string.cpp b/src/common/utils/string.cpp index 93ba3df4..2a2789ff 100644 --- a/src/common/utils/string.cpp +++ b/src/common/utils/string.cpp @@ -110,6 +110,22 @@ namespace utils::string return {}; } + void set_clipboard_data(const std::string& text) + { + const auto len = text.size() + 1; + const auto mem = GlobalAlloc(GMEM_MOVEABLE, len); + + memcpy(GlobalLock(mem), text.data(), len); + GlobalUnlock(mem); + + if (OpenClipboard(nullptr)) + { + EmptyClipboard(); + SetClipboardData(CF_TEXT, mem); + CloseClipboard(); + } + } + void strip(const char* in, char* out, int max) { if (!in || !out) return; diff --git a/src/common/utils/string.hpp b/src/common/utils/string.hpp index 3c539942..85fff404 100644 --- a/src/common/utils/string.hpp +++ b/src/common/utils/string.hpp @@ -92,6 +92,8 @@ namespace utils::string std::string get_clipboard_data(); + void set_clipboard_data(const std::string& text); + void strip(const char* in, char* out, int max); std::string strip(const std::string& string);