Atrinik Client 2.5
Functions | Variables
toolkit/range_buttons.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

int range_buttons_show (int x, int y, int *val, int advance)

Variables

static uint32 ticks = 0

Detailed Description

Range buttons API.

Definition in file range_buttons.c.


Function Documentation

int range_buttons_show ( int  x,
int  y,
int *  val,
int  advance 
)

Show the range buttons.

Parameters:
xX position.
yY position.
valPointer to integer to update when one of the range buttons is clicked.
advanceHow much to advance 'val' by.
Returns:
1 if one of the buttons was clicked, 0 otherwise.

Definition at line 45 of file range_buttons.c.


Variable Documentation

uint32 ticks = 0 [static]

Last clicked ticks to prevent single button click from triggering many actions at once.

Definition at line 35 of file range_buttons.c.