Example #1
0
    // Token: 0x060025AA RID: 9642 RVA: 0x000B9C44 File Offset: 0x000B8044
    private void DrawSampleDetails(SampleDescriptor sample)
    {
        Rect rect = new Rect((float)(Screen.width / 3), 165f, (float)(Screen.width / 3 * 2), (float)(Screen.height - 160 - 5));

        GUI.Box(rect, string.Empty);
        GUILayout.BeginArea(rect);
        GUILayout.BeginVertical(new GUILayoutOption[0]);
        GUIHelper.DrawCenteredText(sample.DisplayName);
        GUILayout.Space(5f);
        GUILayout.Label(sample.Description, new GUILayoutOption[0]);
        GUILayout.FlexibleSpace();
        if (GUILayout.Button("Start Sample", new GUILayoutOption[0]))
        {
            sample.CreateUnityObject();
        }
        GUILayout.EndVertical();
        GUILayout.EndArea();
    }
Example #2
0
    private void DrawSampleDetails(SampleDescriptor sample)
    {
        Rect area = new Rect(Screen.width / 3, statisticsHeight + 5, (Screen.width / 3) * 2, Screen.height - statisticsHeight - 5);

        GUI.Box(area, string.Empty);

        GUILayout.BeginArea(area);
        GUILayout.BeginVertical();
        GUIHelper.DrawCenteredText(sample.DisplayName);
        GUILayout.Space(5);
        GUILayout.Label(sample.Description);
        GUILayout.FlexibleSpace();

        if (GUILayout.Button("Start Sample"))
        {
            sample.CreateUnityObject();
        }

        GUILayout.EndVertical();
        GUILayout.EndArea();
    }
Example #3
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            if (SelectedSample != null && SelectedSample.IsRunning)
            {
                SelectedSample.DestroyUnityObject();
            }
            else
            {
                Application.Quit();
            }
        }

        if (Input.GetKeyDown(KeyCode.KeypadEnter) || Input.GetKeyDown(KeyCode.Return))
        {
            if (SelectedSample != null && !SelectedSample.IsRunning)
            {
                SelectedSample.CreateUnityObject();
            }
        }
    }
Example #4
0
    private void DrawSampleDetails(SampleDescriptor sample)
    {
        Rect area = new Rect(Screen.width / 3, statisticsHeight + 5, (Screen.width / 3) * 2, Screen.height - statisticsHeight - 5);
        GUI.Box(area, string.Empty);

        GUILayout.BeginArea(area);
            GUILayout.BeginVertical();
                GUIHelper.DrawCenteredText(sample.DisplayName);
                GUILayout.Space(5);
                GUILayout.Label(sample.Description);
                GUILayout.FlexibleSpace();

                if (GUILayout.Button("Start Sample"))
                    sample.CreateUnityObject();

            GUILayout.EndVertical();
        GUILayout.EndArea();
    }