Пример #1
0
            internal static void sort(IntPtr thisPtr)
            {
                if (_sortFunc == null)
                {
                    _sortFunc =
                        (_sort)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                          "fn_GuiPopUpMenuCtrl_sort"), typeof(_sort));
                }

                _sortFunc(thisPtr);
            }
Пример #2
0
            internal static void sort(IntPtr thisPtr, bool ascending)
            {
                if (_sortFunc == null)
                {
                    _sortFunc =
                        (_sort)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                          "fn_ArrayObject_sort"), typeof(_sort));
                }

                _sortFunc(thisPtr, ascending);
            }
Пример #3
0
 internal static void sort(IntPtr thisPtr, int columnId, bool increasing)
 {
 	if (_sortFunc == null)
 	{
 		_sortFunc =
 			(_sort)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
 				"fn_GuiTextListCtrl_sort"), typeof(_sort));
 	}
 
 	 _sortFunc(thisPtr, columnId, increasing);
 }
Пример #4
0
            internal static void sort(IntPtr thisPtr, [MarshalAs(UnmanagedType.LPWStr)] string callbackFunction)
            {
                if (_sortFunc == null)
                {
                    _sortFunc =
                        (_sort)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                          "fn_SimSet_sort"), typeof(_sort));
                }

                _sortFunc(thisPtr, callbackFunction);
            }