Guest User

Neverwinter Nights 2 - Direct Connect Shortcut

a guest
Dec 8th, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | None | 0 0
  1. <!--Put the below in playerlogin.xml, playerloginx1.xml and playerlogingx2.xml inside your documents\Neverwinter Nights 2\ui\custom folder.
  2.  
  3. --------------------------------------------------------------------
  4. -->
  5.  
  6. <?xml version="1.0" encoding="utf-8"?>
  7. <!-- Neverwinter Nights 2 -->
  8. <!-- Copyright 2006 Obsidian Entertainment, Inc. -->
  9.  
  10. <!-- The checkbox for saving the password must have the name that it currently has
  11. -- for the engine to be able to reference it. -->
  12.  
  13. <UIScene name="SCREEN_PLAYERLOGIN" fadeout="0.3" fadein="0.3" fullscreen=true idleexpiretime="1.0"
  14. OnAdd=UIScene_OnAdd_InitPlayerLogin("PlayerName",local:0,"ServerIPDNS",local:2)
  15. OnAdd0=UIScene_OnAdd_InitDirectConnect("IPAddress",local:2,"ServerPass",local:3)
  16. OnRemove=UIScene_OnRemove_ClosePlayerLogin()
  17. priority="SCENE_FE_FULLSCREEN" />
  18.  
  19. <UIPane name="CONTENTS_PANE" x=0 y=0 width=PARENT_WIDTH height=PARENT_HEIGHT usescalar=true >
  20.  
  21. <!-- "BioWare Community Name" field -->
  22. <UIText name="PlayerNameTX" strref="183931" x=320 y="176" width="394" height="26" valign="middle" fontfamily="Body_Font" style=3/>
  23. <UIText name="PlayerName" x="320" y="203" width="394" height="26" valign="middle" editable=true maxlength=40 multiline=false
  24. update=true OnUpdate=UIObject_Misc_SetLocalVarString(local:0)
  25. OnReturn=UIButton_Input_PlayerLogin(local:0,local:1)
  26. selectable=true allowspace="true" nextcontrol="ServerIPDNS" prevcontrol="ServerIPDNS" />
  27. <UIFrame x=310 y=202 width=405 height=28 topleft="tp_frame_tl.tga" topright="tp_frame_tr.tga" bottomleft="tp_frame_bl.tga"
  28. bottomright="tp_frame_BR.tga" top="tp_frame_t.tga" bottom="tp_frame_b.tga"
  29. left="tp_frame_l.tga" right="tp_frame_r.tga" fillstyle="stretch" fill="tp_frame_bg.tga"
  30. border=5 />
  31.  
  32. <!-- "Server IP" Field -->
  33. <UIText name="ServerIPDNSTX" text="Server Address" x=320 y="240" width="394" height="26" valign="middle" fontfamily="Body_Font" style=3 />
  34. <UIText name="ServerIPDNS" x="320" y="267" width="250" height="26" valign="middle" editable=true maxlength=32 multiline=false
  35. update=true OnUpdate=UIObject_Misc_SetLocalVarString(local:2) OnUpdate0=UIObject_Misc_SetLocalVarString(local:1)
  36. OnReturn=UIButton_Input_PlayerLogin(local:0,local:1)
  37. selectable=true nextcontrol="PlayerName" prevcontrol="PlayerName"/>
  38. <UIFrame x=310 y=266 width=250 height=28 topleft="tp_frame_tl.tga" topright="tp_frame_tr.tga" bottomleft="tp_frame_bl.tga"
  39. bottomright="tp_frame_BR.tga" top="tp_frame_t.tga" bottom="tp_frame_b.tga"
  40. left="tp_frame_l.tga" right="tp_frame_r.tga" fillstyle="stretch" fill="tp_frame_bg.tga"
  41. border=5 />
  42.  
  43. <UIText name="ServerPassSTX" text="Server Password" x=580 y="240" width="394" height="26" valign="middle" fontfamily="Body_Font" style=3 />
  44. <UIText name="ServerPass" x="600" y="267" width="150" height="26" valign="middle" editable=true maxlength=32 multiline=false password="true"
  45. update=true OnUpdate=UIObject_Misc_SetLocalVarString(local:3)
  46. OnReturn=UIButton_Input_PlayerLogin(local:0,local:1)
  47. selectable=true nextcontrol="PlayerName" prevcontrol="PlayerName"/>
  48. <UIFrame x=580 y=266 width=150 height=28 topleft="tp_frame_tl.tga" topright="tp_frame_tr.tga" bottomleft="tp_frame_bl.tga"
  49. bottomright="tp_frame_BR.tga" top="tp_frame_t.tga" bottom="tp_frame_b.tga"
  50. left="tp_frame_l.tga" right="tp_frame_r.tga" fillstyle="stretch" fill="tp_frame_bg.tga"
  51. border=5 />
  52.  
  53. <!-- Remember Password Text and Checkbox -->
  54. <UIButton name="SavePasswordCB" x=323 y=301 style="SQUARE_CHECKBOX_BUTTON" />
  55. <UIText name="SavePasswordTX" text="Remember Server Address" fontfamily="Body_Font" style=3 x=350 y=301 width="400" height=18
  56. valign="middle" align="left"/>
  57.  
  58. <!-- Remember Server Password But Don't Display -->
  59. <UIText name="ServerPassword" x=329 y=425 width="0" height=0 valign="middle" editable=true maxlength=32
  60. update=true selectable=true OnUpdate=UIObject_Misc_SetLocalVarString(local:3) password="true" multiline=false
  61. OnReturn=UIButton_Input_MultiplayerDirectConnect(local:2,local:3) />
  62.  
  63. <!-- "Dasaria II" -->
  64. <UIButton name="Dasaria2" text="Dasaria II" x=310 y="368" width=404 style="STYLE_LARGE_BUTTON"
  65. OnLeftClick=UIButton_Input_PlayerLogin(local:0,local:1) OnLeftClick0=UIButton_Input_MultiplayerDirectConnect(dasaria.dyndns-server.com,local:3) />
  66.  
  67. <!-- "Direct Connect" -->
  68. <UIButton name="NewAccount" text="Direct Connect" x=280 y="323" style="STYLE_LARGE_BUTTON"
  69. OnLeftClick=UIButton_Input_PlayerLogin(local:0,local:1) OnLeftClick0=UIButton_Input_MultiplayerDirectConnect(local:2,local:3) />
  70.  
  71. <!-- "Sign In" -->
  72. <UIButton name="Login" text="Host Game" x=493 y="323" style="STYLE_SMALL_BUTTON"
  73. OnLeftClick=UIButton_Input_PlayerLogin(local:0,local:1) />
  74.  
  75. <!-- "Cancel" -->
  76. <UIButton name="Cancel" strref="67" x=625 y="323" style="STYLE_SMALL_BUTTON"
  77. OnLeftClick=UIButton_Input_PregameCancel("SCREEN_MAINMENU","SCREEN_MAINMENU","true") />
  78.  
  79. <!-- Main Window -->
  80. <UIFrame x=262 y=130 width=504 height=234 topleft="frame1_tl.tga" topright="frame1_tr.tga" bottomleft="frame1_bl.tga"
  81. bottomright="frame1_BR.tga" top="frame1_t.tga" bottom="frame1_b.tga"
  82. left="frame1_l.tga" right="frame1_r.tga" border=32 />
  83.  
  84. <!-- Title: "BioWare Community Login" -->
  85. <UIText name="TITLE" strref="183930" x="280" y="137" width="475" height="25" align="left" valign="middle" fontfamily="Title_Font" style="2" />
  86. <UIIcon img="title_medium02.tga" x=270 y=137 width=488 height=35 />
  87. <UIFrame x=268 y=139 width=492 height=218 fillstyle="tile" fill="cloth_bg.tga" />
  88. </UIPane>
  89.  
  90. <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