From e82472be0c4128f80f4930009c59881ab8c01070 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Fri, 6 Sep 2024 16:56:06 +0200 Subject: [PATCH] Tweaks --- FakeeDeck/ButtonType/HelldiversTwoMacro.cs | 27 ++++++++++++++++++++++ FakeeDeck/HttpServer.cs | 20 ++-------------- 2 files changed, 29 insertions(+), 18 deletions(-) diff --git a/FakeeDeck/ButtonType/HelldiversTwoMacro.cs b/FakeeDeck/ButtonType/HelldiversTwoMacro.cs index ed29be5..05fdba9 100644 --- a/FakeeDeck/ButtonType/HelldiversTwoMacro.cs +++ b/FakeeDeck/ButtonType/HelldiversTwoMacro.cs @@ -46,5 +46,32 @@ namespace FakeeDeck.ButtonType { "rocket-pods","https://static.wikia.nocookie.net/helldivers_gamepedia/images/e/e3/Eagle_110MM_Rocket_Pods_Icon.png"}, { "bomb","https://static.wikia.nocookie.net/helldivers_gamepedia/images/5/5a/Eagle_500KG_Bomb_Icon.png"}, }; + + public static string getButton(string Key) + { + return + "
" + + "
" + + " " + + " " + + "
" + + "
"; + } + + public static bool invokeAction(string Key) + { + return false; + } + + public static string FirstLetterToUpper(string str) + { + if (str == null) + return null; + + if (str.Length > 1) + return char.ToUpper(str[0]) + str.Substring(1); + + return str.ToUpper(); + } } } diff --git a/FakeeDeck/HttpServer.cs b/FakeeDeck/HttpServer.cs index a9b00b8..604068e 100644 --- a/FakeeDeck/HttpServer.cs +++ b/FakeeDeck/HttpServer.cs @@ -128,14 +128,7 @@ namespace FakeeDeck { foreach (var stratogem in HelldiversTwoMacro.stratogems) { - Console.WriteLine(HelldiversTwoMacro.stratogemsIcons[stratogem.Key]); - pageData += - "
" + - "
" + - " " + - " " + - "
" + - "
"; + pageData += HelldiversTwoMacro.getButton(stratogem.Key); } @@ -153,15 +146,6 @@ namespace FakeeDeck listener.Close(); } - public static string FirstLetterToUpper(string str) - { - if (str == null) - return null; - - if (str.Length > 1) - return char.ToUpper(str[0]) + str.Substring(1); - - return str.ToUpper(); - } + } }