Atrinik Client 2.5
Functions
client/menu.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

int client_command_check (const char *cmd)
void send_command_check (const char *cmd)
void blt_inventory_face_from_tag (int tag, int x, int y)
void show_menu ()
void blt_window_slider (_Sprite *slider, int maxlen, int winlen, int startoff, int len, int x, int y)

Detailed Description

Menu related functions.

Definition in file menu.c.


Function Documentation

void blt_inventory_face_from_tag ( int  tag,
int  x,
int  y 
)

Blit face from inventory located by tag.

Parameters:
tagItem tag to locate
xX position to blit the item
yY position to blit the item

Definition at line 322 of file menu.c.

void blt_window_slider ( _Sprite slider,
int  maxlen,
int  winlen,
int  startoff,
int  len,
int  x,
int  y 
)

Blit a window slider.

Parameters:
sliderSprite of the slider
maxlenMaximum length of the slider
winlenWindow length
startoffStart position offset
lenLength of the slider
xX position of the slider to display
yY position of the slider to display

Definition at line 359 of file menu.c.

int client_command_check ( const char *  cmd)

Analyze /cmd type commands the player has typed in the console or bound to a key. Sort out the "client intern" commands and expand or pre process them for the server.

Parameters:
cmdCommand to check
Returns:
0 to send command to server, 1 to not send it

Definition at line 37 of file menu.c.

void send_command_check ( const char *  cmd)

Same as send_command(), but also check client commands.

Parameters:
cmdCommand to send.

Definition at line 309 of file menu.c.

void show_menu ( )

Show one of the menus (book, party, etc).

Definition at line 337 of file menu.c.