Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Pages: 1
https://yadi.sk/d/FZqRfzLNUgtzn (archive with the project and needed files)
I want to understand the logic circuit
key pressed ---> set +1 to value --> value added to number in the text the text ----> text sets label at unactive button adapted to gui money
$ 0(at default)
Offline
compressed with 7zip (compression)
Offline
Ok
use a var plugIT
key+1 -> var price.Increment "1" in the link parameter
key-1 -> var price.Decrement "1" in the link parameter
key0 -> var price.Set value "0" in the link parameter
var price.Modified -> money.Set label "$$1" it will write $24 $1 is the parameter value
Don't forget to check "no repeat on key down" on keyboad plugIT
Offline
https://yadi.sk/d/k3W9e3vzUmSi7
possible to separate from the $ sign digits?
not very successful
sorry for stupidity
Last edited by el_motoblock (25-Jun-2014 02:56:51)
Offline
Hi !
you should understand better once the OS3D book will be out ^^
first set the default value of the var plugIT to "Int" "0"
then double click on links and set "1" value to increment / decrement links and "0" for set 0 link
this is only what you missing
Offline
how can I make the threshold for minus values? (if value "inferior or equals -1" then set $0)
https://yadi.sk/d/awBBLgVtUum7u
Last edited by el_motoblock (26-Jun-2014 03:14:55)
Offline
With the misc If plugIT.
set the default value to Int 0
change the link from
var price.Modified -> money.Set label "$$1" it will write $24 $1 is the parameter value
to
var price.Modified -> If.Inferior
If.True -> money.Set label "$$1"
If.False -> money.Set label "$0"
Offline
could not figure out how to GET/SET value to misc If PlugIT
https://yadi.sk/d/P4wTw_xZV3PsG
Last edited by el_motoblock (27-Jun-2014 04:25:56)
Offline
Ok let's do it another way.
in the "If money" plugIT
set the default value to "0" (you set "<=0")
add the links
var price.Modified -> If money.Inferior
If money.True -> price.Set value "0"
so when the var price is < 0 the var is set to 0
Offline
tranks. all works normal.
where is there a place in the forum where you can upload code pieces and resources(for example)?
Last edited by el_motoblock (28-Jun-2014 17:14:49)
Offline
Pages: 1