void loadData(m_Then t) { t.type = TheMapData.then_type_Variable; t.v = comboV.Text; t.opt = convert2(comboOpt.Text); t.value = TheTool.getInt(textValue.Text); }
void loadData(m_Then t) { t.type = TheMapData.then_type_Mouse; t.value = comboKey.SelectedIndex + 1; t.x = TheTool.getInt(txtX); t.y = TheTool.getInt(txtY); }
public void edit_Time(m_Then t_origin) { addNew = false; this.Title = "Edit Time Wait Event"; butAdd.Content = "Edit"; this.t_origin = t_origin; textBox1.Text = t_origin.value_d.ToString(); }
public void editThen_Key(m_Then t_origin) { try { addNew = false; this.t_origin = t_origin; this.Title = "Edit Mouse Move Event"; butAdd.Content = "Edit"; } catch { } }
public void edit_Database(m_Then t_origin) { try { addNew = false; this.t_origin = t_origin; this.Title = "Edit Motion from Database Event"; butAdd.Content = "Edit"; comboDB.Text = t_origin.v; } catch { } }
void loadData(m_Then t) { t.type = TheMapData.then_type_ReplaceKey; t.v = comboV1.Text; if (comboV1.Text != comboV2.Text) { t.v2 = comboV2.Text; } else { t.v2 = ""; } }
void loadData(m_Then t) { t.type = TheMapData.then_type_Key; if (radio2.IsChecked.Value) { t.key0 = comboKey2.SelectedValue.ToString(); } else { t.key0 = comboKey.SelectedValue.ToString(); } t.key = TheKeySender.getKey(t.key0); t.press = getKeytype(); }
public void editThen_Variable(m_Then t_origin) { try { addNew = false; this.Title = "Edit Variable Event"; butAdd.Content = "Edit"; // this.t_origin = t_origin; comboV.Text = t_origin.v; comboOpt.Text = convert1(t_origin.opt); textValue.Text = t_origin.value.ToString(); } catch { } }
public void edit_Icon(m_Then t_origin) { addNew = false; this.Title = "Edit Change Icon Condition"; butAdd.Content = "Edit"; this.t_origin = t_origin; if (t_origin.v != "" && t_origin.v != " ") { txt_txt.Text = t_origin.v; } txt_time.Text = t_origin.value_d.ToString(); if (t_origin.brush0 != "") { comboColor.Text = t_origin.brush0; refreshColor(comboColor.Text); } }
void finish() { try { if (addNew) { m_Then t = new m_Then(); loadData(t); form_editor.addThen(t, self, map_type, addIndex); } else { int[] loc = form_editor.getTVI_Location(self); loadData(t_origin); form_editor.reloadTree(loc, map_type); } this.Close(); } catch { } }
public void edit_ReplaceKey(m_Then t_origin) { try { addNew = false; this.t_origin = t_origin; this.Title = "Edit Key Replacement Event"; butAdd.Content = "Edit"; comboV1.Text = t_origin.v; if (t_origin.v2 != "") { comboV2.Text = t_origin.v2; } else { comboV2.Text = t_origin.v; } } catch { } }
public void editThen_Key(m_Then t_origin) { try { addNew = false; this.t_origin = t_origin; this.Title = "Edit Key Event"; butAdd.Content = "Edit"; // setKeytype(t_origin.press); if (TheTool.stringExist_inList(t_origin.key0, TheKeySender.key_list_basicOnly)) { radio1.IsChecked = true; comboKey.Text = t_origin.key0; } else { radio2.IsChecked = true; comboKey2.Text = t_origin.key0; } } catch { } }
void loadData(m_Then t) { t.type = TheMapData.then_type_Icon; t.value_d = TheTool.getDouble(txt_time.Text); if (txt_txt.Text == "") { t.v = " "; } else { t.v = txt_txt.Text; } if (comboColor.Text != noColorChange) { t.brush0 = comboColor.Text; } else { t.brush0 = ""; } }
void loadData(m_Then t) { t.type = TheMapData.then_type_TimeWait; t.value_d = TheTool.getDouble(textBox1.Text); }
void loadData(m_Then t) { t.type = TheMapData.then_type_EventDatabase; t.v = comboDB.Text; }