+ y = y1;
+ add_subwindow(replace_object = new FindObjReplace(plugin, this,
+ x3, y - title->get_h() - 15));
+
+ add_subwindow(title = new BC_Title(x3, y + 10, _("Replace X:")));
+ drag_w = trk_w * plugin->config.replace_w / 100.;
+ drag_h = trk_h * plugin->config.replace_h / 100.;
+ ctr_x = trk_w * plugin->config.replace_x / 100.,
+ ctr_y = trk_h * plugin->config.replace_y / 100.;
+ drag_x = ctr_x - drag_w/2; drag_y = ctr_y - drag_h/2;
+ drag_replace = new FindObjDragReplace(plugin, this, x3+title->get_w()+10, y+5,
+ drag_x, drag_y, drag_w, drag_h);
+ add_subwindow(drag_replace);
+ drag_replace->create_objects();
+ y += title->get_h() + 15;
+
+ add_subwindow(replace_x = new FindObjScanFloat(plugin, this,
+ x3, y, &plugin->config.replace_x));
+ add_subwindow(replace_x_text = new FindObjScanFloatText(plugin, this,
+ x3 + replace_x->get_w() + 10, y + 10, &plugin->config.replace_x));
+ replace_x->center_text = replace_x_text;
+ replace_x_text->center = replace_x;
+
+ y += 40;
+ add_subwindow(title = new BC_Title(x3, y + 10, _("Replace Y:")));
+ y += title->get_h() + 15;
+ add_subwindow(replace_y = new FindObjScanFloat(plugin, this,
+ x3, y, &plugin->config.replace_y));
+ add_subwindow(replace_y_text = new FindObjScanFloatText(plugin, this,
+ x3 + replace_y->get_w() + 10, y + 10, &plugin->config.replace_y));
+ replace_y->center_text = replace_y_text;
+ replace_y_text->center = replace_y;
+
+ y += 40;
+ add_subwindow(new BC_Title(x3, y + 10, _("Replace W:")));
+ y += title->get_h() + 15;
+ add_subwindow(replace_w = new FindObjScanFloat(plugin, this,
+ x3, y, &plugin->config.replace_w));
+ add_subwindow(replace_w_text = new FindObjScanFloatText(plugin, this,
+ x3 + replace_w->get_w() + 10, y + 10, &plugin->config.replace_w));
+ replace_w->center_text = replace_w_text;
+ replace_w_text->center = replace_w;
+
+ y += 40;
+ add_subwindow(title = new BC_Title(x3, y + 10, _("Replace H:")));
+ y += title->get_h() + 15;
+ add_subwindow(replace_h = new FindObjScanFloat(plugin, this,
+ x3, y, &plugin->config.replace_h));
+ add_subwindow(replace_h_text = new FindObjScanFloatText(plugin, this,
+ x3 + replace_h->get_w() + 10, y + 10,
+ &plugin->config.replace_h));
+ replace_h->center_text = replace_h_text;
+ replace_h_text->center = replace_h;
+
+ y += 40; int y2 = y;
+ add_subwindow(title = new BC_Title(x3, y + 10, _("Replace DX:")));
+ y += title->get_h() + 15;
+ add_subwindow(replace_dx = new FindObjScanFloat(plugin, this,
+ x3, y, &plugin->config.replace_dx, -100.f, 100.f));
+ add_subwindow(replace_dx_text = new FindObjScanFloatText(plugin, this,
+ x3 + replace_dx->get_w() + 10, y + 10, &plugin->config.replace_dx));
+ replace_dx->center_text = replace_dx_text;
+ replace_dx_text->center = replace_dx;
+
+ y += 40;
+ add_subwindow(title = new BC_Title(x3, y + 10, _("Replace DY:")));
+ y += title->get_h() + 15;
+ add_subwindow(replace_dy = new FindObjScanFloat(plugin, this,
+ x3, y, &plugin->config.replace_dy, -100.f, 100.f));
+ add_subwindow(replace_dy_text = new FindObjScanFloatText(plugin, this,
+ x3 + replace_dy->get_w() + 10, y + 10, &plugin->config.replace_dy));
+ replace_dy->center_text = replace_dy_text;
+ replace_dy_text->center = replace_dy;
+
+ y = y2 + 15;