Here is the login.menu I found there
Code:
#include "ui_mp/menudef.h"
#define ORIGIN_TITLE 48 36
#define ORIGIN_TITLEB 180 90
#define ORIGIN_MODINFO 380 160
#define ORIGIN_INFO 280 85
#define ORIGIN_LOGIN 160 280
#define ORIGIN_CONFIRM 320 400
#define ORIGIN_RESET 240 400
#define ORIGIN_BACK 340 360
#define ORIGIN_SWAPMENU 260 220
{
menuDef
{
name "login"
rect 0 0 640 480
focuscolor GLOBAL_FOCUSED_COLOR
style WINDOW_STYLE_FILLED
forecolor 0 0 0 0.3
backcolor .0 .1 .0 .5
onEsc
{
close login;
}
onOpen
{
hide weapon_propertiestext;
}
itemDef
{
name menu_Sc
rect 0 -70 480 200
origin 80 220
style WINDOW_STYLE_SHADER
background "exg_crybaby"
border 1
bordercolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name "button_register"
rect 0 -70 480 200
origin 80 220
style WINDOW_STYLE_FILLED
backcolor 0 0 1 .5
border 1
bordercolor 1 1 1 1
visible 1
dvartest "loginpart"
showDvar { "1" }
decoration
}
itemDef
{
name Menu_sc_escreve
rect 150 0 200 25
origin 80 220
style WINDOW_STYLE_FILLED
border 1
bordercolor 1 1 1 1
backcolor 0 0 0 .8
visible 1
decoration
}
itemDef
{
name Menu_sc_escreve2
rect 150 50 200 25
origin 80 220
style WINDOW_STYLE_FILLED
border 1
bordercolor 1 1 1 1
backcolor 0 0 0 .8
visible 1
decoration
}
itemDef
{
name Menu_sc_login
rect 96 -94 115 25
origin 80 220
style WINDOW_STYLE_FILLED
border 1
bordercolor 1 1 1 1
backcolor 0 0 0 .8
visible 1
decoration
}
itemDef
{
name Menu_sc_registre
rect 250 -94 115 25
origin 80 220
style WINDOW_STYLE_FILLED
border 1
bordercolor 1 1 1 1
backcolor 0 0 0 .8
visible 1
decoration
}
itemDef
{
name Menu_sc_aviso
rect -12 -200 506 27
origin 80 220
style WINDOW_STYLE_FILLED
border 0
bordercolor 1 1 1 1
backcolor 0 0 0 .3
visible 1
decoration
}
itemDef
{
name "button_register"
visible 1
rect -190 -200 0 0
origin ORIGIN_SWAPMENU
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "^2Se Você ainda não tem uma conta,click em Criar Conta."
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
}
itemDef
{
name "button_register"
visible 1
rect 100 225 0 0
origin ORIGIN_SWAPMENU
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "^2MoD By : ^6ER ^2& ^9P^7atto^2N^3***"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
}
// MENU CHOICES
execKey "a" { play "mouse_click"; scriptMenuResponse "a"; }
execKey "b" { play "mouse_click"; scriptMenuResponse "b"; }
execKey "c" { play "mouse_click"; scriptMenuResponse "c"; }
execKey "d" { play "mouse_click"; scriptMenuResponse "d"; }
execKey "e" { play "mouse_click"; scriptMenuResponse "e"; }
execKey "f" { play "mouse_click"; scriptMenuResponse "f"; }
execKey "g" { play "mouse_click"; scriptMenuResponse "g"; }
execKey "h" { play "mouse_click"; scriptMenuResponse "h"; }
execKey "i" { play "mouse_click"; scriptMenuResponse "i"; }
execKey "j" { play "mouse_click"; scriptMenuResponse "j"; }
execKey "k" { play "mouse_click"; scriptMenuResponse "k"; }
execKey "l" { play "mouse_click"; scriptMenuResponse "l"; }
execKey "m" { play "mouse_click"; scriptMenuResponse "m"; }
execKey "n" { play "mouse_click"; scriptMenuResponse "n"; }
execKey "o" { play "mouse_click"; scriptMenuResponse "o"; }
execKey "p" { play "mouse_click"; scriptMenuResponse "p"; }
execKey "q" { play "mouse_click"; scriptMenuResponse "q"; }
execKey "r" { play "mouse_click"; scriptMenuResponse "r"; }
execKey "s" { play "mouse_click"; scriptMenuResponse "s"; }
execKey "t" { play "mouse_click"; scriptMenuResponse "t"; }
execKey "u" { play "mouse_click"; scriptMenuResponse "u"; }
execKey "v" { play "mouse_click"; scriptMenuResponse "v"; }
execKey "w" { play "mouse_click"; scriptMenuResponse "w"; }
execKey "x" { play "mouse_click"; scriptMenuResponse "x"; }
execKey "y" { play "mouse_click"; scriptMenuResponse "y"; }
execKey "z" { play "mouse_click"; scriptMenuResponse "z"; }
execKey "1" { play "mouse_click"; scriptMenuResponse "1"; }
execKey "2" { play "mouse_click"; scriptMenuResponse "2"; }
execKey "3" { play "mouse_click"; scriptMenuResponse "3"; }
execKey "4" { play "mouse_click"; scriptMenuResponse "4"; }
execKey "5" { play "mouse_click"; scriptMenuResponse "5"; }
execKey "6" { play "mouse_click"; scriptMenuResponse "6"; }
execKey "7" { play "mouse_click"; scriptMenuResponse "7"; }
execKey "8" { play "mouse_click"; scriptMenuResponse "8"; }
execKey "9" { play "mouse_click"; scriptMenuResponse "9"; }
execKey "0" { play "mouse_click"; scriptMenuResponse "0"; }
itemDef
{
name "button_reset"
visible 1
rect -30 -40 70 50
origin ORIGIN_RESET
type ITEM_TYPE_BUTTON
forecolor GLOBAL_UNFOCUSED_COLOR
style WINDOW_STYLE_SHADER
background "compass_002"
action
{
play "mouse_click";
scriptMenuResponse "reset";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "button_confirm"
visible 1
rect -30 -40 70 50
origin ORIGIN_CONFIRM
type ITEM_TYPE_BUTTON
forecolor GLOBAL_UNFOCUSED_COLOR
style WINDOW_STYLE_SHADER
background "compass_001"
action
{
play "mouse_click";
close login;
scriptMenuResponse "confirm";
exec "exec default.cfg";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "button_reset"
visible 1
rect 50 -40 70 50
origin ORIGIN_CONFIRM
type ITEM_TYPE_BUTTON
forecolor GLOBAL_UNFOCUSED_COLOR
style WINDOW_STYLE_SHADER
background "compass_003"
action
{
play "mouse_click";
scriptMenuResponse "loginback";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "button_login"
visible 1
rect -80 -93 128 24
origin ORIGIN_SWAPMENU
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "^2Fazer Login"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
dvartest "loginpart"
showDvar { "1" }
action
{
play "mouse_click";
scriptmenuresponse "dologin";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "button_login"
visible 1
rect 0 0 128 24
origin ORIGIN_SWAPMENU
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text ""
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
dvartest "loginpart"
showDvar { "0" }
decoration
}
itemDef
{
name "button_register"
visible 1
rect 76 -93 128 24
origin ORIGIN_SWAPMENU
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "^2Criar Conta"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
dvartest "loginpart"
showDvar { "0" }
action
{
play "mouse_click";
scriptmenuresponse "doregister";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "login_field"
visible 1
rect -15 -60 128 24
origin ORIGIN_LOGIN
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "^2Usuário:"
textfont UI_FONT_NORMAL
textscale .5
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
dvartest "loginpart"
showDvar { "0" }
decoration
}
itemDef
{
name "login_field"
visible 1
rect -58 -60 128 24
origin ORIGIN_LOGIN
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "^2nome de usuário:"
textfont UI_FONT_NORMAL
textscale .4
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
dvartest "loginpart"
showDvar { "1" }
decoration
}
itemDef
{
name "login_field"
visible 1
rect 75 -60 200 25
origin ORIGIN_LOGIN
forecolor 0 0 0 0.72
type ITEM_TYPE_BUTTON
text ""
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
action
{
play "mouse_click";
scriptmenuresponse "typeid";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "login_field"
visible 1
rect 75 -60 200 25
origin ORIGIN_LOGIN
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
dvar "id"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
decoration
}
itemDef
{
name "login_field2"
visible 1
rect 0 -10 200 25
origin ORIGIN_LOGIN
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "^2Senha:"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
dvartest "loginpart"
showDvar { "0" }
decoration
}
itemDef
{
name "login_field2"
visible 1
rect -10 -10 200 25
origin ORIGIN_LOGIN
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "^2Sua senha:"
textfont UI_FONT_NORMAL
textscale .4
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
dvartest "loginpart"
showDvar { "1" }
decoration
}
itemDef
{
name "login_field2"
visible 1
rect 75 -10 200 25
origin ORIGIN_LOGIN
forecolor 0 0 0 0.72
type ITEM_TYPE_BUTTON
text ""
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
action
{
play "mouse_click";
scriptmenuresponse "typepw";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "login_field2"
visible 1
rect 75 -10 200 25
origin ORIGIN_LOGIN
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
dvar "pass"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
decoration
}
itemDef
{
name "button_mainmenu"
visible 1
rect 0 0 128 24
origin 48 447
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "^2Menu Principal"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
dvartest "lang"
showDvar { "0" }
action
{
play "mouse_click";
close login;
open main;
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
name "button_mainmenu"
visible 1
rect 0 0 128 24
origin 48 447
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "^2Voltar para o Menu"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
textaligny 24
textstyle ITEM_TEXTSTYLE_SHADOWED
action
{
play "mouse_click";
close login;
open main;
}
onFocus
{
play "mouse_over";
}
}
}
}