MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Script_Transition

Function Script_Transition

code/ui/ui_shared.cpp:2537–2557  ·  view source on GitHub ↗

================= Script_Transition transition rtvscr 321 0 202 264 415 0 202 264 20 25 ================= */

Source from the content-addressed store, hash-verified

2535=================
2536*/
2537qboolean Script_Transition(itemDef_t *item, const char **args)
2538{
2539 const char *name;
2540 rectDef_t rectFrom, rectTo;
2541 int time;
2542 float amt;
2543
2544 if (String_Parse(args, &name))
2545 {
2546 if ( ParseRect(args, &rectFrom) && ParseRect(args, &rectTo) && Int_Parse(args, &time) && !COM_ParseFloat(args, &amt))
2547 {
2548 Menu_TransitionItemByName((menuDef_t *) item->parent, name, &rectFrom, &rectTo, time, amt);
2549 }
2550 else
2551 {
2552 Com_Printf(S_COLOR_YELLOW"WARNING: Script_Transition: error parsing '%s'\n", name );
2553 }
2554 }
2555
2556 return qtrue;
2557}
2558
2559
2560/*

Callers

nothing calls this directly

Calls 6

String_ParseFunction · 0.70
ParseRectFunction · 0.70
Int_ParseFunction · 0.70
COM_ParseFloatFunction · 0.50
Com_PrintfFunction · 0.50

Tested by

no test coverage detected