46
Off Topic / Darksaber2213: AMA
« on: March 07, 2015, 03:55:24 PM »
/title
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.
$Connectify::Client::Server = "irc.quakenet.org";
$Connectify::Client::Port = "6667";
function Connectify_Connect()
{
if(!isObject(Connectify_TCP))
new TCPObject(Connectify_TCP);
else
Connectify_TCP.disconnect();
%server = $Connectify::Client::Server @ ":" @ $Connectify::Client::Port;
Connectify_TCP.connect(%server);
connectifyGui.push("Connecting to server...");
Connectify_TCP.send("JOIN #Connectify" @ " \r\n");
}
//--- OBJECT WRITE BEGIN ---
new GuiControl(connectifyGui) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
new GuiWindowCtrl(connectifyGuiWindow) {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "135 134";
extent = "384 256";
minExtent = "64 64";
enabled = "1";
visible = "1";
clipToParent = "1";
text = "Connectify - Alpha";
maxLength = "255";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "64 64";
closeCommand = "Canvas.popDialog(connectifyGui);";
new GuiTextEditCtrl(connectifyChatbox) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "14 223";
extent = "280 18";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
variable = "$connectifyChatMessage";
maxLength = "64";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
new GuiBitmapButtonCtrl(connectifySendButton) {
profile = "BlockButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "300 217";
extent = "75 30";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
command = "Connectify_MsgVector.pushBackLine($connectifyChatMessage,0);connectifyChatbox.setValue(\"\");";
text = "Send";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "base/client/ui/button2";
lockAspectRatio = "0";
alignLeft = "0";
alignTop = "0";
overflowImage = "0";
mKeepCached = "0";
mColor = "255 255 255 255";
};
new GuiMessageVectorCtrl(connectifyMessageVectorControl) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "16 36";
extent = "350 170";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
lineSpacing = "0";
lineContinuedIndex = "10";
matchColor = "0 0 255 255";
maxColorIndex = "9";
};
};
};
//--- OBJECT WRITE END ---
function connectifyGui::onWake(%this)
{
if(!isObject(Connectify_MsgVector))
new MessageVector(Connectify_MsgVector);
connectifyMessageVectorControl.attach(Connectify_MsgVector);
}
Connectify_MsgVector.pushBackLine($connectifyChatMessage,0);
crashes as wellThis is why topics in Coding Help shouldn't be locked.
But on another note, you're totally wrong about this.
Look at the function declaration:Code: [Select]function BoltSpeedCheck(%this, %obj)
It's not a method on an object, it's just a regular function.
You'd be right if it was like this:Code: [Select]function wheeledVehicle::BoltSpeedCheck(%this, %obj)
(Not sure if wheeledVehicle is the right class name, but it's just an example)