| 1 |
// |
| 2 |
// ########################################### VIEW GROUPS ######################################## |
| 3 |
// |
| 4 |
cl_multiview 2 |
| 5 |
|
| 6 |
// Calculate the size of a view. |
| 7 |
set_calc halfconh $conheight / 2 |
| 8 |
|
| 9 |
// |
| 10 |
// One HUD group for each view. |
| 11 |
// |
| 12 |
|
| 13 |
// Top |
| 14 |
show group1 |
| 15 |
place group1 screen |
| 16 |
align group1 left top |
| 17 |
move group1 0 0 |
| 18 |
group1 name "Top" |
| 19 |
group1 width $conwidth |
| 20 |
group1 height $halfconh |
| 21 |
group1 frame 0 |
| 22 |
group1 frame_color black |
| 23 |
|
| 24 |
// Bottom |
| 25 |
show group2 |
| 26 |
place group2 screen |
| 27 |
align group2 left bottom |
| 28 |
move group2 0 0 |
| 29 |
group2 name "Bottom" |
| 30 |
group2 width $conwidth |
| 31 |
group2 height $halfconh |
| 32 |
group2 frame 0 |
| 33 |
group2 frame_color black |
| 34 |
|
| 35 |
hide group3 |
| 36 |
hide group4 |
| 37 |
hide group5 |