|
1 | 1 | using Rage; |
2 | 2 | using RAGENativeUI; |
| 3 | +using System.Windows.Forms; |
3 | 4 |
|
4 | 5 | namespace HealthArmourDisplay |
5 | 6 | { |
@@ -45,7 +46,11 @@ internal static class Settings |
45 | 46 | internal static string StoreLocations = "29.537, -1345.474, 28.497 | -2969.773, 393.134, 14.043 | -1490.112, -378.83, 39.163 | 1137.569, -983.894, 45.416 | 1704.031, 4929.222, 41.064 | 1156.47, -322.609, 68.205 | -1827.282, 789.701, 137.254 | -1222.331, -904.582, 11.326 | -714.432, -912.26, 18.216 | -52.042, -1751.564, 28.421 | 544.2, 2668.531, 41.156 | 1963.312, 3744.618, 31.344 | 2555.542, 386.205, 107.623 | 377.961, 327.06, 102.566 | 2678.844, 3284.787, 54.241 | 1733.24, 6414.755, 34.037 | -3042.428, 588.687, 6.909 | -3243.83, 1005.144, 11.831 | 1164.038, 2707.052, 37.158"; |
46 | 47 | internal static string Drinks = "eCola: 2 | Pisswasser: 2 | Sprunk: 2"; |
47 | 48 | internal static string Foods = "EgoChaser: 3 | Meteorite Bar: 5 | P's & Q's: 2"; |
| 49 | + |
48 | 50 | internal static bool AutoConsume = false; |
| 51 | + internal static Keys StoreKey = Keys.E; |
| 52 | + internal static Keys InventoryKey = Keys.I; |
| 53 | + internal static Keys InventoryModifier = Keys.LControlKey; |
49 | 54 |
|
50 | 55 | internal static Common.EFont FontFamily = Common.EFont.Pricedown; |
51 | 56 | internal static float FontSize = 0.4f; |
@@ -100,7 +105,11 @@ internal static void LoadSettings() |
100 | 105 | StoreLocations = ini.ReadString("Stores", "StoreLocations", "29.537, -1345.474, 28.497 | -2969.773, 393.134, 14.043 | -1490.112, -378.83, 39.163 | 1137.569, -983.894, 45.416 | 1704.031, 4929.222, 41.064 | 1156.47, -322.609, 68.205 | -1827.282, 789.701, 137.254 | -1222.331, -904.582, 11.326 | -714.432, -912.26, 18.216 | -52.042, -1751.564, 28.421 | 544.2, 2668.531, 41.156 | 1963.312, 3744.618, 31.344 | 2555.542, 386.205, 107.623 | 377.961, 327.06, 102.566 | 2678.844, 3284.787, 54.241 | 1733.24, 6414.755, 34.037 | -3042.428, 588.687, 6.909 | -3243.83, 1005.144, 11.831 | 1164.038, 2707.052, 37.158"); |
101 | 106 | Drinks = ini.ReadString("Stores", "Drinks", "eCola: 2 | Pisswasser: 2 | Sprunk: 2"); |
102 | 107 | Foods = ini.ReadString("Stores", "Foods", "EgoChaser: 3 | Meteorite Bar: 5 | P's & Q's: 2"); |
103 | | - AutoConsume = ini.ReadBoolean("Stores", "AutoConsume", false); |
| 108 | + |
| 109 | + AutoConsume = ini.ReadBoolean("Other", "AutoConsume", false); |
| 110 | + StoreKey = ini.ReadEnum("Other", "StoreKey", Keys.E); |
| 111 | + InventoryKey = ini.ReadEnum("Other", "InventoryKey", Keys.I); |
| 112 | + InventoryModifier = ini.ReadEnum("Other", "InventoryModifier", Keys.LControlKey); |
104 | 113 |
|
105 | 114 | FontFamily = ini.ReadEnum("Font", "FontFamily", Common.EFont.Pricedown); |
106 | 115 | FontSize = ini.ReadSingle("Font", "FontSize", 0.4f); |
|
0 commit comments