// #name = KmAJoinIP // #date = 1st June 2002 // #author = Alexander Bjerkan // #warrior = Alex The Mad // #email = alexer@online.no // #description = Adds a "Join IP" thing to your game screen (up in the left corner). No need to join servers by IP trough the console anymore! // #credit = Kaiten Commander package KmAJoinIP { function AddStuff() { new ShellTextEditCtrl(IPBox) { profile = "NewTextEditProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "10 -5"; extent = "187 38"; minExtent = "32 38"; visible = "1"; hideCursor = "0"; bypassHideCursor = "0"; helpTag = "0"; longTextBuffer = "0"; maxLength = "21"; historySize = "0"; password = "0"; tabComplete = "0"; deniedSound = "InputDeniedSound"; glowOffset = "9 9"; variable = "$AlexJoinIP"; }; new ShellBitmapButton(IPButton) { profile = "ShellButtonProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "180 -5"; extent = "65 38"; minExtent = "32 38"; visible = "1"; command = "AlexJoinGame($AlexJoinIP);"; helpTag = "0"; text = "JOIN IP"; simpleStyle = "0"; }; GM_Frame.add(IPBox); GM_Frame.add(IPButton); } function GameGui::onWake(%this) { parent::onWake(%this); AddStuff(); } function AlexJoinGame(%address) { if(%address $= "") { Canvas.popDialog( MessageBoxOKDlg ); MessageBoxOK("Hmmmmmmm", "\nI don't think so:\nBlank Addresses\nGet you nowhere!" ); } else { JoinGame(%address); } } }; activatepackage(KmaJoinIP);