Exemplo n.º 1
0
    public PopupConfig GetConfigPopup()
    {
        _popupConfig = new PopupConfig();
        _popupConfig.DefaulStylePopup = StylePopup.value == 0 ? StyleViewPopup.DARK_STYLE : (StylePopup.value == 1 ? StyleViewPopup.LIGHT_STYLE : StyleViewPopup.NONE);
        try
        {
            Color colorCommonBackground, colorCommonText;


            if (ColorUtility.TryParseHtmlString(ColorCommonBackground.text, out colorCommonBackground))
            {
                _popupConfig.ColorCommonBackground = colorCommonBackground;
            }

            if (ColorUtility.TryParseHtmlString(ColorCommonText.text, out colorCommonText))
            {
                _popupConfig.ColorCommonText = colorCommonText;
            }
        }
        catch (Exception e)
        {
        }


        _popupConfig.WithPopup   = float.Parse(WithPopup.text.Trim());
        _popupConfig.HeightPopup = float.Parse(HeightPopup.text.Trim());
        _popupConfig.BackgroundCanvasPopupColor = Color.white;
        return(_popupConfig);
    }
Exemplo n.º 2
0
 public abstract void SetConfig(PopupConfig config);