Button(const std::string& text, const Inputs& inputs): osgWidget::Label("", text), _xyz(inputs) { setupLabel(this); setEventMask(osgWidget::EVENT_MASK_MOUSE_CLICK); setShadow(0.1f); addHeight(4.0f); }
ColorLabel(const char* label): osgWidget::Label("", "") { setFont("fonts/Vera.ttf"); setFontSize(14); setFontColor(1.0f, 1.0f, 1.0f, 1.0f); setColor(0.3f, 0.3f, 0.3f, 1.0f); addHeight(18.0f); setCanFill(true); setLabel(label); setEventMask(osgWidget::EVENT_MOUSE_PUSH | osgWidget::EVENT_MASK_MOUSE_MOVE); }