Angband
Data Structures | Functions | Variables
ui-curse.c File Reference

Curse selection menu. More...

#include "angband.h"
#include "init.h"
#include "obj-curse.h"
#include "obj-knowledge.h"
#include "ui-menu.h"
#include "ui-output.h"

Data Structures

struct  curse_menu_data
 

Functions

void get_curse_display (struct menu *menu, int oid, bool cursor, int row, int col, int width)
 Display an entry on the item menu. More...
 
bool get_curse_action (struct menu *menu, const ui_event *event, int oid)
 Deal with events on the get_item menu. More...
 
static void curse_menu_browser (int oid, void *data, const region *loc)
 Show spell long description when browsing. More...
 
int curse_menu (struct object *obj, char *dice_string)
 Display list of curses to choose from. More...
 
bool textui_get_curse (int *choice, struct object *obj, char *dice_string)
 

Variables

static int selection
 

Detailed Description

Curse selection menu.

Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke Copyright (c) 2016 Nick McConnell

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Function Documentation

int curse_menu ( struct object obj,
char *  dice_string 
)
static void curse_menu_browser ( int  oid,
void data,
const region loc 
)
static
bool get_curse_action ( struct menu menu,
const ui_event event,
int  oid 
)

Deal with events on the get_item menu.

References EVT_SELECT, curse_menu_data::index, menu_priv(), selection, and ui_event::type.

Referenced by curse_menu().

void get_curse_display ( struct menu menu,
int  oid,
bool  cursor,
int  row,
int  col,
int  width 
)
bool textui_get_curse ( int choice,
struct object obj,
char *  dice_string 
)

References curse_menu().

Referenced by textui_input_init().

Variable Documentation

int selection
static