Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--Put the below in playerlogin.xml, playerloginx1.xml and playerlogingx2.xml inside your documents\Neverwinter Nights 2\ui\custom folder.
- --------------------------------------------------------------------
- -->
- <?xml version="1.0" encoding="utf-8"?>
- <!-- Neverwinter Nights 2 -->
- <!-- Copyright 2006 Obsidian Entertainment, Inc. -->
- <!-- The checkbox for saving the password must have the name that it currently has
- -- for the engine to be able to reference it. -->
- <UIScene name="SCREEN_PLAYERLOGIN" fadeout="0.3" fadein="0.3" fullscreen=true idleexpiretime="1.0"
- OnAdd=UIScene_OnAdd_InitPlayerLogin("PlayerName",local:0,"ServerIPDNS",local:2)
- OnAdd0=UIScene_OnAdd_InitDirectConnect("IPAddress",local:2,"ServerPass",local:3)
- OnRemove=UIScene_OnRemove_ClosePlayerLogin()
- priority="SCENE_FE_FULLSCREEN" />
- <UIPane name="CONTENTS_PANE" x=0 y=0 width=PARENT_WIDTH height=PARENT_HEIGHT usescalar=true >
- <!-- "BioWare Community Name" field -->
- <UIText name="PlayerNameTX" strref="183931" x=320 y="176" width="394" height="26" valign="middle" fontfamily="Body_Font" style=3/>
- <UIText name="PlayerName" x="320" y="203" width="394" height="26" valign="middle" editable=true maxlength=40 multiline=false
- update=true OnUpdate=UIObject_Misc_SetLocalVarString(local:0)
- OnReturn=UIButton_Input_PlayerLogin(local:0,local:1)
- selectable=true allowspace="true" nextcontrol="ServerIPDNS" prevcontrol="ServerIPDNS" />
- <UIFrame x=310 y=202 width=405 height=28 topleft="tp_frame_tl.tga" topright="tp_frame_tr.tga" bottomleft="tp_frame_bl.tga"
- bottomright="tp_frame_BR.tga" top="tp_frame_t.tga" bottom="tp_frame_b.tga"
- left="tp_frame_l.tga" right="tp_frame_r.tga" fillstyle="stretch" fill="tp_frame_bg.tga"
- border=5 />
- <!-- "Server IP" Field -->
- <UIText name="ServerIPDNSTX" text="Server Address" x=320 y="240" width="394" height="26" valign="middle" fontfamily="Body_Font" style=3 />
- <UIText name="ServerIPDNS" x="320" y="267" width="250" height="26" valign="middle" editable=true maxlength=32 multiline=false
- update=true OnUpdate=UIObject_Misc_SetLocalVarString(local:2) OnUpdate0=UIObject_Misc_SetLocalVarString(local:1)
- OnReturn=UIButton_Input_PlayerLogin(local:0,local:1)
- selectable=true nextcontrol="PlayerName" prevcontrol="PlayerName"/>
- <UIFrame x=310 y=266 width=250 height=28 topleft="tp_frame_tl.tga" topright="tp_frame_tr.tga" bottomleft="tp_frame_bl.tga"
- bottomright="tp_frame_BR.tga" top="tp_frame_t.tga" bottom="tp_frame_b.tga"
- left="tp_frame_l.tga" right="tp_frame_r.tga" fillstyle="stretch" fill="tp_frame_bg.tga"
- border=5 />
- <UIText name="ServerPassSTX" text="Server Password" x=580 y="240" width="394" height="26" valign="middle" fontfamily="Body_Font" style=3 />
- <UIText name="ServerPass" x="600" y="267" width="150" height="26" valign="middle" editable=true maxlength=32 multiline=false password="true"
- update=true OnUpdate=UIObject_Misc_SetLocalVarString(local:3)
- OnReturn=UIButton_Input_PlayerLogin(local:0,local:1)
- selectable=true nextcontrol="PlayerName" prevcontrol="PlayerName"/>
- <UIFrame x=580 y=266 width=150 height=28 topleft="tp_frame_tl.tga" topright="tp_frame_tr.tga" bottomleft="tp_frame_bl.tga"
- bottomright="tp_frame_BR.tga" top="tp_frame_t.tga" bottom="tp_frame_b.tga"
- left="tp_frame_l.tga" right="tp_frame_r.tga" fillstyle="stretch" fill="tp_frame_bg.tga"
- border=5 />
- <!-- Remember Password Text and Checkbox -->
- <UIButton name="SavePasswordCB" x=323 y=301 style="SQUARE_CHECKBOX_BUTTON" />
- <UIText name="SavePasswordTX" text="Remember Server Address" fontfamily="Body_Font" style=3 x=350 y=301 width="400" height=18
- valign="middle" align="left"/>
- <!-- Remember Server Password But Don't Display -->
- <UIText name="ServerPassword" x=329 y=425 width="0" height=0 valign="middle" editable=true maxlength=32
- update=true selectable=true OnUpdate=UIObject_Misc_SetLocalVarString(local:3) password="true" multiline=false
- OnReturn=UIButton_Input_MultiplayerDirectConnect(local:2,local:3) />
- <!-- "Dasaria II" -->
- <UIButton name="Dasaria2" text="Dasaria II" x=310 y="368" width=404 style="STYLE_LARGE_BUTTON"
- OnLeftClick=UIButton_Input_PlayerLogin(local:0,local:1) OnLeftClick0=UIButton_Input_MultiplayerDirectConnect(dasaria.dyndns-server.com,local:3) />
- <!-- "Direct Connect" -->
- <UIButton name="NewAccount" text="Direct Connect" x=280 y="323" style="STYLE_LARGE_BUTTON"
- OnLeftClick=UIButton_Input_PlayerLogin(local:0,local:1) OnLeftClick0=UIButton_Input_MultiplayerDirectConnect(local:2,local:3) />
- <!-- "Sign In" -->
- <UIButton name="Login" text="Host Game" x=493 y="323" style="STYLE_SMALL_BUTTON"
- OnLeftClick=UIButton_Input_PlayerLogin(local:0,local:1) />
- <!-- "Cancel" -->
- <UIButton name="Cancel" strref="67" x=625 y="323" style="STYLE_SMALL_BUTTON"
- OnLeftClick=UIButton_Input_PregameCancel("SCREEN_MAINMENU","SCREEN_MAINMENU","true") />
- <!-- Main Window -->
- <UIFrame x=262 y=130 width=504 height=234 topleft="frame1_tl.tga" topright="frame1_tr.tga" bottomleft="frame1_bl.tga"
- bottomright="frame1_BR.tga" top="frame1_t.tga" bottom="frame1_b.tga"
- left="frame1_l.tga" right="frame1_r.tga" border=32 />
- <!-- Title: "BioWare Community Login" -->
- <UIText name="TITLE" strref="183930" x="280" y="137" width="475" height="25" align="left" valign="middle" fontfamily="Title_Font" style="2" />
- <UIIcon img="title_medium02.tga" x=270 y=137 width=488 height=35 />
- <UIFrame x=268 y=139 width=492 height=218 fillstyle="tile" fill="cloth_bg.tga" />
- </UIPane>
- <UIIcon img="main_sub_bg_nx2.tga" x=0 width=1024 y=0 height=768 scalewithscene=true />
Advertisement
Add Comment
Please, Sign In to add comment