Exemple #1
0
 public LRichText()
 {
     this.alignType              = RichAlignType.LEFT_TOP;
     this.maxLineWidth           = 200;
     this._richElements          = new List <LRichElement>();
     this._elemRenderArr         = new List <LRenderElement>();
     this._cacheLabElements      = new List <LRichCacheElement>();
     this._cacheImgElements      = new List <LRichCacheElement>();
     this._cacheFramAnimElements = new List <LRichCacheElement>();
     this._objectDataMap         = new Dictionary <GameObject, string>();
 }
    public LRichText()
    {
        this.alignType     = RichAlignType.LEFT_TOP;
        this.verticalSpace = 0;
        this.maxLineWidth  = 300;
        this.inputType     = InputType.MANUAL_CONTROL;

        _richElements          = new List <LRichElement>();
        _elemRenderArr         = new List <LRenderElement>();
        _cacheLabElements      = new List <LRichCacheElement>();
        _cacheImgElements      = new List <LRichCacheElement>();
        _cacheFramAnimElements = new List <LRichCacheElement> ();
        _objectDataMap         = new Dictionary <GameObject, string>();
        elementDic             = new SortedDictionary <int, LRichElement>();
        currentStr             = "";
    }
    static int set_alignType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LRichText     obj  = (LRichText)o;
            RichAlignType arg0 = (RichAlignType)ToLua.CheckObject(L, 2, typeof(RichAlignType));
            obj.alignType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index alignType on a nil value" : e.Message));
        }
    }
    static int get_alignType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LRichText     obj = (LRichText)o;
            RichAlignType ret = obj.alignType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index alignType on a nil value" : e.Message));
        }
    }
Exemple #5
0
        public LRichText()
        {
            this.alignType = RichAlignType.LEFT_TOP;
            this.verticalSpace = 0;
            this.maxLineWidth = 300;

            _richElements = new List<LRichElement>();
            _elemRenderArr = new List<LRenderElement>();
            _cacheLabElements = new List<LRichCacheElement>();
            _cacheImgElements = new List<LRichCacheElement>();
            _cacheFramAnimElements = new List<LRichCacheElement>();
            _objectDataMap = new Dictionary<GameObject, string>();
        }