Announcement

Collapse
No announcement yet.

Need help with the math !

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need help with the math !

    I try to create a slider option for the Elcos Menu.
    My problem is to found the good slider pic (slider_0.png to slider_20.png)
    for a slider's value (0 to 65535).
    The result is the .png file .

    How can i write that please with autoit .

    Thanks

  • #2
    I think that i have found how to solve my problem :
    Code:
    $ValueSlider =  $rr.getinfo("GPSSINAL")
    $PicturesSlider = "slider_"&Round($ValueSlider/65535*20,0)&".png"
    It's that ?

    Comment


    • #3
      not to mention, math rules...

      Please Excuse My Dear Aunt Sally

      (value / 65535) * 20
      -Thanks
      Mitch
      www.rush2112.net

      "Did you test it in carwings??"

      Sun, Come shine my way
      May healing waters bury all my pain
      Wind, Carry me home
      The fabric of reality is tearing apart
      The piece of me that died
      Will return To live again

      Comment


      • #4
        Dynamic sliders

        It is far easier to use the dynamic slider instead of the 20 images. A slider can really be any shape and size.

        Here are a few screens of something I was tinkering with a while back. It is using a dynamic slider, the SongPos slider for testing. As the song plays, the graph / slider moves up.

        This is what it looks like in the skin editor. (The large white box is the defined slider area, the smaller one inside it is the SOngPos label)
        Click image for larger version

Name:	SkinDlider01.jpg
Views:	1
Size:	29.2 KB
ID:	2280970



        This image is just the slider image:

        Click image for larger version

Name:	SkinDlider02.png
Views:	1
Size:	9.3 KB
ID:	2280971



        Finally, this is what it looks like in a test skin.

        Click image for larger version

Name:	SkinDlider03.jpg
Views:	1
Size:	36.9 KB
ID:	2280972
        Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

        My Fiero Build Thread

        Comment


        • #5
          yes.. and that looks pretty
          -Thanks
          Mitch
          www.rush2112.net

          "Did you test it in carwings??"

          Sun, Come shine my way
          May healing waters bury all my pain
          Wind, Carry me home
          The fabric of reality is tearing apart
          The piece of me that died
          Will return To live again

          Comment


          • #6
            Nice in fact John !

            Thanks mitchjs

            Comment

            Working...
            X