Announcement

Collapse
No announcement yet.

custom variable sliders

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

  • custom variable sliders

    they dont update. if i have a variable slider which is currently equal to the master volume, and i increase the master volume with a button or some other external stimulus, the slider does not update.

    however, you can use the slider as a normal slider. (i.e. you can slide it up and down and + and - the volume.

  • #2
    give examples... a variable slider is meant to work only as a variable slider, it won't work as two things at once.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

    Comment


    • #3
      umm, well if i have a variable slider for example equal to SONGPOS, it does not move. the master volume example above i thought was okay... im not asking it to do more than it should, but if i have a slider that is equal to volume and i increase the volume without using the slider, the slider does not move even though the volume goes up.

      Comment


      • #4
        bump? custom sliders still do not update themselves..... will this ever be accomplished? also, sliders and BYVAR? dont mean to bother, but these would be extremely handy features.

        Comment


        • #5
          Here's what I had to do for the Custom Font Color sliders:


          Each slider (Red, Green, Blue, songpos)
          Code:
          /, S, x, y, w, h, x1, y1, w1, h1, O, Style, Pointer file path, h2, Code;SLIDERCODES, Tooltip
          S,218,97,41,307,218,97,41,307,v,01,"slider2.PNG",41,"$Red$",
          S,363,97,41,307,363,97,41,307,v,01,"slider2.PNG",41,"$Green$",
          S,507,97,41,307,507,97,41,307,v,01,"slider2.PNG",41,"$Blue$",
          S01,129,419,530,7,129,415,530,15,h,"bar.png","Slider.png",21,"SONGPOS",
          These buttons check where the sliders are positioned, and converts the number to a whole number between 0 and 255, then saves the result to a file. First button tests the result, the second saves it to the skin.

          Code:
          /, B, x, y, w, h, Command;COMMANDCODES, Tooltip
          B005,680,261,120,60,"EVAL;REDSLIDER;$Red$\257||WRITETOFILE;$skinpath$test.skin;=/DEFINE TRed $REDSLIDER$||EVAL;GREENSLIDER;$Green$\257||ADDTOFILE;$skinpath$test.skin;=/DEFINE TGreen $GREENSLIDER$||EVAL;BLUESLIDER;$Blue$\257||ADDTOFILE;$skinpath$test.skin;=/DEFINE TBlue $BLUESLIDER$||ADDTOFILE;$skinpath$Test.skin;=END||RELOADSKIN||Load;TextColor.skin",
          B005,680,322,120,60,"EVAL;REDSLIDER;$Red$\257||WRITETOFILE;$skinpath$color.skin;=/DEFINE FRed $REDSLIDER$||EVAL;GREENSLIDER;$Green$\257||ADDTOFILE;$skinpath$color.skin;=/DEFINE FGreen $GREENSLIDER$||EVAL;BLUESLIDER;$Blue$\257||ADDTOFILE;$skinpath$color.skin;=/DEFINE FBlue $BLUESLIDER$||ADDTOFILE;$skinpath$Test.skin;=END||RELOADSKIN||Load;TextColor.skin",
          These buttons allow me to fine adjust the sliders so that it increases or decreases by just one.
          Code:
          B001,131,137,72,58,"EVAL;Red;$Red$+257||EVAL;REDSLIDER;$Red$\257",
          B001,131,306,72,58,"EVAL;Red;$Red$-257||EVAL;REDSLIDER;$Red$\257",
          B001,274,137,72,58,"EVAL;Green;$Green$+257||EVAL;GREENSLIDER;$Green$\257",
          B001,273,306,72,58,"EVAL;Green;$Green$-257||EVAL;GREENSLIDER;$Green$\257",
          B001,418,137,72,58,"EVAL;Blue;$Blue$+257||EVAL;BLUESLIDER;$Blue$\257",
          B001,419,306,72,58,"EVAL;Blue;$Blue$-257||EVAL;BLUESLIDER;$Blue$\257",
          These labels show the mathematical result of the slider's position:
          Code:
          L,423,237,65,31,#FRed#,#FGreen#,#FBlue#,18,"BankGothic Md BT","=$BLUESLIDER$","CENTER"
          L,278,236,65,31,#FRed#,#FGreen#,#FBlue#,18,"BankGothic Md BT","=$GREENSLIDER$","CENTER"
          L,135,236,65,31,#FRed#,#FGreen#,#FBlue#,18,"BankGothic Md BT","=$REDSLIDER$","CENTER"
          from my exectbl.ini:

          These are necessary so that when I move each slider, it automatically refreshes the code to update all the labels and codes necessary:
          Code:
          "ONSLDRed","EVAL;REDSLIDER;$Red$\257"
          "ONSLDBlue","EVAL;BLUESLIDER;$Blue$\257"
          "ONSLDGreen","EVAL;GREENSLIDER;$Green$\257"
          I hope this helps with what you were looking to do with your sliders.
          2007 Chrysler PT Cruiser TE
          Car PC Progress:
          Planning.......[---------X-] 95%
          Parts...........[---------X-] 90%
          Fabrication...[---------X-] 90%
          RR Skin........[---------X-] 95%
          View my
          Worklog
          Road Runner Skins
          Website
          Favorite thread EVER!

          Comment

          Working...
          X