Exemple #1
0
 public UITableMessage(UITable uiTable)
     : base(uiTable)
 {
     Columns         = uiTable.columns;
     Direction       = uiTable.direction;
     Sorting         = uiTable.sorting;
     Pivot           = uiTable.pivot;
     CellAlignment   = uiTable.cellAlignment;
     HideInactive    = uiTable.hideInactive;
     KeepWithinPanel = uiTable.keepWithinPanel;
     Padding         = uiTable.padding;
 }
Exemple #2
0
        public override void Deserialize(BinaryReader br)
        {
            base.Deserialize(br);

            Columns         = br.ReadInt32();
            Direction       = (UITable.Direction)br.ReadInt32();
            Sorting         = (UITable.Sorting)br.ReadInt32();
            Pivot           = (UIWidget.Pivot)br.ReadInt32();
            CellAlignment   = (UIWidget.Pivot)br.ReadInt32();
            HideInactive    = br.ReadBoolean();
            KeepWithinPanel = br.ReadBoolean();
            Padding         = br.ReadVector2();
        }
Exemple #3
0
    static int set_sorting(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITable         obj  = (UITable)o;
            UITable.Sorting arg0 = (UITable.Sorting)ToLua.CheckObject(L, 2, typeof(UITable.Sorting));
            obj.sorting = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sorting on a nil value"));
        }
    }
Exemple #4
0
    static int get_sorting(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITable         obj = (UITable)o;
            UITable.Sorting ret = obj.sorting;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sorting on a nil value"));
        }
    }
Exemple #5
0
 public override void Unity_Deserialize(int depth)
 {
     this.columns       = SerializedStateReader.Instance.ReadInt32();
     this.direction     = (UITable.Direction)SerializedStateReader.Instance.ReadInt32();
     this.sorting       = (UITable.Sorting)SerializedStateReader.Instance.ReadInt32();
     this.pivot         = (UIWidget.Pivot)SerializedStateReader.Instance.ReadInt32();
     this.cellAlignment = (UIWidget.Pivot)SerializedStateReader.Instance.ReadInt32();
     this.hideInactive  = SerializedStateReader.Instance.ReadBoolean();
     SerializedStateReader.Instance.Align();
     this.keepWithinPanel = SerializedStateReader.Instance.ReadBoolean();
     SerializedStateReader.Instance.Align();
     if (depth <= 7)
     {
         this.padding.Unity_Deserialize(depth + 1);
     }
     SerializedStateReader.Instance.Align();
 }
    private static int set_sorting(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            UITable         uITable = (UITable)obj;
            UITable.Sorting sorting = (UITable.Sorting)((int)ToLua.CheckObject(L, 2, typeof(UITable.Sorting)));
            uITable.sorting = sorting;
            result          = 0;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index sorting on a nil value");
        }
        return(result);
    }
    private static int get_sorting(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            UITable         uITable = (UITable)obj;
            UITable.Sorting sorting = uITable.sorting;
            ToLua.Push(L, sorting);
            result = 1;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index sorting on a nil value");
        }
        return(result);
    }
Exemple #8
0
    public unsafe override void Unity_NamedDeserialize(int depth)
    {
        ISerializedNamedStateReader arg_1A_0 = SerializedNamedStateReader.Instance;

        byte[] var_0_cp_0 = $FieldNamesStorage.$RuntimeNames;
        int    var_0_cp_1 = 0;

        this.columns       = arg_1A_0.ReadInt32(&var_0_cp_0[var_0_cp_1] + 1879);
        this.direction     = (UITable.Direction)SerializedNamedStateReader.Instance.ReadInt32(&var_0_cp_0[var_0_cp_1] + 1639);
        this.sorting       = (UITable.Sorting)SerializedNamedStateReader.Instance.ReadInt32(&var_0_cp_0[var_0_cp_1] + 940);
        this.pivot         = (UIWidget.Pivot)SerializedNamedStateReader.Instance.ReadInt32(&var_0_cp_0[var_0_cp_1] + 697);
        this.cellAlignment = (UIWidget.Pivot)SerializedNamedStateReader.Instance.ReadInt32(&var_0_cp_0[var_0_cp_1] + 1887);
        this.hideInactive  = SerializedNamedStateReader.Instance.ReadBoolean(&var_0_cp_0[var_0_cp_1] + 996);
        SerializedNamedStateReader.Instance.Align();
        this.keepWithinPanel = SerializedNamedStateReader.Instance.ReadBoolean(&var_0_cp_0[var_0_cp_1] + 1009);
        SerializedNamedStateReader.Instance.Align();
        if (depth <= 7)
        {
            SerializedNamedStateReader.Instance.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 1353);
            this.padding.Unity_NamedDeserialize(depth + 1);
            SerializedNamedStateReader.Instance.EndMetaGroup();
        }
        SerializedNamedStateReader.Instance.Align();
    }