* Complete rewrite of AppearanceManager. Appearance editing has not been (re)implemented yet, but the normal appearance setting is much more reliable * Added a setting (defaulted to true) for automatically setting appearance * Various baking hacks to get slightly less ugly avatars * Added baked texture uploading through CAPS in AssetManager.RequestUploadBakedTexture(). UDP fallback is not implemented yet * Added Parallel.Invoke() and overloads for all three methods that take a threadCount git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3038 52acb1d6-8a22-11de-b505-999d5b087335
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using OpenMetaverse;
|
|
|
|
namespace OpenMetaverse.TestClient
|
|
{
|
|
public class WearCommand : Command
|
|
{
|
|
public WearCommand(TestClient testClient)
|
|
{
|
|
Client = testClient;
|
|
Name = "wear";
|
|
Description = "Wear an outfit folder from inventory. Usage: wear [outfit name] [nobake]";
|
|
Category = CommandCategory.Appearance;
|
|
}
|
|
|
|
public override string Execute(string[] args, UUID fromAgentID)
|
|
{
|
|
if (args.Length < 1)
|
|
return "Usage: wear [outfit name] eg: 'wear /My Outfit/Dance Party";
|
|
|
|
string target = String.Empty;
|
|
bool bake = true;
|
|
|
|
for (int ct = 0; ct < args.Length; ct++)
|
|
{
|
|
if (args[ct].Equals("nobake"))
|
|
bake = false;
|
|
else
|
|
target = target + args[ct] + " ";
|
|
}
|
|
|
|
target = target.TrimEnd();
|
|
|
|
//Client.Appearance.WearOutfit(target.Split('/'), bake);
|
|
|
|
return "FIXME: Implement this";
|
|
}
|
|
}
|
|
}
|