Ejemplo n.º 1
0
            internal static int insertItem(IntPtr thisPtr, int pos, [MarshalAs(UnmanagedType.LPWStr)] string title, [MarshalAs(UnmanagedType.LPWStr)] string accelerator, [MarshalAs(UnmanagedType.LPWStr)] string cmd)
            {
                if (_insertItemFunc == null)
                {
                    _insertItemFunc =
                        (_insertItem)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                "fn_PopupMenu_insertItem"), typeof(_insertItem));
                }

                return(_insertItemFunc(thisPtr, pos, title, accelerator, cmd));
            }
Ejemplo n.º 2
0
            internal static void insertItem(IntPtr thisPtr, [MarshalAs(UnmanagedType.LPWStr)] string text, int index)
            {
                if (_insertItemFunc == null)
                {
                    _insertItemFunc =
                        (_insertItem)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                "fn_GuiListBoxCtrl_insertItem"), typeof(_insertItem));
                }

                _insertItemFunc(thisPtr, text, index);
            }