Hi, I wanted to know if they can help. I need to press on the name of a player leaves the name selected by a iprintln.
When you select any name from the list always comes in the name I'm using and not the one you selected it.
Always out, or if my change my name out which I use, not the one I select.
scriptMenuResponse "demo"PHP Code:
menuDef
{
name "demoplayer"
rect 0 0 640 480
focuscolor GLOBAL_FOCUSED_COLOR
style WINDOW_STYLE_EMPTY
blurWorld 5.0
onEsc
{
close demoplayer;
}
// Gradient
itemDef
{
style WINDOW_STYLE_SHADER
//rect -107 0 554 480
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
background "gradient"
visible 1
decoration
}
#include "ui/bars.menu"
itemDef
{
type ITEM_TYPE_TEXT
visible 1
origin ORIGIN_TITLE
forecolor 1 1 1 1
text "Peticion de demo"
textfont UI_FONT_NORMAL
textscale GLOBAL_HEADER_SIZE
decoration
}
// DEMO PLAYER
itemDef
{
visible 1
rect 0 0 192 270
origin 73 80
forecolor GLOBAL_UNFOCUSED_COLOR
style WINDOW_STYLE_FILLED
outlinecolor .5 .5 .5 .5
type ITEM_TYPE_LISTBOX
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textfont UI_FONT_NORMAL
textaligny -1
elementtype LISTBOX_TEXT
elementwidth 120
elementheight 24
feeder FEEDER_PLAYER_LIST
columns 1 2 190 25
mouseEnter
{
fadein message_arena
}
mouseExit
{
fadeout message_arena
}
}
itemDef
{
visible 1
rect 0 0 128 24
origin ORIGIN_OK
forecolor GLOBAL_UNFOCUSED_COLOR
type ITEM_TYPE_BUTTON
text "@MPUI_OK"
textfont UI_FONT_NORMAL
textscale GLOBAL_TEXT_SIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textaligny 20
action
{
play "mouse_click";
scriptMenuResponse "demo";
close demoplayer;
exec "wait 100";
exec "ScreenShotJPEG";
scriptMenuResponse "demoss";
}
onFocus
{
play "mouse_over";
}
}
}
PHP Code:
demopetition()
{
iprintln ("" + self.name + " ^7a foro, peticion de demo & cleandod.");
}
scriptMenuResponse "demoss"
As I can make out the name you select from the list of players?PHP Code:
demopetitionss()
{
self iprintln ("^2ScreenShotJPEG Guardada!");
}