[Code]: Menu Connect to ip


(Scennative) #1

Here a little mini mod for all mods:

pak0.pk3
ui/playonline.menu:

Delete:


	SUBWINDOW( 6, 32, (FILTERS_WIDTH), 28, "MESSAGE OF THE DAY" )
	itemDef {
		name			"messageOfTheDay"
		group			GROUP_NAME
		rect			8 48 $evalfloat((FILTERS_WIDTH)-4) 10
		ownerDraw		UI_SERVERMOTD
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalignx		4
		textaligny		8
		forecolor		.6 .6 .6 1
		visible			1
		decoration
	}

Add:


	//Chaos Quick Join, Inspirited of Pop-Mod
	SUBWINDOW( 6, 32, (FILTERS_WIDTH), 28, "Quick Join" )
	itemDef {
		name		"efleftback IP:"
		group		GROUP_NAME
		rect		8 48 $evalfloat((FILTERS_WIDTH)-4) 10
		style		WINDOW_STYLE_FILLED
		backcolor	.5 .5 .5 .2
		visible		1
		decoration
	}
	
	EDITFIELDLEFT( 8, 48, 164, 10, "IP:", .2, 8, "ui_connectToIPAddress", 35, 21, "Enter the IP address seperated by dots: xxx.xxx.xxx.xxx" )
	BUTTON( 181, 48, 30, 10, "Join", .2, 8, conditionalscript ui_connectToIPAddress 1 ( "uiScript JoinDirectServer" ) ( "open playonline_connecttoip" ) )

Here the result:

Dont forgott to press the Thanks button… :slight_smile:
WTF HERE IS NO THANKS BUTTON!!! :eek:

FUUUUUUUUUUUUUUUUUUUUUUUUUUUCK! :mad:

Greetz sCenna. :smiley: :tongue:


(Nail) #2

I use:

C:\Program Files (x86)\Wolfenstein - Enemy Territory\ET.exe" +connect 195.4.17.142


(IndyJones) #3

i use .bat file. diffrent .bat for diffrent servers.
but still, nice idea but u can’t paste the ip address (unlike in console).


(Cambodunum) #4

Yeah nice idea … but im also afraid that nearly noone gonna use it.
There are already several applications, such as hlsw, xfire and last
but not least: the good old console :slight_smile:

greetz Cambo


(Indloon) #5

How I can add this into own made mod?


(nUllSkillZ) #6

You have to unpack ui/playonline.menu from pak0.pk3, edit it and repack it in your own modpakfile (NOT INTO pak0.pk3).


(Indloon) #7

Oh yes,thanks,helped.


(avery) #8

I have made a main menu that has a button for each server our clan has on the main page, and another button named “Other Servers” underneath the Play Online button that opens a screen with the other server that I like to play on too. Works nicely and I love it.