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

Function Script_Transition2

code/ui/ui_shared.cpp:2568–2588  ·  view source on GitHub ↗

================= Script_Transition2 uses current origin instead of specifing a starting origin transition2 lfvscr 25 0 202 264 20 25 ================= */

Source from the content-addressed store, hash-verified

2566=================
2567*/
2568qboolean Script_Transition2(itemDef_t *item, const char **args)
2569{
2570 const char *name;
2571 rectDef_t rectTo;
2572 int time;
2573 float amt;
2574
2575 if (String_Parse(args, &name))
2576 {
2577 if ( ParseRect(args, &rectTo) && Int_Parse(args, &time) && !COM_ParseFloat(args, &amt))
2578 {
2579 Menu_TransitionItemByName((menuDef_t *) item->parent, name, 0, &rectTo, time, amt);
2580 }
2581 else
2582 {
2583 Com_Printf(S_COLOR_YELLOW"WARNING: Script_Transition2: error parsing '%s'\n", name );
2584 }
2585 }
2586
2587 return qtrue;
2588}
2589
2590#ifdef _TRANS3
2591/*

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