1
Modification Help / Re: Add-on help
« on: December 10, 2009, 10:26:25 PM »
wait, whats that mean?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
//--- OBJECT WRITE BEGIN ---
new GuiControl(control) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 2";
visible = "1";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "110 27";
extent = "153 95";
minExtent = "8 2";
visible = "1";
text = "Killer";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
closeCommand = "canvas.popdialog(control);";
};
new GuiBitmapButtonCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "116 84";
extent = "140 30";
minExtent = "8 2";
visible = "1";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "./client/ui/button1";
lockAspectRatio = "0";
alignLeft = "0";
overflowImage = "0";
mKeepCached = "0";
mColor = "0 255 0 255";
};
new GuiMLTextCtrl() {
profile = "GuiMLTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "177 91";
extent = "19 14";
minExtent = "8 2";
visible = "1";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
text = "Kill";
maxBitmapHeight = "-1";
selectable = "1";
};
new GuiEditCtrl() {
profile = "LoadTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "122 54";
extent = "125 30";
minExtent = "8 2";
visible = "1";
};
new GuiTextEditCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "119 59";
extent = "135 18";
minExtent = "8 2";
visible = "1";
maxLength = "128";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
};
//--- OBJECT WRITE END ---
function pushtestgui(%Gui)
{
%Gui = canvas.pushDialog(control);
}
here is the code for the gui...
the gui is just a button and a textbox, you are suppose to type in the name and it kills that person.2. i have no idea what you mean by command variable, im guessing its client?
exec("./control.gui");
function Kill(%client)
{
ServercmdSelf Delete(findclientbyname(%client));
}