mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-18 07:20:30 +00:00
Categorize options in ConfigGenerator
Preview: http://i.imgur.com/Noc8qbf.png
This commit is contained in:
@@ -53,34 +53,44 @@ namespace ConfigGenerator {
|
|||||||
NamesDescending
|
NamesDescending
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Category("\t\tCore")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool Enabled { get; set; } = false;
|
public bool Enabled { get; set; } = false;
|
||||||
|
|
||||||
|
[Category("\tAdvanced")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool StartOnLaunch { get; set; } = true;
|
public bool StartOnLaunch { get; set; } = true;
|
||||||
|
|
||||||
|
[Category("\t\tCore")]
|
||||||
[JsonProperty]
|
[JsonProperty]
|
||||||
public string SteamLogin { get; set; } = null;
|
public string SteamLogin { get; set; } = null;
|
||||||
|
|
||||||
|
[Category("\t\tCore")]
|
||||||
[JsonProperty]
|
[JsonProperty]
|
||||||
[PasswordPropertyText(true)]
|
[PasswordPropertyText(true)]
|
||||||
public string SteamPassword { get; set; } = null;
|
public string SteamPassword { get; set; } = null;
|
||||||
|
|
||||||
|
[Category("\tAccess")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public ECryptoMethod PasswordFormat { get; set; } = ECryptoMethod.PlainText;
|
public ECryptoMethod PasswordFormat { get; set; } = ECryptoMethod.PlainText;
|
||||||
|
|
||||||
|
[Category("\tAccess")]
|
||||||
[JsonProperty]
|
[JsonProperty]
|
||||||
public string SteamParentalPIN { get; set; } = "0";
|
public string SteamParentalPIN { get; set; } = "0";
|
||||||
|
|
||||||
|
[Category("\tAccess")]
|
||||||
[JsonProperty]
|
[JsonProperty]
|
||||||
public string SteamApiKey { get; set; } = null;
|
public string SteamApiKey { get; set; } = null;
|
||||||
|
|
||||||
|
[Category("\tAccess")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public ulong SteamMasterID { get; set; } = 0;
|
public ulong SteamMasterID { get; set; } = 0;
|
||||||
|
|
||||||
|
[Category("\tAccess")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public ulong SteamMasterClanID { get; set; } = 0;
|
public ulong SteamMasterClanID { get; set; } = 0;
|
||||||
|
|
||||||
|
[Category("\tPerformance")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool CardDropsRestricted { get; set; } = true;
|
public bool CardDropsRestricted { get; set; } = true;
|
||||||
|
|
||||||
@@ -93,15 +103,18 @@ namespace ConfigGenerator {
|
|||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool FarmOffline { get; set; } = false;
|
public bool FarmOffline { get; set; } = false;
|
||||||
|
|
||||||
|
[Category("\tAdvanced")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool HandleOfflineMessages { get; set; } = false;
|
public bool HandleOfflineMessages { get; set; } = false;
|
||||||
|
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool AcceptGifts { get; set; } = false;
|
public bool AcceptGifts { get; set; } = false;
|
||||||
|
|
||||||
|
[Category("\tAdvanced")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool IsBotAccount { get; set; } = false;
|
public bool IsBotAccount { get; set; } = false;
|
||||||
|
|
||||||
|
[Category("\tAdvanced")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool SteamTradeMatcher { get; set; } = false;
|
public bool SteamTradeMatcher { get; set; } = false;
|
||||||
|
|
||||||
@@ -117,12 +130,14 @@ namespace ConfigGenerator {
|
|||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool SendOnFarmingFinished { get; set; } = false;
|
public bool SendOnFarmingFinished { get; set; } = false;
|
||||||
|
|
||||||
|
[Category("\tAccess")]
|
||||||
[JsonProperty]
|
[JsonProperty]
|
||||||
public string SteamTradeToken { get; set; } = null;
|
public string SteamTradeToken { get; set; } = null;
|
||||||
|
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public byte SendTradePeriod { get; set; } = 0;
|
public byte SendTradePeriod { get; set; } = 0;
|
||||||
|
|
||||||
|
[Category("\tAdvanced")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public byte AcceptConfirmationsPeriod { get; set; } = 0;
|
public byte AcceptConfirmationsPeriod { get; set; } = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
@@ -50,57 +51,74 @@ namespace ConfigGenerator {
|
|||||||
// This is hardcoded blacklist which should not be possible to change
|
// This is hardcoded blacklist which should not be possible to change
|
||||||
private static readonly HashSet<uint> GlobalBlacklist = new HashSet<uint> { 267420, 303700, 335590, 368020, 425280, 480730 };
|
private static readonly HashSet<uint> GlobalBlacklist = new HashSet<uint> { 267420, 303700, 335590, 368020, 425280, 480730 };
|
||||||
|
|
||||||
|
[Category("\tDebugging")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool Debug { get; set; } = false;
|
public bool Debug { get; set; } = false;
|
||||||
|
|
||||||
|
[Category("\tAdvanced")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool Headless { get; set; } = false;
|
public bool Headless { get; set; } = false;
|
||||||
|
|
||||||
|
[Category("\tUpdates")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool AutoUpdates { get; set; } = true;
|
public bool AutoUpdates { get; set; } = true;
|
||||||
|
|
||||||
|
[Category("\tUpdates")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool AutoRestart { get; set; } = true;
|
public bool AutoRestart { get; set; } = true;
|
||||||
|
|
||||||
|
[Category("\tUpdates")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public EUpdateChannel UpdateChannel { get; set; } = EUpdateChannel.Stable;
|
public EUpdateChannel UpdateChannel { get; set; } = EUpdateChannel.Stable;
|
||||||
|
|
||||||
|
[Category("\tAdvanced")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public ProtocolType SteamProtocol { get; set; } = DefaultSteamProtocol;
|
public ProtocolType SteamProtocol { get; set; } = DefaultSteamProtocol;
|
||||||
|
|
||||||
|
[Category("\tAccess")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public ulong SteamOwnerID { get; set; } = 0;
|
public ulong SteamOwnerID { get; set; } = 0;
|
||||||
|
|
||||||
|
[Category("\tPerformance")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public byte MaxFarmingTime { get; set; } = DefaultMaxFarmingTime;
|
public byte MaxFarmingTime { get; set; } = DefaultMaxFarmingTime;
|
||||||
|
|
||||||
|
[Category("\tPerformance")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public byte IdleFarmingPeriod { get; set; } = 3;
|
public byte IdleFarmingPeriod { get; set; } = 3;
|
||||||
|
|
||||||
|
[Category("\tPerformance")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public byte FarmingDelay { get; set; } = DefaultFarmingDelay;
|
public byte FarmingDelay { get; set; } = DefaultFarmingDelay;
|
||||||
|
|
||||||
|
[Category("\tPerformance")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public byte LoginLimiterDelay { get; set; } = 10;
|
public byte LoginLimiterDelay { get; set; } = 10;
|
||||||
|
|
||||||
|
[Category("\tPerformance")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public byte InventoryLimiterDelay { get; set; } = 3;
|
public byte InventoryLimiterDelay { get; set; } = 3;
|
||||||
|
|
||||||
|
[Category("\tPerformance")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public byte GiftsLimiterDelay { get; set; } = 1;
|
public byte GiftsLimiterDelay { get; set; } = 1;
|
||||||
|
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public byte MaxTradeHoldDuration { get; set; } = 15;
|
public byte MaxTradeHoldDuration { get; set; } = 15;
|
||||||
|
|
||||||
|
[Category("\tDebugging")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public bool ForceHttp { get; set; } = false;
|
public bool ForceHttp { get; set; } = false;
|
||||||
|
|
||||||
|
[Category("\tDebugging")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public byte HttpTimeout { get; set; } = DefaultHttpTimeout;
|
public byte HttpTimeout { get; set; } = DefaultHttpTimeout;
|
||||||
|
|
||||||
|
[Category("\tAccess")]
|
||||||
[JsonProperty]
|
[JsonProperty]
|
||||||
public string WCFHostname { get; set; } = "localhost";
|
public string WCFHostname { get; set; } = "localhost";
|
||||||
|
|
||||||
|
[Category("\tAccess")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public ushort WCFPort { get; set; } = DefaultWCFPort;
|
public ushort WCFPort { get; set; } = DefaultWCFPort;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user