Beispiel #1
0
        private void btnRename_Click(object sender, EventArgs e)
        {
            SimpleTextForm request = new SimpleTextForm("Rename Character", "Please enter the new name for the character", true);
            DialogResult   result  = request.ShowDialog();

            if (result == DialogResult.OK)
            {
                CsToolClass.getInstance().sendMessage("rename_player " + txtPlayerName.Text + " " + request.getText() + " verify");
            }
        }
Beispiel #2
0
        private void btnLotsAdjust_Click(object sender, EventArgs e)
        {
            SimpleTextForm request = new SimpleTextForm("Adjust lots", "Please enter the amount to adjust lots by (relative value)", true);
            DialogResult   result  = request.ShowDialog();

            if (result == DialogResult.OK)
            {
                // todo:  Make sure they REALLY want to do this in case they put in a large difference.
                CsToolClass.getInstance().sendMessage("adjust_lots " + txtCharacterId.Text + " " + request.getText());
            }
            getCharacterData();
        }
Beispiel #3
0
        private void btnModify_Click(object sender, System.EventArgs e)
        {
            // get the new value.
            SimpleTextForm request = new SimpleTextForm("Modify Objvar value", "Please enter the new value.", true);
            DialogResult   result  = request.ShowDialog();

            if (result == DialogResult.OK)
            {
                CsToolClass.getInstance().sendMessage("set_objvar " + m_id + " " + (( ObjvarEntry )m_entries[lstObjvars.SelectedIndex]).name + " " + request.getText());
            }
            CsToolClass.getInstance().sendMessage("list_objvars " + m_id);
        }
Beispiel #4
0
        private void btnBankUpdate_Click(object sender, System.EventArgs e)
        {
            SimpleTextForm request = new SimpleTextForm("Modify Bank Cash", "Please enter the new bank amount", true);
            DialogResult   result  = request.ShowDialog();

            if (result == DialogResult.OK)
            {
                // todo:  Make sure they REALLY want to do this in case they put in a large difference.
                CsToolClass.getInstance().sendMessage("set_bank_credits " + txtPlayerName.Text + " " + request.getText());
            }
            getCharacterData();
        }
Beispiel #5
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            // hrm.  how to do this.  new form?  Two MBoxs?
            string objvarname;
            string objvarvalue;

            SimpleTextForm newfrm = new SimpleTextForm("Objvar name", "Enter the objvar name", true);

            newfrm.ShowDialog();
            objvarname = newfrm.getText();
            if (objvarname == "")
            {
                return;
            }

            newfrm = new SimpleTextForm("Objvar value", "Enter the value for the new objvar", true);
            newfrm.ShowDialog();
            objvarvalue = newfrm.getText();

            CsToolClass.getInstance().sendMessage("set_objvar " + m_id + " " + objvarname + " " + objvarvalue);
            CsToolClass.getInstance().sendMessage("list_objvars " + m_id);
        }