public void LoadView()
 {
     mLayout = new SampleAppsUILayout();
     mImageTargetLabel = mLayout.AddLabel("Image Targets");
     mAboutLabel = mLayout.AddSimpleButton("About");
     mLayout.AddGap(2);
     mExtendedTracking = mLayout.AddSlider("Extended Tracking", false);
     mLayout.AddGap(2);
     mAutoFocusSetting = mLayout.AddSlider("Autofocus", false);
     mLayout.AddGap(2);
     mCameraFlashSettings = mLayout.AddSlider("Flash", false);
     mLayout.AddGap(16);
     mCameraLabel = mLayout.AddGroupLabel("Camera");
     string[] options = { "Front", "Rear" };
     mCameraFacing = mLayout.AddToggleOptions(options, 1);
     mLayout.AddGap(14);
     mDataSetLabel = mLayout.AddGroupLabel("Database");
     string[] dataSetOptions = { "Stones & Chips", "Tarmac" };
     mDataSet = mLayout.AddToggleOptions(dataSetOptions, 0);
     Rect CloseButtonRect = new Rect(0, Screen.height - (100 * Screen.width) / 800.0f, Screen.width, (70.0f * Screen.width) / 800.0f);
     mCloseButton = mLayout.AddButton("Close", CloseButtonRect);
 }
Пример #2
0
    public void LoadView()
    {
        mLayout           = new SampleAppsUILayout();
        mImageTargetLabel = mLayout.AddLabel("Image Targets");
        mAboutLabel       = mLayout.AddSimpleButton("About");
        mLayout.AddGap(2);
        mExtendedTracking = mLayout.AddSlider("Extended Tracking", false);
        mLayout.AddGap(2);
        mAutoFocusSetting = mLayout.AddSlider("Autofocus", false);
        mLayout.AddGap(2);
        mCameraFlashSettings = mLayout.AddSlider("Flash", false);
        mLayout.AddGap(16);
        mCameraLabel = mLayout.AddGroupLabel("Camera");
        string[] options = { "Front", "Rear" };
        mCameraFacing = mLayout.AddToggleOptions(options, 1);
        mLayout.AddGap(14);
        mDataSetLabel = mLayout.AddGroupLabel("Database");
        string[] dataSetOptions = { "Stones & Chips", "Tarmac" };
        mDataSet = mLayout.AddToggleOptions(dataSetOptions, 0);
        Rect CloseButtonRect = new Rect(0, Screen.height - (100 * Screen.width) / 800.0f, Screen.width, (70.0f * Screen.width) / 800.0f);

        mCloseButton = mLayout.AddButton("Close", CloseButtonRect);
    }
Пример #3
0
 public void LoadView()
 {
     mLayout = new SampleAppsUILayout();
     mFrameMarkerLabel = mLayout.AddLabel("Frame Markers");
     mAboutLabel = mLayout.AddSimpleButton("About");
     mLayout.AddGap(2);
     mAutoFocusSetting = mLayout.AddSlider("Autofocus", false);
     mLayout.AddGap(2);
     mCameraFlashSettings = mLayout.AddSlider("Flash", false);
     mLayout.AddGap(16);
     mCameraLabel = mLayout.AddGroupLabel("Camera");
     string[] options = { "Front", "Rear" };
     mCameraFacing = mLayout.AddToggleOptions(options, 1);
     Rect CloseButtonRect = new Rect(0, Screen.height - (100 * Screen.width) / 800.0f, Screen.width, (70.0f * Screen.width) / 800.0f);
     mCloseButton = mLayout.AddButton("Close", CloseButtonRect);
 }
Пример #4
0
    public void LoadView()
    {
        mLayout      = new SampleAppsUILayout();
        mHeaderLabel = mLayout.AddLabel("User Defined Targets");
        mAboutLabel  = mLayout.AddSimpleButton("About");
        mLayout.AddGap(2);
        mExtendedTracking = mLayout.AddSlider("Extended Tracking", false);
        mLayout.AddGap(2);
        mAutoFocusSetting = mLayout.AddSlider("Autofocus", true);
        mLayout.AddGap(2);
        mCameraFlashSettings = mLayout.AddSlider("Flash", false);
        mLayout.AddGap(16);
        mCameraLabel = mLayout.AddGroupLabel("Camera");
        string[] options = { "Front", "Rear" };
        mCameraFacing = mLayout.AddToggleOptions(options, 1);
        Rect CloseButtonRect = new Rect(0, Screen.height - (100 * Screen.width) / 800.0f, Screen.width, (70.0f * Screen.width) / 800.0f);

        mCloseButton = mLayout.AddButton("Close", CloseButtonRect);
    }