================= Script_Transition2 uses current origin instead of specifing a starting origin transition2 lfvscr 25 0 202 264 20 25 ================= */
| 2566 | ================= |
| 2567 | */ |
| 2568 | qboolean 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 | /* |
nothing calls this directly
no test coverage detected