public static void AddFunction(string cheatName, Enums.FunctionType functionType, string functionValue)
 {
     FunctionList.Add(new FunctionList
     {
         CheatName     = cheatName,
         OffsetList    = OffsetList.ToList(),
         FunctionType  = functionType,
         FunctionValue = functionValue
     });
 }
 private void AddListValues()
 {
     txtNameCheat.Text = OffsetPatch.FunctionList[_index].CheatName;
     txtValues.Text    = OffsetPatch.FunctionList[_index].FunctionValue;
     _type             = OffsetPatch.FunctionList[_index].FunctionType;
     foreach (var t in OffsetPatch.FunctionList[_index].OffsetList)
     {
         dataList.Rows.Add(t.Offset, t.Hex);
     }
 }
        private void AddListValues()
        {
            txtNameCheat.Text = OffsetPatch.FunctionList[_index].CheatName;
            txtValues.Text    = OffsetPatch.FunctionList[_index].FunctionValue;
            _type             = OffsetPatch.FunctionList[_index].FunctionType;
            var hookInfo = OffsetPatch.FunctionList[_index].HookInfo;

            if (_type == Enums.FunctionType.Button)
            {
                MyMessage.MsgShowInfo("Button Type Not Support Yet!");
                Dispose();
            }

            foreach (var t in OffsetPatch.FunctionList[_index].OffsetList)
            {
                dataList.Rows.Add(t.Offset, t.Hex);
            }

            if (_type == Enums.FunctionType.ToggleSeekBar ||
                _type == Enums.FunctionType.ButtonOnOffSeekBar ||
                _type == Enums.FunctionType.ToggleInputValue ||
                _type == Enums.FunctionType.ButtonOnOffInputValue)
            {
                chkMultiple.Enabled = true;
                txtValues.Enabled   = true;
                if (hookInfo.Field)
                {
                    chkField.Checked        = hookInfo.Field;
                    txtOffset.Text          = hookInfo.Offset;
                    comboType.SelectedIndex = (int)hookInfo.Type;
                }
            }

            chkMultiple.Checked = OffsetPatch.FunctionList[_index].MultipleValue;

            if (_type == Enums.FunctionType.Category)
            {
                txtValues.Enabled = true;
            }
        }
 public static void AddFunction(string cheatName = null, List <OffsetInfo> offsetList = null, Enums.FunctionType functionType = Enums.FunctionType.Category, string functionValue = null, bool multipleValue = false, HookInfo hookInfo = null)
 {
     FunctionList.Add(new FunctionList
     {
         CheatName     = cheatName,
         OffsetList    = (offsetList ?? new List <OffsetInfo>()).ToList(),
         FunctionType  = functionType,
         FunctionValue = functionValue,
         MultipleValue = multipleValue,
         HookInfo      = hookInfo
     });
 }
Exemple #5
0
 /// <summary>
 /// .ctor
 /// </summary>
 /// <param name="functionType"></param>
 public TrainNetwork(Enums.FunctionType functionType) : base(functionType)
 {
 }
Exemple #6
0
 public static void AddFunction(string cheatName = null, List <OffsetInfo> offsetList = null, Enums.FunctionType functionType = Enums.FunctionType.Category, string functionValue = null)
 {
     FunctionList.Add(new FunctionList
     {
         CheatName     = cheatName,
         OffsetList    = (offsetList ?? new List <OffsetInfo>()).ToList(),
         FunctionType  = functionType,
         FunctionValue = functionValue
     });
 }
Exemple #7
0
 /// <summary>
 /// .ctor
 /// </summary>
 /// <param name="functionType"></param>
 protected BaseFunction(Enums.FunctionType functionType)
 {
     FunctionType = functionType;
 }