CRM32Pro SDK  v5.22
Classes | Macros | Typedefs
MODULE 10: IButton v4.43, GUI interface.

Detailed Description


IButton is a multilayer GUI sytem with these type of buttons:
- normal
- complex
- check
- slider
- progress bar
- input box

It also supports:
- See below table or IButtonNew struct to a full list of properties
- alpha per surface and colorkey
- alpha per pixel

Internally, it uses CTile to store/load the images.
Currently it supports up to 8(MAX_LAYERBUTTON) layers with 32(MAX_BUTTON) maximum buttons per layer.
In addition, the maximum number of master button is 100(MAX_MASTERBUTTON).
We advice you to use EditorDPF to modify/add/delete tiles and its features.
CRM32Pro.Init() builds this interface and CRM32Pro.Quit() removes it.

Classes

class  CRM32Pro_IButton
 IButton. More...
 
struct  IButtonNew
 External button struct used to create new buttons. More...
 

Macros

#define B_ACTION   8
 Button state: click.
 
#define B_NORMAL   1
 Button state: normal.
 
#define B_OFF   16
 Button state: disabled.
 
#define B_PRESS   4
 Button state: pressed.
 
#define B_SELECT   2
 Button state: selected.
 
#define B_TYPE_CHECK   32
 Used in IButtonNew.type: to create a check button.
 
#define B_TYPE_COMPLEX   4
 Used in IButtonNew.type: to create a complex button.
 
#define B_TYPE_ICON   2
 Used in IButtonNew.type: deprecated, only for back compatibility.The same behaviour as NORMAL.
 
#define B_TYPE_INPUT   64
 Used in IButtonNew.type: to create an input box.
 
#define B_TYPE_NORMAL   1
 Used in IButtonNew.type: to create a normal button.
 
#define B_TYPE_PROGRESS   16
 Used in IButtonNew.type: to create a progress bar.
 
#define B_TYPE_SLIDER   8
 Used in IButtonNew.type: to create a slider.
 

Typedefs

typedef struct IButtonNew IButtonNew
 External button struct used to create new buttons.