コード例 #1
0
            internal static void addRow(IntPtr thisPtr, [MarshalAs(UnmanagedType.LPWStr)] string label, [MarshalAs(UnmanagedType.LPWStr)] string callback, int icon, int yPad, bool useHighlightIcon, bool enabled)
            {
                if (_addRowFunc == null)
                {
                    _addRowFunc =
                        (_addRow)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_GuiGameListMenuCtrl_addRow"), typeof(_addRow));
                }

                _addRowFunc(thisPtr, label, callback, icon, yPad, useHighlightIcon, enabled);
            }
コード例 #2
0
 internal static int addRow(IntPtr thisPtr, int id, [MarshalAs(UnmanagedType.LPWStr)]string text, int index)
 {
 	if (_addRowFunc == null)
 	{
 		_addRowFunc =
 			(_addRow)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
 				"fn_GuiTextListCtrl_addRow"), typeof(_addRow));
 	}
 
 	return  _addRowFunc(thisPtr, id, text, index);
 }
コード例 #3
0
            internal static void addRow(IntPtr thisPtr)
            {
                if (_addRowFunc == null)
                {
                    _addRowFunc =
                        (_addRow)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_GuiFrameSetCtrl_addRow"), typeof(_addRow));
                }

                _addRowFunc(thisPtr);
            }