Пример #1
0
        public override void Frame(IUIDataManager uiDataManager, int frameTime)
        {
            base.Frame(uiDataManager, frameTime);

            if (ValueAuto != null)
            {
                var v = ValueAuto.Frame(frameTime);
                if (v != null)
                {
                    SetText(v as string);
                }
            }
        }
Пример #2
0
        public override void Frame(IUIDataManager uiDataManager, int frameTime)
        {
            base.Frame(uiDataManager, frameTime);

            var fontAuto = GetAuto("font");

            if (fontAuto != null)
            {
                var font = fontAuto.Frame(frameTime) as string;
                var ss   = font.Split('_');
                if (ss.Length == 3)
                {
                    index  = int.Parse(ss[0]);
                    width  = int.Parse(ss[1]);
                    height = int.Parse(ss[2]);
                }
            }

            if (ValueAuto != null && ValueAuto.Started)
            {
                var v = ValueAuto.Frame(frameTime);
                SetNumber(Convert.ToInt32(v));
            }
        }