123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352 |
- //----------------------------------------------------------------------------------------------
- //
- // FIND PLAYER POPUP MENU
- //
- // Screen for finding which server has a particular player
- //
- //----------------------------------------------------------------------------------------------
- {
- menuDef
- {
- name "findplayer_popmenu"
- visible 0
- fullscreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 125 60 390 360
- focusColor 1 1 1 1 // Focus color for text and items
- style 1
- border 1
- descX 320
- descY 400
- descScale 1
- descColor 1 .682 0 .8
- descAlignment ITEM_ALIGN_CENTER
- popup
- onOpen
- {
- uiScript FindPlayer
- setfocus nameField
- }
- onESC
- {
- play "sound/interface/esc.wav" ;
- close findplayer_popmenu
- }
- //----------------------------------------------------------------------------------------------
- // MENU BACKGROUND
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name setup_background
- group none
- style WINDOW_STYLE_FILLED
- rect 0 0 390 380
- backcolor 0 0 .35 .9
- forecolor 1 1 1 1
- border 1
- bordercolor 0 0 .8 1
- visible 1
- decoration
- }
- //---------------------------------------------
- // TITLE
- //---------------------------------------------
- // title
- itemDef
- {
- name screenTitle
- text @MENUS_FIND_PLAYER
- style WINDOW_STYLE_SHADER
- background "gfx/menus/menu_blendbox"
- rect 25 5 340 20
- font 3
- textscale 0.7
- textalign ITEM_ALIGN_CENTER
- textalignx 170
- textaligny 1
- forecolor .549 .854 1 1
- visible 1
- decoration
- }
- //---------------------------------------------
- // PLAYER NAME
- //---------------------------------------------
- itemDef
- {
- name nameTitle
- text @MENUS_NAME1
- style 0
- decoration
- font 2
- textscale .9
- rect 25 30 90 25
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 0
- forecolor .549 .854 1 1
- visible 1
- }
- itemDef
- {
- name nameEntry
- style 1
- descText @MENUS_INPUT_PLAYER_NAME
- text @MENUS_BLANK_1
- maxchars 15
- font 2
- textscale .9
- type ITEM_TYPE_EDITFIELD
- cvar "ui_findplayer"
- rect 115 30 250 25
- textalign ITEM_ALIGN_LEFT
- textalignx 5
- textaligny 0
- forecolor 1 1 1 1
- backcolor .25 .25 .25 .5
- border 1
- bordercolor .79 .64 .22 1
- visible 1
- action
- {
- ui_script FindPlayer
- }
- mouseenter
- {
- setitemcolor nameEntry backcolor .25 .25 .25 .75
- }
- mouseexit
- {
- setitemcolor nameEntry backcolor .25 .25 .25 .5
- }
- }
- //---------------------------------------------
- // LIST OF SERVER NAMES
- //---------------------------------------------
- itemDef
- {
- name serverNameList
- rect 25 60 340 90
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_FILLED
- elementwidth 120
- elementheight 16
- font 2
- textscale .8
- backcolor 0 0 0 0.5
- outlinecolor .1 .1 .7 .5
- border 1
- bordersize 1
- bordercolor .5 .5 .5 1
- elementtype LISTBOX_TEXT
- feeder FEEDER_FINDPLAYER
- visible 1
- textaligny 12
- mouseenter
- {
- setitemcolor serverNameWindow bordercolor .7 0 0 1
- }
- mouseexit
- {
- setitemcolor serverNameWindow bordercolor .5 .5 .5 1
- }
- }
- itemDef
- {
- name serverNameWindow
- rect 25 60 340 90
- style 1
- backcolor 0 0 0 0
- forecolor 0 0 0 0
- border 1
- bordersize 1
- bordercolor .5 .5 .5 1
- visible 1
- decoration
- }
- itemDef
- {
- name serversFoundMsg
- cvar "ui_playerServersFound"
- type 0
- style 0
- background "gfx/menus/menu_blendbox"
- rect 5 360 390 30
- font 3
- textscale .6
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny 1
- forecolor .549 .854 1 1
- visible 1
- decoration
- }
- //---------------------------------------------
- // LIST OF SERVER STATUS INFORMATION
- //---------------------------------------------
- itemDef
- {
- name serverInfoList
- rect 25 160 340 150
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_FILLED
- elementwidth 120
- elementheight 16
- font 2
- textscale .7
- backcolor 0 0 0 1
- border 1
- bordersize 1
- bordercolor .5 .5 .5 1
- elementtype LISTBOX_TEXT
- feeder FEEDER_SERVERSTATUS
- notselectable
- visible 1
- columns 4 2 40 120
- 40 40 180
- 90 40 180
- 135 40 180
- mouseenter
- {
- setitemcolor serverInfowindow bordercolor .7 0 0 1
- }
- mouseexit
- {
- setitemcolor serverInfowindow bordercolor .5 .5 .5 1
- }
- }
- itemDef
- {
- name serverInfowindow
- rect 25 160 340 150
- style 1
- backcolor 0 0 0 0
- forecolor 0 0 0 0
- border 1
- bordersize 1
- bordercolor .5 .5 .5 1
- visible 1
- decoration
- }
- //----------------------------------------------------------------------------------------------
- // BUTTONS
- //----------------------------------------------------------------------------------------------
- itemDef
- {
- name button_glow
- group none
- style WINDOW_STYLE_SHADER
- rect 0 0 0 0
- background "gfx/menus/menu_buttonback"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
-
- itemDef
- {
- name search
- text @MENUS_SEARCH_CAPS
- descText @MENUS_SEARCH_DESC
- type 1
- font 3
- textscale .8
- style WINDOW_STYLE_FILLED
- rect 15 310 120 30
- textalign ITEM_ALIGN_CENTER
- textalignx 60
- textaligny 5
- forecolor 1 .682 0 1
- visible 1
- action
- {
- play "sound/interface/button1.wav" ;
- ui_script FindPlayer
- }
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 15 312 150 26
- }
- mouseExit
- {
- hide button_glow
- }
- }
- itemDef
- {
- name doneText
- text @MENUS_DONE_CAPS
- descText @MENUS_DONE_DESC
- type 1
- font 3
- textscale .8
- style WINDOW_STYLE_FILLED
- rect 135 310 120 30
- textalign ITEM_ALIGN_CENTER
- textalignx 60
- textaligny 5
- forecolor 1 .682 0 1
- visible 1
- action
- {
- play "sound/interface/button1.wav" ;
- close findplayer_popmenu
- }
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 115 312 160 26
- }
- mouseExit
- {
- hide button_glow
- }
- }
- itemDef
- {
- name join
- text @MENUS_JOIN_CAPS
- descText @MENUS_JOIN_PLAYER_DESC
- type 1
- font 3
- textscale .8
- style WINDOW_STYLE_FILLED
- rect 255 310 120 30
- textalign ITEM_ALIGN_CENTER
- textalignx 60
- textaligny 5
- forecolor 1 .682 0 1
- visible 1
- action
- {
- play "sound/interface/button1.wav" ;
- ui_script FoundPlayerJoinServer
- }
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 235 312 160 26
- }
- mouseExit
- {
- hide button_glow
- }
- }
- }
- }
|