Added llTextBox

Added llRemoveInventory
Fixed LINK_THIS based on the description on LSL Wiki


git-svn-id: https://lsleditor.svn.sourceforge.net/svnroot/lsleditor@34 3f4676ac-adda-40fd-8265-58d1435b1672
This commit is contained in:
mrsoundless 2011-05-02 18:12:09 +00:00
parent 3b71bed738
commit ad075a1fc8
9 changed files with 357 additions and 4 deletions

View file

@ -618,6 +618,39 @@ namespace LSLEditor
this.mainForm.Invoke(new ShowDialogDelegate(Dialog), this, (SecondLife.String)GetObjectName(), secondLife.llGetOwner(), (SecondLife.String)Properties.Settings.Default.AvatarName, message, buttons, channel);
}
delegate void ShowTextBoxDelegate(SecondLifeHost host,
SecondLife.String objectName,
SecondLife.key k,
SecondLife.String name,
SecondLife.String message,
SecondLife.integer channel);
private void TextBox(SecondLifeHost host,
SecondLife.String objectName,
SecondLife.key k,
SecondLife.String name,
SecondLife.String message,
SecondLife.integer channel)
{
llTextBoxForm TextBoxForm = new llTextBoxForm(host, objectName, k, name, message, channel);
TextBoxForm.Left = this.mainForm.Left + this.mainForm.Width / 2 - TextBoxForm.Width / 2;
TextBoxForm.Top = this.mainForm.Top + this.mainForm.Height / 2 - TextBoxForm.Height / 2;
TextBoxForm.Show(this.mainForm);
this.mainForm.llTextBoxForms.Add(TextBoxForm);
}
public void llTextBox(SecondLife.key avatar, SecondLife.String message, SecondLife.integer channel)
{
if (message.ToString().Length >= 512)
{
VerboseMessage("llTextBox: message too long, must be less than 512 characters");
return;
}
if (message.ToString().Length == 0)
{
VerboseMessage("llTextBos: must supply a message");
return;
}
this.mainForm.Invoke(new ShowTextBoxDelegate(TextBox), this, (SecondLife.String)GetObjectName(), secondLife.llGetOwner(), (SecondLife.String)Properties.Settings.Default.AvatarName, message, channel);
}
public void SetPermissions(SecondLife.integer intPermissions)
{
@ -930,6 +963,11 @@ namespace LSLEditor
return mainForm.SolutionExplorer.GetInventoryType(this.guid, name);
}
public void RemoveInventory(SecondLife.String name)
{
mainForm.SolutionExplorer.RemoveInventory(this.guid, name);
}
public System.Media.SoundPlayer GetSoundPlayer(string sound)
{
string strPath = mainForm.SolutionExplorer.GetPath(this.guid, sound);

View file

@ -2493,7 +2493,8 @@ namespace LSLEditor
}
public void llRemoveInventory(String inventory)
{
{
host.RemoveInventory(inventory);
Verbose("RemoveInventory(" + inventory + ")");
}
@ -3739,6 +3740,7 @@ PARCEL_DETAILS_AREA 4 The parcel's area, in sqm. (5 Characters) integer
public void llTextBox(key avatar, String message, integer chat_channel)
{
Verbose("llTextBox({0},\"{1}\",{2})",avatar,message,chat_channel);
host.llTextBox(avatar, message, chat_channel);
}
// 336