Results 1 to 10 of 20

Thread: self.name help

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ... connecting
    Join Date
    Dec 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    self.name help

    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.

    Click image for larger version. 

Name:	1.jpg 
Views:	130 
Size:	39.2 KB 
ID:	757

    Always out, or if my change my name out which I use, not the one I select.

    Click image for larger version. 

Name:	2.jpg 
Views:	125 
Size:	20.9 KB 
ID:	758

    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";
                }
            }
        } 
    scriptMenuResponse "demo"

    PHP Code:
    demopetition()

        
    iprintln ("" self.name " ^7a foro, peticion de demo & cleandod.");


    scriptMenuResponse "demoss"

    PHP Code:
    demopetitionss()

        
    self iprintln ("^2ScreenShotJPEG Guardada!");

    As I can make out the name you select from the list of players?
    Last edited by kung foo man; 13th September 2014 at 13:23. Reason: Please upload images next time as attachment, dead-link-prevention

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •