예제 #1
0
        public void regDirect(string name, spriteFont font)
        {
            if (this.mapInfo.ContainsKey(name))
            //var item = this.mapInfo[name];
            //if (item != Script.Undefined)
            {
                throw new Exception("you can't reg the same name"); //ness
            }
            var item = new fontMgrItem();                           //ness

            this.mapInfo[name] = item;
            item.font          = font;
        }
예제 #2
0
        public void reg(string name, string urlfont, string urlatalstex, string urlatalstex_add)
        {
            //重复注册处理
            var item = this.mapInfo[name];

            if (item != Script.Undefined)
            {
                throw new Exception("you can't reg the same name"); //ness
            }
            item = new fontMgrItem();                               //ness

            this.mapInfo[name]   = item;
            item.url             = urlfont;
            item.urlatalstex     = urlatalstex;
            item.urlatalstex_add = urlatalstex_add;
        }