Browse Source

Add extended stats to inline list, change opened to my roles, move button to next row

Tigran 4 years ago
parent
commit
ce46e78615

+ 1 - 0
MafiaTelegramBot/Models/Bot.cs

@@ -83,6 +83,7 @@ namespace MafiaTelegramBot.Models
                 new PlayersCountSettingsQuery(),
                 new ApplyRolesChangeQuery(),
                 new StartGameQuery(),
+                new ShowMyExtendedStatsQuery()
             };
         }
         

+ 2 - 4
MafiaTelegramBot/Resources/Keyboard.cs

@@ -89,10 +89,8 @@ namespace MafiaTelegramBot.Resources
                     InlineKeyboardButton.WithCallbackData(strings.shop, $"{Callback.ShopMenu}|{userId}"),
                     InlineKeyboardButton.WithCallbackData(strings.settings, $"{Callback.SettingsProfile}|{userId}")
                 },
-                new[] {
-                    InlineKeyboardButton.WithCallbackData(strings.opened_roles, $"{Callback.ShowMyRoles}|{userId}"),
-                    InlineKeyboardButton.WithCallbackData(strings.extended_stats, $"{Callback.ShowMyExtendedStats}|{userId}")
-                },
+                new [] {InlineKeyboardButton.WithCallbackData(strings.my_roles, $"{Callback.ShowMyRoles}|{userId}")},
+                new [] {InlineKeyboardButton.WithCallbackData(strings.extended_stats, $"{Callback.ShowMyExtendedStats}|{userId}")}
             });
         }
 

+ 2 - 2
MafiaTelegramBot/Resources/strings.Designer.cs

@@ -81,9 +81,9 @@ namespace MafiaTelegramBot {
             }
         }
         
-        internal static string opened_roles {
+        internal static string my_roles {
             get {
-                return ResourceManager.GetString("opened_roles", resourceCulture);
+                return ResourceManager.GetString("my_roles", resourceCulture);
             }
         }
         

+ 2 - 2
MafiaTelegramBot/Resources/strings.resx

@@ -36,8 +36,8 @@
     <data name="shop" xml:space="preserve">
         <value>Магазин</value>
     </data>
-    <data name="opened_roles" xml:space="preserve">
-        <value>Открытые роли</value>
+    <data name="my_roles" xml:space="preserve">
+        <value>Мои роли</value>
     </data>
     <data name="settings" xml:space="preserve">
         <value>Настройки</value>