Salve
. Oggi per curiosità mi sono messo a creare uno script che semplifica la creazione di CheckBox e Radio buttons.
Basta creare gli sprites e poi usare gli scripts
HELP
Spoiler
CheckBox & Radio Button 1.3 by Xxshark888xX | (C)2014 Also free for commercial use
|-------------|
| CheckBox |
|-------------|
cbxInit(); CREATE event
cbxCreate(); DRAW event
cbxX : X position of checkbox
cbxY : Y position of checkbox
cbxW : Sprites width of checkbox | OBBLIGATORY
cbxH : Sprites height of checkbox | OBBLIGATORY
cbxMouseOn : Mouse on checkbox
cbxIsChecked : Return false or true
cbxSprite : The sprite name of checkbox (4 sub images)
cbxText : Text of checkbox
cbxTextX : X position of text
cbxTextY : Y position of text
cbxTextFont : Font of text
cbxTextColor : Color of text
cbxTextUnderline : Underline text?
cbxCheck(); Check the checkbox
cbxCheckAll(); Check all checkboxes
cbxUncheck(); Uncheck the checkbox
cbxUncheckAll(); Uncheck all checkboxes
cbxToggle(); Check/Uncheck the checkbox
|-----------------|
| Radio Button |
|-----------------|
radioInit(); CREATE event
radioCreate(); DRAW event
radioX : X position of radio button
radioY : Y position of radio button
radioW : Sprites width of radio button | OBBLIGATORY
radioH : Sprites height of radio button | OBBLIGATORY
radioMouseOn : Mouse on radio button
radioIsChecked : Return false or true
radioSprite : The sprite name of radio button (4 sub images)
radioText : Text of radio button
radioTextX : X position of text
radioTextY : Y position of text
radioTextFont : Font of text
radioTextColor : Color of text
radioTextUnderline : Underline text?
radioCheck(); Check the radio button
radioUncheck(); Check all radio buttones
radioToggle(); Check/Uncheck the radio button
radioGroupCheckStatus(); Return the text of radio button active in the group
radioGroupUncheckAll(); Uncheck all radio buttons in the group
radioUncheckAll(); Uncheck all radio buttons
Da qui potete scaricare il
gm8.1 + l'exe + scripts:
https://www.dropbox.com/s/y10weots6lxlp ... %201.3.rar
Screen: