mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-01-22 17:41:11 +00:00
Render as AVI
This commit is contained in:
parent
168a9058bf
commit
a021d87d84
2 changed files with 33 additions and 1 deletions
|
@ -6053,6 +6053,16 @@ static void UI_RunMenuScript(char **args)
|
||||||
//trap_Cmd_ExecuteText(EXEC_APPEND, va("demo %s.dm_%d\n", demoname, uiInfo.demoType[uiInfo.demoIndex]));
|
//trap_Cmd_ExecuteText(EXEC_APPEND, va("demo %s.dm_%d\n", demoname, uiInfo.demoType[uiInfo.demoIndex]));
|
||||||
trap_Cmd_ExecuteText(EXEC_APPEND, va("demo %s.dm_%d\n", uiInfo.demoList[uiInfo.demoIndex], uiInfo.demoType[uiInfo.demoIndex]));
|
trap_Cmd_ExecuteText(EXEC_APPEND, va("demo %s.dm_%d\n", uiInfo.demoList[uiInfo.demoIndex], uiInfo.demoType[uiInfo.demoIndex]));
|
||||||
}
|
}
|
||||||
|
} else if (Q_stricmp(name, "RenderDemo") == 0) {
|
||||||
|
//TTI - Render to AVI
|
||||||
|
if (uiInfo.demoIndex >= 0 && uiInfo.demoIndex < uiInfo.demoCount)
|
||||||
|
{
|
||||||
|
trap_Cmd_ExecuteText(EXEC_APPEND, va("demo %s.dm_%d ; video %s.dm_%d\n",
|
||||||
|
uiInfo.demoList[uiInfo.demoIndex],
|
||||||
|
uiInfo.demoType[uiInfo.demoIndex],
|
||||||
|
uiInfo.demoList[uiInfo.demoIndex],
|
||||||
|
uiInfo.demoType[uiInfo.demoIndex]));
|
||||||
|
}
|
||||||
} else if (Q_stricmp(name, "Quake3") == 0) {
|
} else if (Q_stricmp(name, "Quake3") == 0) {
|
||||||
trap_Cvar_Set("fs_game", "");
|
trap_Cvar_Set("fs_game", "");
|
||||||
trap_Cmd_ExecuteText(EXEC_APPEND, "vid_restart;");
|
trap_Cmd_ExecuteText(EXEC_APPEND, "vid_restart;");
|
||||||
|
|
|
@ -175,8 +175,30 @@
|
||||||
visible 1
|
visible 1
|
||||||
autowrapped
|
autowrapped
|
||||||
action { uiScript RunDemo }
|
action { uiScript RunDemo }
|
||||||
}
|
//style WINDOW_STYLE_FILLED
|
||||||
|
//backcolor 0 0 0 .5
|
||||||
|
}
|
||||||
|
|
||||||
|
//Render
|
||||||
|
|
||||||
|
itemdef {
|
||||||
|
name "btn_render"
|
||||||
|
subgroup "fade_fore_alpha"
|
||||||
|
text "^_R^_ender as AVI >"
|
||||||
|
shortcutKey "R"
|
||||||
|
forecolor .5 0 0 1
|
||||||
|
style WINDOW_STYLE_EMPTY
|
||||||
|
textalign ITEM_ALIGN_LEFT
|
||||||
|
textscale .25
|
||||||
|
textalignx 0
|
||||||
|
textaligny 14
|
||||||
|
alignRect demolist ITEM_ALIGN_LEFT 0 180 96 20
|
||||||
|
visible 1
|
||||||
|
autowrapped
|
||||||
|
action { uiScript RenderDemo }
|
||||||
|
//style WINDOW_STYLE_FILLED
|
||||||
|
//backcolor 0 0 0 .5
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue