mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-19 07:01:35 +08:00
798355e342
新增反代脚本只对Steam内置浏览器生效的选项
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace SteamTool.Model
|
|
{
|
|
public class IntStatInfo : StatInfo
|
|
{
|
|
public int OriginalValue { get; set; }
|
|
public int IntValue { get; set; }
|
|
public int MinValue { get; set; }
|
|
public int MaxValue { get; set; }
|
|
public int MaxChange { get; set; }
|
|
public bool IncrementOnly { get; set; }
|
|
public int DefaultValue { get; set; }
|
|
public override object Value
|
|
{
|
|
get { return this.IntValue; }
|
|
set
|
|
{
|
|
var b = int.TryParse((string)value, out int i);
|
|
if (b)
|
|
{
|
|
if ((this.Permission & 2) != 0 && this.IntValue != i)
|
|
{
|
|
//this.IntValue = this.IntValue;
|
|
}
|
|
else
|
|
{
|
|
this.IntValue = i;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public override bool IsModified
|
|
{
|
|
get { return this.IntValue != this.OriginalValue; }
|
|
}
|
|
}
|
|
}
|