Pagina 1 di 1

Easy CheckBox & Radio Button 1.3

Inviato: 03/07/2014, 22:04
da Xxshark888xX
Salve :cappa: . 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 8)


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:

Immagine

Re: Easy CheckBox & Radio Button 1.0

Inviato: 03/07/2014, 22:12
da Tizzio
Ne avevo fatto uno pure io, ma mi sa che i link sono persi nel nulla ormai
http://gmitalia.altervista.org/gmi_foru ... RM#p110808

Re: Easy CheckBox & Radio Button 1.0

Inviato: 04/07/2014, 12:16
da Xxshark888xX
Tizzio ha scritto:Ne avevo fatto uno pure io, ma mi sa che i link sono persi nel nulla ormai
http://gmitalia.altervista.org/gmi_foru ... RM#p110808
Mah, ho creato questi script per vedere se riuscivo a creare un Radio Button completamente funzionante (poi ho aggiunto anche il CheckBox) :cappa:

Re: Easy CheckBox & Radio Button 1.2

Inviato: 05/07/2014, 12:21
da Xxshark888xX
UPDATE 1.2

Aggiunta la funzione radioGroupCheckStatus("GROUP"). Se un Radio Button nel gruppo specificato è checkato, ritorna il valore di radioText. Se non è checkato nessun Radio Button allora non ritorna nulla.

Re: Easy CheckBox & Radio Button 1.3

Inviato: 19/07/2014, 12:22
da Nikx
Non funziona il link, potresti ripristinarlo grazie

Re: Easy CheckBox & Radio Button 1.3

Inviato: 19/07/2014, 12:33
da Tizzio
Buttalo sul marketplace a 99 cent :rockrock:

Re: Easy CheckBox & Radio Button 1.3

Inviato: 20/07/2014, 8:52
da Xxshark888xX
Tizzio ha scritto:Buttalo sul marketplace a 99 cent :rockrock:
Già fatto :asd:

@Non funziona il link, potresti ripristinarlo grazie

https://marketplace.yoyogames.com/asset ... dio-button

Re: Easy CheckBox & Radio Button 1.3

Inviato: 20/07/2014, 12:46
da Tizzio
Yeah
apri il topic nella sezione Marketplace di GMI e di GMC (sito inglese)

Re: Easy CheckBox & Radio Button 1.3

Inviato: 20/07/2014, 14:21
da Xxshark888xX
Tizzio ha scritto:Yeah
apri il topic nella sezione Marketplace di GMI e di GMC (sito inglese)
Nah! Non mi metto di certo a creare un topic per na cazzata del genere :asd: fino ad ora ho venduto... 0 "copie" :rockrock:

Re: Easy CheckBox & Radio Button 1.3

Inviato: 21/07/2014, 6:24
da aironenero
beh, guarda che comunque pubblicizzandolo qualcxuno forse lo comprerà a quel prezzo Immagine

Re: Easy CheckBox & Radio Button 1.3

Inviato: 21/07/2014, 14:36
da Tizzio
aironenero ha scritto:beh, guarda che comunque pubblicizzandolo qualcxuno forse lo comprerà a quel prezzo Immagine
Ciò che intendevo...

Re: Easy CheckBox & Radio Button 1.3

Inviato: 21/07/2014, 14:45
da Xxshark888xX
Quando avrò voglia :asd: