예제 #1
0
 public VarHackContainer(
     VarHackPanel varHackPanel,
     int creationIndex,
     Func <string> getterFunction)
     : this(varHackPanel, creationIndex, false)
 {
     _getterFunction          = getterFunction;
     checkBoxNoNumber.Checked = true;
 }
예제 #2
0
        public VarHackContainer(VarHackPanel varHackPanel, int creationIndex, bool usePreWrittenVar)
        {
            InitializeComponent();
            _varHackPanel   = varHackPanel;
            _getterFunction = null;

            pictureBoxUpArrow.Click   += (sender, e) => _varHackPanel.MoveUpControl(this);
            pictureBoxDownArrow.Click += (sender, e) => _varHackPanel.MoveDownControl(this);
            pictureBoxRedX.Click      += (sender, e) => _varHackPanel.RemoveControl(this);
            checkBoxUsePointer.Click  += (sender, e) => textBoxPointerOffsetValue.Enabled = checkBoxUsePointer.Checked;

            SetDefaultValues(creationIndex, usePreWrittenVar);
        }
예제 #3
0
        public VarHackContainer(
            VarHackPanel varHackPanel,
            int creationIndex,
            string varName,
            uint address,
            Type memoryType,
            bool useHex,
            uint?pointerOffset)
            : this(varHackPanel, creationIndex, false)
        {
            textBoxNameValue.Text    = varName + " ";
            textBoxAddressValue.Text = "0x" + String.Format("{0:X}", address);
            GetRadioButtonForType(memoryType).Checked = true;
            checkBoxUseHex.Checked = useHex;

            if (pointerOffset.HasValue)
            {
                checkBoxUsePointer.Checked        = true;
                textBoxPointerOffsetValue.Enabled = true;
                textBoxPointerOffsetValue.Text    = "0x" + String.Format("{0:X}", pointerOffset.Value);
            }
        }