void Editor::draw_object_with_numbers_at (const GraIt& i, const int nr, const int max, const int px, const int py) { std::ostringstream s; s << nr << "/" << max; Help::draw_shadow_centered_text(map_frames, font_med, s.str().c_str(), i->get_x() - px + i->get_xl()/2, i->get_y() - py, color[COL_TEXT], color[COL_API_SHADOW]); }
// Wird je nach Torus-Einstellung mehrmals von find_check aufgerufen, where_xy. void Editor::find_check_at( Selection& s, GraLi& l, GraIt g, Editor::FindBy findby, const int whx, const int why ) { if (findby == Editor::FIND_BY_TRANSP) { const int col = g->get_pixel(whx - g->get_x(), why - g->get_y()); if (col != color[COL_TRANSPARENT] && col != color[COL_PINK]) { s.o = g; s.l = &l; } } else { if (whx - g->get_x() >= g->get_selbox_x() && whx - g->get_x() < g->get_selbox_x() + g->get_selbox_xl() && why - g->get_y() >= g->get_selbox_y() && why - g->get_y() < g->get_selbox_y() + g->get_selbox_yl()) { s.o = g; s.l = &l; } } }