ParameterList.OnGUI C# (CSharp) Méthode

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void
    void OnGUI()
    {
        //testing skins - amy
        GUI.skin = customSkin;

        GUILayout.BeginArea(bgRect, GUI.skin.window);
        scrollPosition = GUILayout.BeginScrollView(scrollPosition, false, false);
        GUILayout.BeginVertical (GUI.skin.box);

        customStyle = GUI.skin.button;

        selected = GUILayout.SelectionGrid(selected, listItems, 1, customStyle, GUILayout.ExpandWidth(true));

        if (selected >= 0) {
            paramSelected = listItems [selected];
        }

        GUILayout.EndVertical();
        GUILayout.EndScrollView();
        GUILayout.EndArea();

        Vector2 textDimensions = GUI.skin.label.CalcSize(new GUIContent("Parameters"));

        GUI.Label (new Rect (((38*bgLeft+bgWidth)/2)-textDimensions.x/2, bgTop, textDimensions.x, 25), "Parameters");

        if (availableParams.ContainsKey (objectList.objectSelected)) {

        }

        GUI.enabled = (selected != -1);
        if (GUI.Button(new Rect(19*bgLeft, bgTop+bgHeight+Screen.height/48, bgWidth, 25),new GUIContent("Add"))){
        }
        GUI.enabled = true;
    }