()
| 2971 | private static String teamplay_names[] = { "disabled", "by skin", "by model" }; |
| 2972 | |
| 2973 | private static void DMOptions_MenuInit() { |
| 2974 | |
| 2975 | int dmflags = (int) Cvar.getInstance().VariableValue("dmflags"); |
| 2976 | int y = 0; |
| 2977 | |
| 2978 | s_dmoptions_menu.x = (int) (ClientGlobals.viddef.getWidth() * 0.50); |
| 2979 | s_dmoptions_menu.nitems = 0; |
| 2980 | |
| 2981 | s_falls_box.type = MTYPE_SPINCONTROL; |
| 2982 | s_falls_box.x = 0; |
| 2983 | s_falls_box.y = y; |
| 2984 | s_falls_box.name = "falling damage"; |
| 2985 | s_falls_box.callback = new mcallback() { |
| 2986 | public void execute(Object o) { |
| 2987 | DMFlagCallback(o); |
| 2988 | } |
| 2989 | }; |
| 2990 | s_falls_box.itemnames = yes_no_names; |
| 2991 | s_falls_box.curvalue = (dmflags & DF_NO_FALLING) == 0 ? 1 : 0; |
| 2992 | |
| 2993 | s_weapons_stay_box.type = MTYPE_SPINCONTROL; |
| 2994 | s_weapons_stay_box.x = 0; |
| 2995 | s_weapons_stay_box.y = y += 10; |
| 2996 | s_weapons_stay_box.name = "weapons stay"; |
| 2997 | s_weapons_stay_box.callback = new mcallback() { |
| 2998 | public void execute(Object o) { |
| 2999 | DMFlagCallback(o); |
| 3000 | } |
| 3001 | }; |
| 3002 | s_weapons_stay_box.itemnames = yes_no_names; |
| 3003 | s_weapons_stay_box.curvalue = (dmflags & DF_WEAPONS_STAY) != 0 ? 1 : 0; |
| 3004 | |
| 3005 | s_instant_powerups_box.type = MTYPE_SPINCONTROL; |
| 3006 | s_instant_powerups_box.x = 0; |
| 3007 | s_instant_powerups_box.y = y += 10; |
| 3008 | s_instant_powerups_box.name = "instant powerups"; |
| 3009 | s_instant_powerups_box.callback = new mcallback() { |
| 3010 | public void execute(Object o) { |
| 3011 | DMFlagCallback(o); |
| 3012 | } |
| 3013 | }; |
| 3014 | s_instant_powerups_box.itemnames = yes_no_names; |
| 3015 | s_instant_powerups_box.curvalue = (dmflags & DF_INSTANT_ITEMS) != 0 ? 1 |
| 3016 | : 0; |
| 3017 | |
| 3018 | s_powerups_box.type = MTYPE_SPINCONTROL; |
| 3019 | s_powerups_box.x = 0; |
| 3020 | s_powerups_box.y = y += 10; |
| 3021 | s_powerups_box.name = "allow powerups"; |
| 3022 | s_powerups_box.callback = new mcallback() { |
| 3023 | public void execute(Object o) { |
| 3024 | DMFlagCallback(o); |
| 3025 | } |
| 3026 | }; |
| 3027 | s_powerups_box.itemnames = yes_no_names; |
| 3028 | s_powerups_box.curvalue = (dmflags & DF_NO_ITEMS) == 0 ? 1 : 0; |
| 3029 | |
| 3030 | s_health_box.type = MTYPE_SPINCONTROL; |
no test coverage detected