formating work
This commit is contained in:
parent
fe6ddedab9
commit
5f756f613f
@ -105,199 +105,199 @@ import net.lingala.zip4j.exception.ZipException;
|
|||||||
|
|
||||||
public class MainWindowController {
|
public class MainWindowController {
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton aboutBtn;
|
private JFXButton aboutBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton settingsBtn;
|
private JFXButton settingsBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton addBtn;
|
private JFXButton addBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton reloadRomsBtn;
|
private JFXButton reloadRomsBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton smmdbBtn;
|
private JFXButton smmdbBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton cemuTFBtn;
|
private JFXButton cemuTFBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton romTFBtn;
|
private JFXButton romTFBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton updateBtn;
|
private JFXButton updateBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton smmdbDownloadBtn;
|
private JFXButton smmdbDownloadBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton playBtn;
|
private JFXButton playBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXButton lastTimePlayedBtn;
|
private JFXButton lastTimePlayedBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
JFXButton totalPlaytimeBtn;
|
JFXButton totalPlaytimeBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXHamburger menuHam;
|
private JFXHamburger menuHam;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXTextField cemuTextField;
|
private JFXTextField cemuTextField;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXTextField romTextField;
|
private JFXTextField romTextField;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private TextFlow smmdbTextFlow;
|
private TextFlow smmdbTextFlow;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXColorPicker colorPicker;
|
private JFXColorPicker colorPicker;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXToggleButton cloudSyncToggleBtn;
|
private JFXToggleButton cloudSyncToggleBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXToggleButton autoUpdateToggleBtn;
|
private JFXToggleButton autoUpdateToggleBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXToggleButton fullscreenToggleBtn;
|
private JFXToggleButton fullscreenToggleBtn;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private ChoiceBox<String> branchChoisBox;
|
private ChoiceBox<String> branchChoisBox;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private AnchorPane mainAnchorPane;
|
private AnchorPane mainAnchorPane;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private AnchorPane gamesAnchorPane;
|
private AnchorPane gamesAnchorPane;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private AnchorPane settingsAnchorPane;
|
private AnchorPane settingsAnchorPane;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private AnchorPane smmdbAnchorPane;
|
private AnchorPane smmdbAnchorPane;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private ScrollPane mainScrollPane;
|
private ScrollPane mainScrollPane;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private ScrollPane settingsScrollPane;
|
private ScrollPane settingsScrollPane;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private ScrollPane smmdbScrollPane;
|
private ScrollPane smmdbScrollPane;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private VBox sideMenuVBox;
|
private VBox sideMenuVBox;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private HBox topHBox;
|
private HBox topHBox;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private ImageView smmdbImageView;
|
private ImageView smmdbImageView;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Label helpLbl;
|
private Label helpLbl;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Label cemu_UISettingsLbl;
|
private Label cemu_UISettingsLbl;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Label cemuDirectoryLbl;
|
private Label cemuDirectoryLbl;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Label romDirectoryLbl;
|
private Label romDirectoryLbl;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Label mainColorLbl;
|
private Label mainColorLbl;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Label updateLbl;
|
private Label updateLbl;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Label branchLbl;
|
private Label branchLbl;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Label cemuSettingsLbl;
|
private Label cemuSettingsLbl;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private Label licensesLbl;
|
private Label licensesLbl;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXTreeTableView<CourseTableDataType> courseTreeTable = new JFXTreeTableView<CourseTableDataType>();
|
private JFXTreeTableView<CourseTableDataType> courseTreeTable = new JFXTreeTableView<CourseTableDataType>();
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
TreeItem<CourseTableDataType> root = new TreeItem<>(new CourseTableDataType("","",0,0));
|
TreeItem<CourseTableDataType> root = new TreeItem<>(new CourseTableDataType("", "", 0, 0));
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXTreeTableColumn<CourseTableDataType, String> titleColumn = new JFXTreeTableColumn<>("title");
|
private JFXTreeTableColumn<CourseTableDataType, String> titleColumn = new JFXTreeTableColumn<>("title");
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXTreeTableColumn<CourseTableDataType, String> idColumn = new JFXTreeTableColumn<>("id");
|
private JFXTreeTableColumn<CourseTableDataType, String> idColumn = new JFXTreeTableColumn<>("id");
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXTreeTableColumn<CourseTableDataType, Integer> starsColumn = new JFXTreeTableColumn<>("stars");
|
private JFXTreeTableColumn<CourseTableDataType, Integer> starsColumn = new JFXTreeTableColumn<>("stars");
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private JFXTreeTableColumn<CourseTableDataType, Integer> timeColumn = new JFXTreeTableColumn<>("time");
|
private JFXTreeTableColumn<CourseTableDataType, Integer> timeColumn = new JFXTreeTableColumn<>("time");
|
||||||
|
|
||||||
Main main;
|
Main main;
|
||||||
dbController dbController;
|
dbController dbController;
|
||||||
SmmdbAPIController smmdbAPIController;
|
SmmdbAPIController smmdbAPIController;
|
||||||
playGame playGame;
|
playGame playGame;
|
||||||
private static MainWindowController MWC;
|
private static MainWindowController MWC;
|
||||||
private UpdateController updateController;
|
private UpdateController updateController;
|
||||||
private boolean menuTrue = false;
|
private boolean menuTrue = false;
|
||||||
private boolean settingsTrue = false;
|
private boolean settingsTrue = false;
|
||||||
private boolean playTrue = false;
|
private boolean playTrue = false;
|
||||||
private boolean smmdbTrue = false;
|
private boolean smmdbTrue = false;
|
||||||
private boolean autoUpdate = false;
|
private boolean autoUpdate = false;
|
||||||
private boolean useBeta = false;
|
private boolean useBeta = false;
|
||||||
private boolean fullscreen;
|
private boolean fullscreen;
|
||||||
private boolean cloudSync;
|
private boolean cloudSync;
|
||||||
private String cloudService = ""; // set cloud provider (at the moment only GoogleDrive, Dropbox is planed)
|
private String cloudService = ""; // set cloud provider (at the moment only GoogleDrive, Dropbox is planed)
|
||||||
private String cemuPath;
|
private String cemuPath;
|
||||||
private String romPath;
|
private String romPath;
|
||||||
private String gameExecutePath;
|
private String gameExecutePath;
|
||||||
private String color;
|
private String color;
|
||||||
private String dialogBtnStyle;
|
private String dialogBtnStyle;
|
||||||
private String selectedGameTitleID;
|
private String selectedGameTitleID;
|
||||||
private String selectedGameTitle;
|
private String selectedGameTitle;
|
||||||
private String id;
|
private String id;
|
||||||
private String version = "0.2.1";
|
private String version = "0.2.1";
|
||||||
private String buildNumber = "057";
|
private String buildNumber = "057";
|
||||||
private String versionName = "Puzzle Plank Galaxy";
|
private String versionName = "Puzzle Plank Galaxy";
|
||||||
private int xPos = -200;
|
private int xPos = -200;
|
||||||
private int yPos = 17;
|
private int yPos = 17;
|
||||||
private int xPosHelper;
|
private int xPosHelper;
|
||||||
private int oldXPosHelper;
|
private int oldXPosHelper;
|
||||||
private int selectedUIDataIndex;
|
private int selectedUIDataIndex;
|
||||||
private int selected;
|
private int selected;
|
||||||
private double windowWidth;
|
private double windowWidth;
|
||||||
private double windowHeight;
|
private double windowHeight;
|
||||||
private DirectoryChooser directoryChooser = new DirectoryChooser();
|
private DirectoryChooser directoryChooser = new DirectoryChooser();
|
||||||
private File dirWin = new File(System.getProperty("user.home") + "/Documents/cemu_UI");
|
private File dirWin = new File(System.getProperty("user.home") + "/Documents/cemu_UI");
|
||||||
private File dirLinux = new File(System.getProperty("user.home") + "/cemu_UI");
|
private File dirLinux = new File(System.getProperty("user.home") + "/cemu_UI");
|
||||||
private File configFileWin = new File(dirWin + "/config.xml");
|
private File configFileWin = new File(dirWin + "/config.xml");
|
||||||
private File configFileLinux = new File(dirLinux + "/config.xml");
|
private File configFileLinux = new File(dirLinux + "/config.xml");
|
||||||
private File pictureCacheWin = new File(dirWin+"/picture_cache");
|
private File pictureCacheWin = new File(dirWin + "/picture_cache");
|
||||||
private File pictureCacheLinux = new File(dirLinux+"/picture_cache");
|
private File pictureCacheLinux = new File(dirLinux + "/picture_cache");
|
||||||
private ObservableList<String> branches = FXCollections.observableArrayList("stable", "beta");
|
private ObservableList<String> branches = FXCollections.observableArrayList("stable", "beta");
|
||||||
private ObservableList<String> smmIDs = FXCollections.observableArrayList("fe31b7f2", "44fc5929"); // TODO add more IDs
|
private ObservableList<String> smmIDs = FXCollections.observableArrayList("fe31b7f2", "44fc5929"); // TODO add more IDs
|
||||||
private ObservableList<UIROMDataType> games = FXCollections.observableArrayList();
|
private ObservableList<UIROMDataType> games = FXCollections.observableArrayList();
|
||||||
ObservableList<SmmdbApiDataType> courses = FXCollections.observableArrayList();
|
ObservableList<SmmdbApiDataType> courses = FXCollections.observableArrayList();
|
||||||
ArrayList<Text> courseText = new ArrayList<Text>();
|
ArrayList<Text> courseText = new ArrayList<Text>();
|
||||||
ArrayList<Text> nameText = new ArrayList<Text>();
|
ArrayList<Text> nameText = new ArrayList<Text>();
|
||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
Properties gameProps = new Properties();
|
Properties gameProps = new Properties();
|
||||||
private static final Logger LOGGER = LogManager.getLogger(MainWindowController.class.getName());
|
private static final Logger LOGGER = LogManager.getLogger(MainWindowController.class.getName());
|
||||||
private HamburgerBackArrowBasicTransition burgerTask;
|
private HamburgerBackArrowBasicTransition burgerTask;
|
||||||
private MenuItem edit = new MenuItem("edit");
|
private MenuItem edit = new MenuItem("edit");
|
||||||
private MenuItem remove = new MenuItem("remove");
|
private MenuItem remove = new MenuItem("remove");
|
||||||
private MenuItem addUpdate = new MenuItem("update");
|
private MenuItem addUpdate = new MenuItem("update");
|
||||||
private MenuItem addDLC = new MenuItem("add DLC");
|
private MenuItem addDLC = new MenuItem("add DLC");
|
||||||
private ContextMenu gameContextMenu = new ContextMenu(edit, remove, addUpdate, addDLC);
|
private ContextMenu gameContextMenu = new ContextMenu(edit, remove, addUpdate, addDLC);
|
||||||
private Label lastGameLabel = new Label();
|
private Label lastGameLabel = new Label();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user