| 1 |
// |
| 2 |
// ########################################### VIEW GROUPS ######################################## |
| 3 |
// |
| 4 |
//cl_multiview 4 |
| 5 |
|
| 6 |
// Calculate the size of a view. |
| 7 |
set_calc halfconw $conwidth / 2 |
| 8 |
set_calc halfconh $conheight / 2 |
| 9 |
|
| 10 |
// |
| 11 |
// One HUD group for each view. |
| 12 |
// |
| 13 |
|
| 14 |
// Top left |
| 15 |
show group1 |
| 16 |
place group1 screen |
| 17 |
align group1 left top |
| 18 |
move group1 0 0 |
| 19 |
group1 name "Top left" |
| 20 |
group1 width $halfconw |
| 21 |
group1 height $halfconh |
| 22 |
group1 frame 0 |
| 23 |
|
| 24 |
// Top right - Radar group |
| 25 |
show group2 |
| 26 |
place group2 screen |
| 27 |
align group2 right top |
| 28 |
move group2 0 0 |
| 29 |
group2 name "Top right radar" |
| 30 |
group2 width $halfconw |
| 31 |
group2 height $halfconh |
| 32 |
group2 frame 0 |
| 33 |
group2 frame_color black |
| 34 |
|
| 35 |
// Bottom left |
| 36 |
show group3 |
| 37 |
place group3 screen |
| 38 |
align group3 left bottom |
| 39 |
move group3 0 0 |
| 40 |
group3 name "Bottom left" |
| 41 |
group3 width $halfconw |
| 42 |
group3 height $halfconh |
| 43 |
group3 frame 0 |
| 44 |
group3 frame_color black |
| 45 |
|
| 46 |
// Bottom right |
| 47 |
show group4 |
| 48 |
place group4 screen |
| 49 |
align group4 right bottom |
| 50 |
move group4 0 0 |
| 51 |
group4 name "Bottom right" |
| 52 |
group4 width $halfconw |
| 53 |
group4 height $halfconh |
| 54 |
group4 frame 0 |
| 55 |
group4 frame_color black |
| 56 |
|
| 57 |
hide group5 |