mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Plumb the user flags all the way through to the profile. userFlags in
the database is now intepreted as follows: low byte = user flags. Next byte, low nibble: Deternines the text (Resident, Lifetime, etc) shown. No customn text support yet.
This commit is contained in:
@@ -629,7 +629,7 @@ namespace OpenSim.Framework
|
||||
void SendViewerTime(int phase);
|
||||
LLUUID GetDefaultAnimation(string name);
|
||||
|
||||
void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, string charterMember, string flAbout,
|
||||
void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, Byte[] charterMember, string flAbout,
|
||||
uint flags, LLUUID flImageID, LLUUID imageID, string profileURL, LLUUID partnerID);
|
||||
|
||||
void SendScriptQuestion(LLUUID taskID, string taskName, string ownerName, LLUUID itemID, int question);
|
||||
|
||||
@@ -2041,7 +2041,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
*/
|
||||
}
|
||||
|
||||
public void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, string charterMember,
|
||||
public void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, Byte[] charterMember,
|
||||
string flAbout, uint flags, LLUUID flImageID, LLUUID imageID, string profileURL,
|
||||
LLUUID partnerID)
|
||||
{
|
||||
@@ -2053,12 +2053,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
else
|
||||
avatarReply.PropertiesData.AboutText = Helpers.StringToField("");
|
||||
avatarReply.PropertiesData.BornOn = Helpers.StringToField(bornOn);
|
||||
avatarReply.PropertiesData.CharterMember = Helpers.StringToField(charterMember);
|
||||
avatarReply.PropertiesData.CharterMember = charterMember;
|
||||
if (flAbout != null)
|
||||
avatarReply.PropertiesData.FLAboutText = Helpers.StringToField(flAbout);
|
||||
else
|
||||
avatarReply.PropertiesData.FLAboutText = Helpers.StringToField("");
|
||||
avatarReply.PropertiesData.Flags = 0;
|
||||
avatarReply.PropertiesData.Flags = flags;
|
||||
avatarReply.PropertiesData.FLImageID = flImageID;
|
||||
avatarReply.PropertiesData.ImageID = imageID;
|
||||
avatarReply.PropertiesData.ProfileURL = Helpers.StringToField(profileURL);
|
||||
|
||||
@@ -97,9 +97,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Profiles
|
||||
UserProfileData profile = m_scene.CommsManager.UserService.GetUserProfile(avatarID);
|
||||
if (null != profile)
|
||||
{
|
||||
Byte[] charterMember = new Byte[1];
|
||||
charterMember[0] = (Byte)((profile.UserFlags & 0xf00) >> 8);
|
||||
|
||||
remoteClient.SendAvatarProperties(profile.ID, profile.AboutText,
|
||||
Util.ToDateTime(profile.Created).ToString(),
|
||||
String.Empty, profile.FirstLifeAboutText, profile.CanDoMask,
|
||||
charterMember, profile.FirstLifeAboutText, (uint)(profile.UserFlags & 0xff),
|
||||
profile.FirstLifeImage, profile.Image, String.Empty, partner);
|
||||
}
|
||||
else
|
||||
@@ -130,4 +133,4 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Profiles
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -698,7 +698,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
|
||||
{
|
||||
}
|
||||
|
||||
public void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, string charterMember,
|
||||
public void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, Byte[] charterMember,
|
||||
string flAbout, uint flags, LLUUID flImageID, LLUUID imageID, string profileURL,
|
||||
LLUUID partnerID)
|
||||
{
|
||||
|
||||
@@ -698,7 +698,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||
{
|
||||
}
|
||||
|
||||
public void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, string charterMember,
|
||||
public void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, Byte[] charterMember,
|
||||
string flAbout, uint flags, LLUUID flImageID, LLUUID imageID, string profileURL,
|
||||
LLUUID partnerID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user