Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ui/menudef.h"
- #define ORIGIN_QUICKMESSAGETAB 32 224
- #define ORIGIN_QUICKMESSAGEWINDOW 32 256
- {
- menuDef
- {
- name "tutorial_example_menu"
- fullscreen 0
- rect 0 0 640 480
- focuscolor 1 1 1 1
- disablecolor 0 0 0 0
- style WINDOW_STYLE_EMPTY
- onOpen
- {
- setDvar cl_bypassMouseInput "1"
- }
- onClose
- {
- setDvar cl_bypassMouseInput "0"
- }
- // WINDOW BACKGROUND
- itemDef
- {
- name "window_background"
- visible 1
- rect 0 0 224 192
- origin ORIGIN_QUICKMESSAGEWINDOW
- style WINDOW_STYLE_FILLED
- forecolor 1 1 1 1
- backcolor 0 0 0 0.7975
- decoration
- }
- // WINDOW LINES
- itemDef
- {
- name "window_lines"
- visible 1
- rect 3 0 2 187
- origin ORIGIN_QUICKMESSAGEWINDOW
- style WINDOW_STYLE_FILLED
- backcolor 1 1 1 .125
- decoration
- }
- itemDef
- {
- name "window_lines"
- visible 1
- rect 219 0 2 187
- origin ORIGIN_QUICKMESSAGEWINDOW
- style WINDOW_STYLE_FILLED
- backcolor 1 1 1 .125
- decoration
- }
- itemDef
- {
- name "window_lines"
- visible 1
- rect 5 0 214 2
- origin ORIGIN_QUICKMESSAGEWINDOW
- style WINDOW_STYLE_FILLED
- backcolor 1 1 1 .125
- decoration
- }
- itemDef
- {
- name "window_lines"
- visible 1
- rect 3 187 218 2
- origin ORIGIN_QUICKMESSAGEWINDOW
- style WINDOW_STYLE_FILLED
- backcolor 1 1 1 .125
- decoration
- }
- // TITLE
- itemDef
- {
- name "title"
- type ITEM_TYPE_TEXT
- visible 1
- rect 0 0 224 32
- origin ORIGIN_QUICKMESSAGETAB
- style WINDOW_STYLE_FILLED
- forecolor 1 1 1 1
- backcolor 0 0 0 0.7975
- text "This is the title"
- textfont UI_FONT_NORMAL
- textscale .24
- textaligny 24
- textalign ITEM_ALIGN_CENTER
- decoration
- }
- itemDef
- {
- name "title_quickmessage_gray"
- visible 1
- rect 3 3 218 29
- origin ORIGIN_QUICKMESSAGETAB
- style WINDOW_STYLE_FILLED
- backcolor 1 1 1 .125
- decoration
- }
- 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 ^31. ^7Test
- decoration
- }
- execKey "1" { scriptMenuResponse ""give_l96a1_mod"; close tutorial_example_menu; }
- itemDef
- {
- name "window"
- group ingamebox
- type ITEM_TYPE_TEXT
- visible 1
- rect 16 36 0 0
- origin ORIGIN_QUICKMESSAGEWINDOW
- forecolor 1 1 1 1
- textfont UI_FONT_NORMAL
- textscale .24
- textaligny 8
- text "@QUICKMESSAGE_2_MOVE_IN"
- decoration
- }
- execKey "2" { scriptMenuResponse "2"; close quickcommands }
- itemDef
- {
- name "window"
- group ingamebox
- type ITEM_TYPE_TEXT
- visible 1
- rect 16 52 0 0
- origin ORIGIN_QUICKMESSAGEWINDOW
- forecolor 1 1 1 1
- textfont UI_FONT_NORMAL
- textscale .24
- textaligny 8
- text "@QUICKMESSAGE_3_FALL_BACK"
- decoration
- }
- execKey "3" { scriptMenuResponse "3"; close quickcommands }
- itemDef
- {
- name "window"
- group ingamebox
- type ITEM_TYPE_TEXT
- visible 1
- rect 16 68 0 0
- origin ORIGIN_QUICKMESSAGEWINDOW
- forecolor 1 1 1 1
- textfont UI_FONT_NORMAL
- textscale .24
- textaligny 8
- text "@QUICKMESSAGE_4_SUPPRESSING_FIRE"
- decoration
- }
- execKey "4" { scriptMenuResponse "4"; close quickcommands }
- itemDef
- {
- name "window"
- group ingamebox
- type ITEM_TYPE_TEXT
- visible 1
- rect 16 84 0 0
- origin ORIGIN_QUICKMESSAGEWINDOW
- forecolor 1 1 1 1
- textfont UI_FONT_NORMAL
- textscale .24
- textaligny 8
- text "@QUICKMESSAGE_5_ATTACK_LEFT_FLANK"
- decoration
- }
- execKey "5" { scriptMenuResponse "5"; close quickcommands }
- itemDef
- {
- name "window"
- group ingamebox
- type ITEM_TYPE_TEXT
- visible 1
- rect 16 100 0 0
- origin ORIGIN_QUICKMESSAGEWINDOW
- forecolor 1 1 1 1
- textfont UI_FONT_NORMAL
- textscale .24
- textaligny 8
- text "@QUICKMESSAGE_6_ATTACK_RIGHT_FLANK"
- decoration
- }
- execKey "6" { scriptMenuResponse "6"; close quickcommands }
- itemDef
- {
- name "window"
- group ingamebox
- type ITEM_TYPE_TEXT
- visible 1
- rect 16 116 0 0
- origin ORIGIN_QUICKMESSAGEWINDOW
- forecolor 1 1 1 1
- textfont UI_FONT_NORMAL
- textscale .24
- textaligny 8
- text "@QUICKMESSAGE_7_HOLD_THIS_POSITION"
- decoration
- }
- execKey "7" { scriptMenuResponse "7"; close quickcommands }
- itemDef
- {
- name "window"
- group ingamebox
- type ITEM_TYPE_TEXT
- visible 1
- rect 16 132 0 0
- origin ORIGIN_QUICKMESSAGEWINDOW
- forecolor 1 1 1 1
- textfont UI_FONT_NORMAL
- textscale .24
- textaligny 8
- text "@QUICKMESSAGE_8_REGROUP"
- decoration
- }
- execKey "8" { scriptMenuResponse "8"; close quickcommands }
- itemDef
- {
- name "window"
- type ITEM_TYPE_TEXT
- visible 1
- rect 16 148 0 0
- origin ORIGIN_QUICKMESSAGEWINDOW
- forecolor 1 1 1 1
- textfont UI_FONT_NORMAL
- textscale .24
- textaligny 8
- text "@QUICKMESSAGE_ESC_EXIT"
- decoration
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement