Exemplo n.º 1
0
    protected override void OnSkinUI()
    {
        base.OnSkinUI();
        rectTransform = GetComponent <RectTransform>();
        (float factor, float m_width, bool portrait) = ScreenSizeFactor.GetFactor();

        SetPaddingProps(data, factor);
    }
Exemplo n.º 2
0
    private void GetDimensions(out float factor, out Vector2 rectSize)
    {
        float m_width;
        bool  portrait;

        (factor, m_width, portrait) = ScreenSizeFactor.GetFactor();
        rectSize = new Vector2(base.defaultData.defaultButtonSize * factor, base.defaultData.defaultButtonSize * factor);
    }
Exemplo n.º 3
0
    protected override void OnSkinUI()
    {
        base.OnSkinUI();
        layoutGroup = GetComponent <LayoutGroup>();

        GetLayoutComponents();
        (float factor, float m_width, bool portrait) = ScreenSizeFactor.GetFactor();

        SetLayout(data, factor);
    }
Exemplo n.º 4
0
    protected override void OnSkinUI()
    {
        base.OnSkinUI();

        text          = GetComponent <TextMeshProUGUI>();
        rectTransform = GetComponent <RectTransform>();
        text.font     = font.fontAsset;

        (float factor, float m_width, bool portrait) = ScreenSizeFactor.GetFactor();
        AssignTextStyle(data, factor);
    }