Allegro.cc
Projects
Action252
Adventure22
Arcade216
Board Games30
Demos24
Emulators10
Other68
Puzzle139
Role Playing40
Sports25
Strategy58
Utilities46
Resource Directory
Code Gallery3
Compilers12
Help & Documents13
Libraries63
Media2
Tools8
LS Button
Source Directory » Libraries » GUI » LS Button
Author:
Loomsoft 
Version:
1.0 
URL:
http://www.loomsoft.net/util_lsbutton.shtml
LS Button (short for LoomSoft Button) is a C++ class to create bitmap imaged "buttons"; written to be used in conjunction with the Allegro Game Programming Library.

LS Button offers a wide range of functions which can be used to manipulate and create buttons. Most of all, it is fully customizable, and allows for the user to use any bitmap and/or sound of their choice to be used as the visual appearance of a button.

LS Button is a completely open-source freeware class. It consists of a simple header and source file combination. No libraries are required to be downloaded. Simply add the files to your allegro project, and start using them right away.

Quick Feature List:
-Custom bitmaps for each button "instance"
-Custom sounds for each button "instance"
-Only use bitmaps and sound if you want. You have the option to use neither (although a button won't be very effective if you can't see it)!
-Option of bounding-box or pixel-perfect "collision detection"
-Manipulate the bounding box
-Manipulate the pixel perfect "detection" color
-Turn buttons "on" or "off"
-Use buttons within an "allegro style" timer (ie: logic and drawing functions are separate from eachother)
-Two different methods of actual "button click" detection.
Poll
Is grammer and spelling important?
No weigh! 14.61
-
Absilootly, Yes. 62.47
-
I'm a looser with no onion. 22.93
-