Exemplo n.º 1
0
        internal static void OnRequestDrawItem(ItemBox item_box, RequestDrawItemEventArg rc_arg)
        {
            Instance inst = rc_arg.Item;

            ItemInfo info = item_box.findItem(inst);

            if (null != info && null != info.Item)
            {
                IBDrawItemInfo draw_info = (IBDrawItemInfo)Util.PtrToStruct <IBDrawItemInfo>(rc_arg.DrawItemInfo);
                item_box.mHandleDrawItem(item_box.Name, info, draw_info);
            }
        }
Exemplo n.º 2
0
        internal static void OnRequestDrawItem(ItemBox item_box, RequestDrawItemEventArg rc_arg)
        {
            Instance inst = rc_arg.Item;

            ItemInfo info = item_box.findItem(inst);
            if (null != info && null != info.Item)
            {
                IBDrawItemInfo draw_info = (IBDrawItemInfo)Util.PtrToStruct<IBDrawItemInfo>(rc_arg.DrawItemInfo);
                item_box.mHandleDrawItem(item_box.Name, info, draw_info);
            }
        }