Results 1 to 10 of 14

Thread: Strange things in menus

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Most rects in macros need a 5th and a 6th argument iirc.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (14th June 2017)

  3. #2
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    Quote Originally Posted by IzNoGoD View Post
    Most rects in macros need a 5th and a 6th argument iirc.
    And you're right, it works. But I can't see the button with all these cases:
    PHP Code:
    rect     _key 128 24 HORIZONTAL_ALIGN_DEFAULT VERTICAL_ALIGN_DEFAULT
    PHP Code:
    rect     _key 128 24 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN 
    PHP Code:
    rect     0 0  128 24 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN \
    origin _key 
    Something strange with coordinates now
    Full code:
    PHP Code:
    #ifndef DRAW_WEAPON_ITEM
    #define DRAW_WEAPON_ITEM(_key, _name) \
        
    itemDef \
        { \
            
    name            "button_" ## #_name \
            
    visible            1 \
            
    rect             0 0  128 24 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN \
            
    origin            _key \
            
    forecolor        GLOBAL_UNFOCUSED_COLOR \
            
    dvar            "ui_weapon_" ## #_name \
            
    textfont        UI_FONT_NORMAL \
            
    textscale        .25 \
            
    textstyle        ITEM_TEXTSTYLE_SHADOWED \
            
    textalignx        10 \
            
    textaligny        20 \
        }
    #endif

    #define DRAW_WEAPON(_key, _name)     DRAW_WEAPON_ITEM(_key, _name)

    DRAW_WEAPON(ORIGIN_CHOICEAm1carbine_mp

Posting Permissions

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