ItsMods

Full Version: Making a basic Quickmessage-like Menu.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
i have the attention span of a gold fish... ill force myself to read it tomorrow and make the best menu in the world, just for you..
I get the following warning from the mod tool commmand: WARNING: menu file not found: ui_mp/scriptmenus/class_menu.menu

and how do i open the menu?

EDIT: nvm i found the problem Big Grin

Nice tutorial, helped me alot!! Big Grin
Failed again at doing it, not sure what the problem is.. i think i get lost when you say "what ever you named it to" instead of giving the examples like you do in the first half of the tutorial. What is IT etc, there is a few different things we name.


Maybe i have down syndrome, I still cant get this to work though & i tried 3 times... i get no compile errors or anything, i just cant seem to get it to show thru on spawn or a key command, so im doing something wrong..

x.x i ended up copying one from another mod the same as this that u helped on and it worked, maybe i had a name spelt wrong or something, i dont know.
good tutorial
(07-04-2011, 01:44)koil Wrote: [ -> ]Failed again at doing it, not sure what the problem is.. i think i get lost when you say "what ever you named it to" instead of giving the examples like you do in the first half of the tutorial. What is IT etc, there is a few different things we name.


Maybe i have down syndrome, I still cant get this to work though & i tried 3 times... i get no compile errors or anything, i just cant seem to get it to show thru on spawn or a key command, so im doing something wrong..

x.x i ended up copying one from another mod the same as this that u helped on and it worked, maybe i had a name spelt wrong or something, i dont know.

wich mod? :3
how can you link the menu to a button?
for example, everytime you press X the menu opens
self openmenu("menuname");
I'm having a problem. I can open the menu fine, however when I press my desired button, nothing happens (the menu closes, but other than that nothing).

Some of my code is:

PHP Code:
onMenuResponse()
{
    
self endon"death" );
    
self endon"disconnect" );
    
    while( 
true )
    {
        
self waittill"menuresponse"menuresponse );
        
        if( 
response == "special1" )
        {
            
//special1
            
self giveWeapon"ak47_mp" );
            
self iprintlnbold("testing");
        }
}


PHP Code:
itemDef
        
{
            
name            "window"
            
group            ingamebox
            type            ITEM_TYPE_TEXT
            visible            1
            rect            16 20 0 0
            origin            ORIGIN_QUICKMESSAGEWINDOW
            forecolor        1 1 1 1
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        8
            text            
"^11. Special Ability #1"
            
decoration
        
}
        
execKey "1" scriptMenuResponse "special1"close main_mod_menu; } 
^bump anyone know what I might be doing wong? :S
Error: filesize > 0
assert

how to solve?
Pages: 1 2 3 4