Skip to content

Commit

Permalink
Commit and Push...
Browse files Browse the repository at this point in the history
  • Loading branch information
ChickChuck2 committed Oct 17, 2021
1 parent 618bfed commit 22bba34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/main/java/Controller/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import Config.createConfig;
import com.google.gson.Gson;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import javafx.scene.layout.AnchorPane;
import javafx.stage.DirectoryChooser;
import org.json.JSONArray;
import org.json.JSONObject;

import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
Expand Down Expand Up @@ -49,8 +49,10 @@ public class Controller {
public Button B_StopDownload;

ToggleGroup ModesGroup = new ToggleGroup();

//State
public RadioButton S_Qualified,S_Aprove,S_UnRanqued,S_Ranked;
public RadioButton S_Qualified,S_Aprove,S_UnRanqued,S_Ranked, S_Loved;

ToggleGroup StateGroup = new ToggleGroup();

List<String> nameBeatmap = new ArrayList<>();
Expand Down Expand Up @@ -181,7 +183,8 @@ public void GetBeatmapInfo() {
boolean Ranked = S_Ranked.isSelected(),
Aprove = S_Aprove.isSelected(),
UnRanked = S_UnRanqued.isSelected(),
Qualified = S_Qualified.isSelected();
Qualified = S_Qualified.isSelected(),
Loved = S_Loved.isSelected();

//Mode
String modes = "";
Expand Down Expand Up @@ -219,6 +222,9 @@ public void GetBeatmapInfo() {
if (Qualified) {
status += "status=3&";
}
if(Loved) {
status += "status=4&";
}
if (status.length() == 0) {
status = "";
} else {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/Main.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<RadioButton fx:id="S_UnRanqued" layoutX="171.0" layoutY="6.0" mnemonicParsing="false" text="UnRanked" />
<RadioButton fx:id="S_Ranked" layoutX="42.0" layoutY="6.0" mnemonicParsing="false" text="Ranked" />
<Label layoutX="-2.0" layoutY="6.0" text="Status" />
<RadioButton fx:id="S_Loved" layoutX="316.0" layoutY="6.0" mnemonicParsing="false" text="Loved" />
</AnchorPane>
</AnchorPane>
<HBox prefHeight="39.0" prefWidth="554.0">
Expand Down

0 comments on commit 22bba34

Please sign in to comment.