LLNetMap::LLNetMap (const Params & p) : LLUICtrl (p), mBackgroundColor (p.bg_color()), mScale( MAP_SCALE_MID ), //mPixelsPerMeter( MAP_SCALE_MID / REGION_WIDTH_METERS ), mPixelsPerMeter( MAP_SCALE_MID / LLWorld::getInstance()->getRegionWidthInMeters()), mObjectMapTPM(0.f), mObjectMapPixels(0.f), mTargetPan(0.f, 0.f), mCurPan(0.f, 0.f), mStartPan(0.f, 0.f), mMouseDown(0, 0), mPanning(false), mUpdateNow(false), mObjectImageCenterGlobal( gAgentCamera.getCameraPositionGlobal() ), mObjectRawImagep(), mObjectImagep(), mClosestAgentToCursor(), mClosestAgentAtLastRightClick(), mToolTipMsg(), mPopupMenu(NULL) { mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS); setScale(gSavedSettings.getF32("MiniMapScale")); }
LLListView::LLListView(const Params& p) : LLUICtrl(p), mLabel(NULL), mBgColor(p.bg_color()), mFgSelectedColor(p.fg_selected_color()), mBgSelectedColor(p.bg_selected_color()) { LLRect label_rect(0, 20, 300, 0); LLTextBox::Params text_box_params; text_box_params.rect(label_rect); text_box_params.initial_value("This is a list-view"); mLabel = LLUICtrlFactory::create<LLTextBox>(text_box_params); addChild(mLabel); }
LLNetMap::LLNetMap (const Params & p) : LLUICtrl (p), mBackgroundColor (p.bg_color()), mScale( MAP_SCALE_MID ), mPixelsPerMeter( MAP_SCALE_MID / REGION_WIDTH_METERS ), mObjectMapTPM(0.f), mObjectMapPixels(0.f), mTargetPanX(0.f), mTargetPanY(0.f), mCurPanX(0.f), mCurPanY(0.f), mUpdateNow(FALSE), mObjectImageCenterGlobal( gAgent.getCameraPositionGlobal() ), mObjectRawImagep(), mObjectImagep(), mClosestAgentToCursor(), mClosestAgentAtLastRightClick(), mToolTipMsg() { mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS); }