| Line | |
|---|
| 1 | #include "ui/menudef.h" |
|---|
| 2 | { |
|---|
| 3 | assetGlobalDef |
|---|
| 4 | { |
|---|
| 5 | font "fonts/font" 26 // font |
|---|
| 6 | smallFont "fonts/smallfont" 20 // font |
|---|
| 7 | bigFont "fonts/bigfont" 34 // font |
|---|
| 8 | cursor "ui/assets/3_cursor3" // cursor |
|---|
| 9 | gradientBar "ui/assets/gradientbar2.tga" // gradient bar |
|---|
| 10 | itemFocusSound "sound/misc/menu2.wav" // sound for item getting focus (via keyboard or mouse ) |
|---|
| 11 | |
|---|
| 12 | fadeClamp 1.0 // sets the fadeup alpha |
|---|
| 13 | fadeCycle 1 // how often fade happens in milliseconds |
|---|
| 14 | fadeAmount 0.1 // amount to adjust alpha per cycle |
|---|
| 15 | |
|---|
| 16 | shadowColor 0.1 0.1 0.1 0.25 // shadow color |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | \\ INGAME MENU \\ |
|---|
| 21 | |
|---|
| 22 | menuDef |
|---|
| 23 | { |
|---|
| 24 | name "ingame" |
|---|
| 25 | style WINDOW_STYLE_FILLED |
|---|
| 26 | visible 0 |
|---|
| 27 | fullScreen 0 |
|---|
| 28 | outOfBoundsClick // this closes the window if it gets a click out of the rectangle |
|---|
| 29 | rect 0 0 640 48 |
|---|
| 30 | focusColor 1 .75 0 1 |
|---|
| 31 | disableColor .5 .5 .5 1 |
|---|
| 32 | backColor 0 0 0 1 |
|---|
| 33 | |
|---|
| 34 | onEsc |
|---|
| 35 | { |
|---|
| 36 | close ingame; |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | itemDef |
|---|
| 40 | { |
|---|
| 41 | name splashmodel |
|---|
| 42 | rect 0 -10 640 66 |
|---|
| 43 | type ITEM_TYPE_MODEL |
|---|
| 44 | style WINDOW_STYLE_FILLED |
|---|
| 45 | asset_model "models/splash/splash_screen.md3" |
|---|
| 46 | model_fovx 32.0 |
|---|
| 47 | model_fovy 3.8 |
|---|
| 48 | model_angle 180 |
|---|
| 49 | visible 1 |
|---|
| 50 | decoration |
|---|
| 51 | backcolor 0 0 0 1 |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | itemdef |
|---|
| 55 | { |
|---|
| 56 | name game |
|---|
| 57 | text "Game" |
|---|
| 58 | rect 35 6 65 40 |
|---|
| 59 | type ITEM_TYPE_BUTTON |
|---|
| 60 | style WINDOW_STYLE_EMPTY |
|---|
| 61 | textalign ITEM_ALIGN_CENTER |
|---|
| 62 | textalignx 32 |
|---|
| 63 | textaligny 28 |
|---|
| 64 | textscale .4 |
|---|
| 65 | forecolor 1 1 1 1 |
|---|
| 66 | visible 1 |
|---|
| 67 | action |
|---|
| 68 | { |
|---|
| 69 | play "sound/misc/menu1.wav"; |
|---|
| 70 | open ingame_game |
|---|
| 71 | } |
|---|
| 72 | } |
|---|
| 73 | |
|---|
| 74 | itemDef |
|---|
| 75 | { |
|---|
| 76 | name options |
|---|
| 77 | text "Options" |
|---|
| 78 | type ITEM_TYPE_BUTTON |
|---|
| 79 | style WINDOW_STYLE_EMPTY |
|---|
| 80 | rect 100 6 70 40 |
|---|
| 81 | textalign ITEM_ALIGN_CENTER |
|---|
| 82 | textalignx 35 |
|---|
| 83 | textaligny 28 |
|---|
| 84 | textscale .4 |
|---|
| 85 | forecolor 1 1 1 1 |
|---|
| 86 | visible 1 |
|---|
| 87 | action |
|---|
| 88 | { |
|---|
| 89 | play "sound/misc/menu1.wav"; |
|---|
| 90 | open ingame_options |
|---|
| 91 | } |
|---|
| 92 | } |
|---|
| 93 | |
|---|
| 94 | itemDef |
|---|
| 95 | { |
|---|
| 96 | name leave |
|---|
| 97 | text "Exit" |
|---|
| 98 | type ITEM_TYPE_BUTTON |
|---|
| 99 | style WINDOW_STYLE_EMPTY |
|---|
| 100 | //rect 220 6 50 40 |
|---|
| 101 | rect 170 6 50 40 |
|---|
| 102 | textalign ITEM_ALIGN_CENTER |
|---|
| 103 | textalignx 25 |
|---|
| 104 | textaligny 28 |
|---|
| 105 | textscale .4 |
|---|
| 106 | forecolor 1 1 1 1 |
|---|
| 107 | visible 1 |
|---|
| 108 | action |
|---|
| 109 | { |
|---|
| 110 | play "sound/misc/menu1.wav"; |
|---|
| 111 | open ingame_leave |
|---|
| 112 | } |
|---|
| 113 | } |
|---|
| 114 | } |
|---|
| 115 | } |
|---|