public void CreatStyleTmp()
    {
        UIStyleInfo styleTmp = new UIStyleInfo();
        styleTmp.GetStyle(((UIWindowBase)target).gameObject);

        UIStyleConfigManager.AddData(styleTmp.m_StyleInfoName, styleTmp);

        m_StyleName = styleTmp.m_StyleInfoName;
    }
示例#2
0
    public void CreatStyleTmp()
    {
        UIStyleInfo styleTmp = new UIStyleInfo();

        styleTmp.GetStyle(((UIWindowBase)target).gameObject);

        UIStyleConfigManager.AddData(styleTmp.m_StyleInfoName, styleTmp);

        m_StyleName = styleTmp.m_StyleInfoName;
    }
    public void CreatStyle(string UIstyleName)
    {
        UIStyleInfo styleTmp = new UIStyleInfo();

        styleTmp.GetStyle(comp.gameObject);

        styleTmp.m_StyleInfoName = UIstyleName;

        UIStyleConfigManager.AddData(styleTmp.m_StyleInfoName, styleTmp);

        m_StyleName = styleTmp.m_StyleInfoName;

        m_currentStyle = UIStyleConfigManager.GetUIStyleList().Length - 1;
    }
 public void ReplaceStyle(UIStyleInfo l_styleInfo)
 {
     l_styleInfo = l_styleInfo.GetStyle(comp.gameObject);
 }