Gonzo.Elements.UIElement.GetLayerDepth C# (CSharp) Method

GetLayerDepth() public static method

Gets the value of the corresponding layer depth.
public static GetLayerDepth ( LayerDepth Depth ) : float
Depth LayerDepth The depth for which to retrieve a value.
return float
        public static float GetLayerDepth(LayerDepth Depth)
        {
            switch(Depth)
            {
                case LayerDepth.Default:
                    return 0.0f;
                case LayerDepth.ImageLayer:
                    return 0.8f;
                case LayerDepth.ButtonLayer:
                    return 0.9f;
                case LayerDepth.DialogLayer:
                    return 0.10f;
                case LayerDepth.TextLayer:
                    return 0.11f;
                default:
                    return 0.0f;
            }
        }