Announcement

Collapse
No announcement yet.

Radio buttons Saving and get Data in INI File Dynamically

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

  • Radio buttons Saving and get Data in INI File Dynamically

    SiNisTer post this code for saving and getting button state for checkbox

    here's the code:

    Checkbox button code:
    [HTML]--Get the State of the Button
    Checkbox = Button.GetState("Checkbox");
    --Saves the Value as "0" or "1" depending on the Button State
    --*Also Remenmber that "Button Up=0" and "Button Down=1"
    if Checkbox == 0 then
    INIFile.SetValue("AutoPlay\\Docs\\ButtonState.ini" , "Checkbox", "State", "0");
    else
    INIFile.SetValue("AutoPlay\\Docs\\ButtonState.ini" , "Checkbox", "State", "1");
    end[/HTML]

    on preload page code:
    [HTML]--Gets the Value (i.e: In this case either "1" or "0" and sets the State for the variable)
    ButtonState = INIFile.GetValue("AutoPlay\\Docs\\ButtonState.ini" , "Checkbox", "State");
    Button.SetState("Checkbox", ButtonState)[/HTML]


    but how to do it for radio buttons?
    I'm not very good with code, can some one make a example project for 3 or 4 radio buttons?


    thanks
    Attached Files

  • #2

    here an example


    Click image for larger version

Name:	Cattura.PNG
Views:	115
Size:	23.9 KB
ID:	304297




    Code:
    [ATTACH]n304296[/ATTACH]

    Comment


    • #3
      Originally posted by herrin View Post
      here an example


      [ATTACH=CONFIG]n304297[/ATTACH]




      Code:
      [ATTACH]n304296[/ATTACH]
      you are amazing!
      I will test it
      thank you!

      Comment


      • #4
        Hey herrin, it worked, thank you very mutch

        Is it possible to make the same with Combobox objects?
        i'm trying to play with your solution on combobox but i guess I'm a noob

        thanks again, you save me a lot of time

        Comment


        • #5
          here an example


          Click image for larger version

Name:	cb.PNG
Views:	98
Size:	9.9 KB
ID:	304303



          Code:
          [ATTACH]n304304[/ATTACH]

          Comment


          • #6
            I have no words, you are the best

            thanks!

            Comment


            • #7
              Hey herrin I have now other challange, this time is a little tricky:

              So I'm making my game launcher with Autoplay Media Studio, I need a graphical configuration combo boxes like the ones you make, (It's working great)
              the thing is:

              scenario:

              I have multiple graphical settings in combo boxes: in one page named [Advanced Graphical Settings] like this:

              1. Shadow Quality: low, medium, high, ultra
              2. Reflection Quality: low, medium, high, ultra
              3. Track Quality: low, medium, high, ultra
              4. etc, etc...

              but I want 1 combo box to rule all option like this:

              [Graphical Settings]: low, medium, high, ultra, custom

              What I need is this:
              if i change anything in the [Advanced Graphical Settings] combo boxes, the [Graphical Settings combobox] will change to "Custom"


              is that possible on Autoplay Media Studio?

              if you need a video or a picture to ilustrate better what I mean please ask


              thanks again for you golden time
              best regards

              Majority

              Comment


              • #8
                honestly didn't understand what you want to do
                share an example with indications

                Comment


                • #9
                  Hi herrin, yeah, its better to show than trying to explain, I'm not very good with words

                  I have upload an attachment of my project, hope you understand

                  PS: the work done so far was only possible because of you, so I'm very thankfull for that

                  Thanks.

                  Attached Files

                  Comment


                  • #10
                    Hey Herrin, any news?

                    Best regards

                    Comment


                    • #11
                      @Majority


                      have a p.m.

                      Comment


                      • #12
                        herrin thanks for time and effort on this, but the file is offline (The file you are trying to download is no longer available.)

                        best regards

                        Comment


                        • #13
                          herrin I was able to download the file.
                          It worked!!! You are amazing, thank you very much for this help.

                          Best regards

                          Comment

                          Working...
                          X