Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (EternallyCurious, howardR), 646 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: is a variable max value in hslider/vslider possible?? [Re: MasterQ32] #447616
12/22/14 06:19
12/22/14 06:19
Joined: Jun 2010
Posts: 590
California
Ruben Offline
User
Ruben  Offline
User

Joined: Jun 2010
Posts: 590
California
Originally Posted By: MasterQ32
yes i know what you want. But i don't think you get what i was writing several times now. Think about the code i've written. It doesn't work if you just plain stupid copy paste it. Code never works if you copy paste it.
Think about it. Think about what i am doing here. Just some hint:
http://en.wikipedia.org/wiki/Cross-multiplication

Sorry, I really am trying to understand. So, if "result" ends up equaling a number after the getslider() computation, how exactly would I use the "result" variable for the hslider function? Doesn't the hslider function not accept a variable for the max argument, only a number that is not assigned to a variable?

Last edited by Ruben; 12/22/14 06:20.
Re: is a variable max value in hslider/vslider possible?? [Re: Ruben] #447617
12/22/14 07:27
12/22/14 07:27
Joined: Jun 2010
Posts: 590
California
Ruben Offline
User
Ruben  Offline
User

Joined: Jun 2010
Posts: 590
California
The manual for "hslider" makes no sense to me:

"For changing the slider range at runtime, use a min and max range of 0..1, and multiply var with the desired maximum value."

So, does this mean:

Code:
itm_qnt_ent_from = itm_qnt_ent_from * item_quant_entFrom; 
                  // with item_quant_entFrom being the 
                  //   desired max value, and itm_qnt_ent_from
                  //   being the helper variable.

...

hslider(450, 514, 150, "horizontalSlider.pcx", 0, 1, itm_qnt_ent_from);


?

Last edited by Ruben; 12/22/14 07:30.
Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1