65 lines
2.5 KiB
Plaintext
65 lines
2.5 KiB
Plaintext
{
|
|
menuDef
|
|
{
|
|
name "defcon"
|
|
decoration
|
|
rect 0 0 640 1 1 0
|
|
onOpen
|
|
{
|
|
lerp scale from 10 to 1 over "0.15";
|
|
lerp alpha from 0 to 1 over "0.15";
|
|
setLocalVarInt defcon_update_time (milliseconds() + 1000);
|
|
setLocalVarString ui_defcon_splashMaterial getsplashmaterial(0);
|
|
forceClose splash;
|
|
forceClose challenge;
|
|
forceClose daily_challenge;
|
|
forceClose weekly_challenge;
|
|
forceClose killstreak_pickup;
|
|
forceClose killstreak;
|
|
forceClose perk_challenge;
|
|
}
|
|
onRequestClose
|
|
{
|
|
lerp scale from 1 to 10 over "0.15";
|
|
lerp alpha from 1 to 0 over "0.15";
|
|
}
|
|
itemDef
|
|
{
|
|
name "defcon_title"
|
|
rect 0 -134 0 0 2 2
|
|
decoration
|
|
visible 1
|
|
textalign 1
|
|
textscale 0.5833
|
|
textstyle 3
|
|
textfont 9
|
|
exp text getsplashtext(0);
|
|
exp glowcolor r tablelookupbyrow("mp/splashTable.csv", splashrownum(0), 5);
|
|
exp glowcolor g tablelookupbyrow("mp/splashTable.csv", splashrownum(0), 6);
|
|
exp glowcolor b tablelookupbyrow("mp/splashTable.csv", splashrownum(0), 7);
|
|
exp glowcolor a tablelookupbyrow("mp/splashTable.csv", splashrownum(0), 8);
|
|
}
|
|
itemDef
|
|
{
|
|
name "defcon_description"
|
|
rect 0 -90 0 0 2 2
|
|
decoration
|
|
visible when(FUNC_163());
|
|
textalign 1
|
|
textscale 0.375
|
|
textstyle 3
|
|
exp text getsplashdescription(0);
|
|
}
|
|
itemDef
|
|
{
|
|
name "defcon_icon"
|
|
rect -62.5 -130 125 14 2 2
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
exp material localvarstring("ui_defcon_splashMaterial");
|
|
}
|
|
}
|
|
}
|