xboxscene.org forums

Author Topic: Xap Editor  (Read 82 times)

jimk72

  • Archived User
  • Full Member
  • *
  • Posts: 106
Xap Editor
« on: August 09, 2003, 07:38:00 AM »

Xap editor is now avail. on main page. If you edit any xap files please give this a try. It is a very user friendly editor with lots of xap specific helpers. Has syntax highlighting and is changeable in all aspects including adding new keyword. breakes the xap down intro DEFs and functions.

If you have any suggestions or bugs please send them hear and they will get fixed asap.

I am working on the meshes and a loader. so you can load a full menu as it would appear in the dash. Also a file conversion from say ASE to xm for those who want to create there own 3d dash. I am also thinking of creating a tut database that you can add keywords and it will display directions and the code to insert. example would be gcues menu tut1, and it would display all the info you need to edit your xap.

along the same lines i am thinking of an xml type patch system that anyone would be able to create that will tell the editor what to do.
example:

mainmenu.xip, default.xap, DEF intitial,to, DEF music, Replace with:
function InitMemoryMenuItems()
{
  var c = theFilesMenu.children[0].children[0];
  var nTitle = c.theSavedGameGrid.curTitle;
  var nSavedGame = c.theSavedGameGrid.curGridItem;

  if (nTitle < 0)
  {
      // we have the device menu
      if (theMemoryMonitor.curDevUnit == 8)
      {
          // TODO: Hard drive menu
          nFileMenuItemCount = 0;
      }
      else
      {
          c.MenuItemText1.text = theTranslator.Translate("PERSONALIZE");
          c.MenuItemText2.text = theTranslator.Translate("FORMAT");
          nFileMenuItemCount = 2;
      }
  }
  else if (nSavedGame < 0)
  {
      // we have the title/soundtrack menu
      c.MenuItemText1.text = theTranslator.Translate("LOAD");
      c.MenuItemText2.text = theTranslator.Translate("DELETE");
      nFileMenuItemCount = 2;
  }
  else
  {
      // we have the saved-game/song menu
      if (c.theSavedGameGrid.CanCopy())
      {
          c.MenuItemText1.text = theTranslator.Translate("COPY");
          c.MenuItemText2.text = theTranslator.Translate("DELETE");
          nFileMenuItemCount = 2;
      }
      else
      {
          c.MenuItemText1.text = theTranslator.Translate("DELETE");
          nFileMenuItemCount = 1;
      }
  }
}
:end

I hope you guys enjoy and use it as much as I do.
Logged

neo-dilly

  • Archived User
  • Jr. Member
  • *
  • Posts: 57
Xap Editor
« Reply #1 on: August 10, 2003, 07:49:00 AM »

*nm*
Logged