Exemplo n.º 1
0
 /// <summary>Insert an image into imagelist- returns the image index or -1 for failure.</summary>
 /// <description>
 /// 
 /// </description>
 /// <param name="imagePath">Imagemap, with path, to add to the list.</param>
 /// <code>
 /// // Define the imagemap to add to the list
 /// %imagePath = "./game/client/data/images/thisImage";
 /// 
 /// // Request the GuiImageList control to add the defined image to its list.
 /// %imageIndex = %thisGuiImageList.insert(%imagePath);
 /// </code>
 /// <returns>The index of the newly inserted imagemap, or -1 if the insertion failed.</returns>
 /// <see cref="SimObject" />
 public int Insert(string imagePath) {
      InternalUnsafeMethods.Insert__Args _args = new InternalUnsafeMethods.Insert__Args() {
         imagePath = imagePath,
      };
      int _engineResult = InternalUnsafeMethods.Insert()(ObjectPtr, _args);
      return _engineResult;
 }
Exemplo n.º 2
0
 /// <description>
 /// (object, pos) insert object at position
 /// </description>
 public void Insert(SimObject pObject = null, int pos = -1)
 {
     InternalUnsafeMethods.Insert__Args _args = new InternalUnsafeMethods.Insert__Args()
     {
         pObject = pObject.ObjectPtr,
         pos     = pos,
     };
     InternalUnsafeMethods.Insert()(ObjectPtr, _args);
 }