Lines Matching refs:wr

64   wrg->wr[MainMenu].label[whichSubMenu] = wrg->wr[whichSubMenu].label[choice];  in updateMenu()
65 clear_radio(&wrg->wr[MainMenu]); in updateMenu()
66 setup_radio(&wrg->wr[MainMenu]); in updateMenu()
67 wrg->wr[MainMenu].x = (screen->w/3 - wrg->wr[MainMenu].area.w)/2; in updateMenu()
68 wrg->wr[MainMenu].y = (screen->h - wrg->wr[MainMenu].area.h)/2; in updateMenu()
75 wrg->wr[OptionsMenu].label[Opt_ToggleFullScreen] = "Toggle Full Screen"; in OptionsMenu_setup()
77 wrg->wr[OptionsMenu].label[Opt_ToggleFlame] = "Background Flame: On"; in OptionsMenu_setup()
79 wrg->wr[OptionsMenu].label[Opt_ToggleFlame] = "Background Flame: Off"; in OptionsMenu_setup()
81 wrg->wr[OptionsMenu].label[Opt_ToggleSpecial] = "Power Pieces: On"; in OptionsMenu_setup()
83 wrg->wr[OptionsMenu].label[Opt_ToggleSpecial] = "Power Pieces: Off"; in OptionsMenu_setup()
85 wrg->wr[OptionsMenu].label[Opt_FasterLevels] = "Double Difficulty: On"; in OptionsMenu_setup()
87 wrg->wr[OptionsMenu].label[Opt_FasterLevels] = "Double Difficulty: Off"; in OptionsMenu_setup()
89 wrg->wr[OptionsMenu].label[Opt_LongSettleDelay] = "Long Settle Delay: On"; in OptionsMenu_setup()
91 wrg->wr[OptionsMenu].label[Opt_LongSettleDelay] = "Long Settle Delay: Off"; in OptionsMenu_setup()
93 wrg->wr[OptionsMenu].label[Opt_UpwardRotation] = "Upward Rotation: On"; in OptionsMenu_setup()
95 wrg->wr[OptionsMenu].label[Opt_UpwardRotation] = "Upward Rotation: Off"; in OptionsMenu_setup()
98 wrg->wr[OptionsMenu].label[Opt_KeyRepeat] = key_repeat_label; in OptionsMenu_setup()
101 static int OptionsMenu_action(WalkRadio *wr) in OptionsMenu_action() argument
103 switch (wr->defaultchoice) { in OptionsMenu_action()
117 clear_radio(&wrg->wr[OptionsMenu]); in OptionsMenu_action()
118 setup_radio(&wrg->wr[OptionsMenu]); in OptionsMenu_action()
122 static int ColorStyleMenu_action(WalkRadio *wr) in ColorStyleMenu_action() argument
124 _cs->choice = wr->defaultchoice; in ColorStyleMenu_action()
126 updateMenu((int)ColorStyleMenu, wr->defaultchoice); in ColorStyleMenu_action()
129 static int SoundStyleMenu_action(WalkRadio *wr) in SoundStyleMenu_action() argument
131 _ss->choice = wr->defaultchoice; in SoundStyleMenu_action()
134 updateMenu((int)SoundStyleMenu, wr->defaultchoice); in SoundStyleMenu_action()
137 static int PieceStyleMenu_action(WalkRadio *wr) in PieceStyleMenu_action() argument
139 _ps->choice = wr->defaultchoice; in PieceStyleMenu_action()
141 updateMenu((int)PieceStyleMenu, wr->defaultchoice); in PieceStyleMenu_action()
144 static int GameMenu_action(WalkRadio *wr) in GameMenu_action() argument
146 _local_gametype = wr->defaultchoice; in GameMenu_action()
149 updateMenu((int)GameMenu, wr->defaultchoice); in GameMenu_action()
153 static int MainMenu_action(WalkRadio *wr) in MainMenu_action() argument
157 switch (wr->defaultchoice) { in MainMenu_action()
165 if (wrg->wr[i].inactive == FALSE) { in MainMenu_action()
166 wrg->wr[i].inactive = TRUE; in MainMenu_action()
167 clear_radio(&wrg->wr[i]); in MainMenu_action()
170 wrg->wr[wr->defaultchoice].inactive = FALSE; in MainMenu_action()
171 wrg->cur = wr->defaultchoice; in MainMenu_action()
182 Debug("Invalid menu choice %d.\n", wr->defaultchoice); in MainMenu_action()
258 draw_radio(&wrg->wr[i], i == wrg->cur); in play_MENU()
296 Calloc(wrg->wr, WalkRadio *, wrg->n * sizeof(*wrg->wr)); in choose_gametype()
299 wrg->wr[PieceStyleMenu].n = ps->num_style; in choose_gametype()
300 Malloc(wrg->wr[PieceStyleMenu].label, char**, sizeof(char*)*ps->num_style); in choose_gametype()
302 wrg->wr[PieceStyleMenu].label[i] = ps->style[i]->name; in choose_gametype()
303 wrg->wr[PieceStyleMenu].defaultchoice = ps->choice; in choose_gametype()
304 wrg->wr[PieceStyleMenu].action = PieceStyleMenu_action; in choose_gametype()
306 wrg->wr[ColorStyleMenu].n = cs->num_style; in choose_gametype()
307 Malloc(wrg->wr[ColorStyleMenu].label, char**, sizeof(char*)*cs->num_style); in choose_gametype()
309 wrg->wr[ColorStyleMenu].label[i] = cs->style[i]->name; in choose_gametype()
310 wrg->wr[ColorStyleMenu].defaultchoice = cs->choice; in choose_gametype()
311 wrg->wr[ColorStyleMenu].action = ColorStyleMenu_action; in choose_gametype()
313 wrg->wr[SoundStyleMenu].n = ss->num_style; in choose_gametype()
314 Malloc(wrg->wr[SoundStyleMenu].label, char**, sizeof(char*)*ss->num_style); in choose_gametype()
316 wrg->wr[SoundStyleMenu].label[i] = ss->style[i]->name; in choose_gametype()
317 wrg->wr[SoundStyleMenu].defaultchoice = ss->choice; in choose_gametype()
318 wrg->wr[SoundStyleMenu].action = SoundStyleMenu_action; in choose_gametype()
324 wrg->wr[GameMenu].n = 6; in choose_gametype()
325 Malloc(wrg->wr[GameMenu].label, char**, sizeof(char*)*wrg->wr[GameMenu].n); in choose_gametype()
326 wrg->wr[GameMenu].label[0] = "Solo Normal Game"; in choose_gametype()
327 wrg->wr[GameMenu].label[1] = "Solo Scoring Marathon"; in choose_gametype()
328 wrg->wr[GameMenu].label[2] = "Solo vs. Computer"; in choose_gametype()
329 wrg->wr[GameMenu].label[3] = "2 Players @ 1 Keyboard"; in choose_gametype()
330 wrg->wr[GameMenu].label[4] = "2 Players, Use Network"; in choose_gametype()
331 wrg->wr[GameMenu].label[5] = "Computer vs. Computer"; in choose_gametype()
332 wrg->wr[GameMenu].defaultchoice = 0; in choose_gametype()
333 wrg->wr[GameMenu].action = GameMenu_action; in choose_gametype()
335 wrg->wr[OptionsMenu].n = 7; in choose_gametype()
336 Malloc(wrg->wr[OptionsMenu].label, char**, sizeof(char*)*wrg->wr[OptionsMenu].n); in choose_gametype()
338 wrg->wr[OptionsMenu].defaultchoice = 0; in choose_gametype()
339 wrg->wr[OptionsMenu].action = OptionsMenu_action; in choose_gametype()
342 wrg->wr[MainMenu].n = 7; in choose_gametype()
343 Malloc(wrg->wr[MainMenu].label, char**, sizeof(char*)*wrg->wr[MainMenu].n); in choose_gametype()
345 wrg->wr[MainMenu].label[0] = wrg->wr[ColorStyleMenu].label[wrg->wr[ColorStyleMenu].defaultchoice]; in choose_gametype()
346 wrg->wr[MainMenu].label[1] = wrg->wr[SoundStyleMenu].label[wrg->wr[SoundStyleMenu].defaultchoice]; in choose_gametype()
347 wrg->wr[MainMenu].label[2] = wrg->wr[PieceStyleMenu].label[wrg->wr[PieceStyleMenu].defaultchoice]; in choose_gametype()
348 wrg->wr[MainMenu].label[3] = wrg->wr[GameMenu].label[(int)_local_gametype]; in choose_gametype()
349 wrg->wr[MainMenu].label[4] = "Special Options"; in choose_gametype()
350 wrg->wr[MainMenu].label[5] = "Play!"; in choose_gametype()
351 wrg->wr[MainMenu].label[6] = "Quit"; in choose_gametype()
352 wrg->wr[MainMenu].defaultchoice = 5; in choose_gametype()
353 wrg->wr[MainMenu].action = MainMenu_action; in choose_gametype()
356 setup_radio(&wrg->wr[i]); in choose_gametype()
359 wrg->wr[ColorStyleMenu].x = 2*(screen->w/3) + in choose_gametype()
360 (screen->w/3 - wrg->wr[ColorStyleMenu].area.w)/2; in choose_gametype()
361 wrg->wr[ColorStyleMenu].y = in choose_gametype()
362 (screen->h - wrg->wr[ColorStyleMenu].area.h)/2; in choose_gametype()
363 wrg->wr[ColorStyleMenu].inactive = TRUE; in choose_gametype()
365 wrg->wr[SoundStyleMenu].x = 2*(screen->w/3) + in choose_gametype()
366 (screen->w/3 - wrg->wr[SoundStyleMenu].area.w)/2; in choose_gametype()
367 wrg->wr[SoundStyleMenu].y = in choose_gametype()
368 (screen->h - wrg->wr[SoundStyleMenu].area.h)/2; in choose_gametype()
369 wrg->wr[SoundStyleMenu].inactive = TRUE; in choose_gametype()
371 wrg->wr[OptionsMenu].x = 2*(screen->w/3) + in choose_gametype()
372 (screen->w/3 - wrg->wr[OptionsMenu].area.w)/2; in choose_gametype()
373 wrg->wr[OptionsMenu].y = in choose_gametype()
374 (screen->h - wrg->wr[OptionsMenu].area.h)/2; in choose_gametype()
375 wrg->wr[OptionsMenu].inactive = TRUE; in choose_gametype()
377 wrg->wr[PieceStyleMenu].x = 2*(screen->w/3) + in choose_gametype()
378 (screen->w/3 - wrg->wr[PieceStyleMenu].area.w)/2; in choose_gametype()
379 wrg->wr[PieceStyleMenu].y = in choose_gametype()
380 (screen->h - wrg->wr[PieceStyleMenu].area.h)/2; in choose_gametype()
381 wrg->wr[PieceStyleMenu].inactive = TRUE; in choose_gametype()
383 wrg->wr[GameMenu].x = 2*(screen->w/3) + in choose_gametype()
384 (screen->w/3 - wrg->wr[GameMenu].area.w)/2; in choose_gametype()
385 wrg->wr[GameMenu].y = in choose_gametype()
386 (screen->h - wrg->wr[GameMenu].area.h)/2; in choose_gametype()
387 wrg->wr[GameMenu].inactive = TRUE; in choose_gametype()
389 wrg->wr[MainMenu].x = (screen->w/3 - wrg->wr[MainMenu].area.w)/2; in choose_gametype()
390 wrg->wr[MainMenu].y = (screen->h - wrg->wr[MainMenu].area.h)/2; in choose_gametype()
391 wrg->wr[MainMenu].inactive = FALSE; in choose_gametype()