I was wondering if I could put floated numbers ( decimals ) into something like this:
Code Snippet
Plaintext
exp rect X DvarFloat( "x_align" );
to make something slide smoothly across the screen.I also was wondering, I know you can do
Code Snippet
Plaintext
exp rect X
but can you do
Code Snippet
Plaintext
exp rect Y
Also, how do "if" statements in menu work? I have seen #ifdef but that is basically "if defined", which I can't force something to be defined or undefined based on a dvar like I want in menu, or at least I don't think I can. Is there another way I can use "if" statements in menu?Also, can I resize shaders in menu? I know ScaleOverTime exists in GSC script for HUD, but how can I, if I even can, change the size of a shader in menu?
I was wondering if I could put floated numbers ( decimals ) into something like this:
Code Snippet
Plaintext
exp rect X DvarFloat( "x_align" );
to make something slide smoothly across the screen.I also was wondering, I know you can do
Code Snippet
Plaintext
exp rect X
but can you do
Code Snippet
Plaintext
exp rect Y
Also, how do "if" statements in menu work? I have seen #ifdef but that is basically "if defined", which I can't force something to be defined or undefined based on a dvar like I want in menu, or at least I don't think I can. Is there another way I can use "if" statements in menu?Also, can I resize shaders in menu? I know ScaleOverTime exists in GSC script for HUD, but how can I, if I even can, change the size of a shader in menu?
1) Yes, look at my "DUKIP Menu Mod" somewhere it has a transitioning MOTD 2) Yes 3) if in menu works similar to the if in headers/cpp files, checks for a defined constant 4) exp rect W/H (width, height)
1) Yes, look at my "DUKIP Menu Mod" somewhere it has a transitioning MOTD 2) Yes 3) if in menu works similar to the if in headers/cpp files, checks for a defined constant 4) exp rect W/H (width, height)
Awesome. So exp rect W/H, those ARE in WaW right? Because last time I asked about exp forecolor R/G/B and those didn't exist. And can I put floated numbers into that too?
Last Edit: June 03, 2016, 01:32:15 pm by alaurenc9
Awesome. So exp rect W/H, those ARE in WaW right? Because last time I asked about exp forecolor R/G/B and those didn't exist. And can I put floated numbers into that too?
Yes W/H are in, RGB might not be. You can put it and linker will throw an error without a doubt. And yeah.