MCPcopy Create free account
hub / github.com/Garten/sourcecraft / initOutput

Method initOutput

src/main/GuiLogic.java:86–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 private void initOutput() {
87 this.gui.setPossibleGames(Periphery.CONFIG.getGames());
88
89 this.gui.setUponSelectedGame(gameName -> {
90 SourceGame game = Periphery.CONFIG.getGame(gameName);
91 this.handleGameSelect(game);
92 });
93 SourceGame game = Periphery.CONFIG.getGame();
94
95 this.handleGameSelect(game);
96
97 this.gui.setButtonSelectOutputFile(path -> {
98 Loggger.log("searching new output for " + path);
99 File newFile = this.changeFile(new File(path));
100 if (newFile.isDirectory()) {
101 newFile = new File(newFile, "test.vmf");
102 }
103 Loggger.log(newFile.toString());
104 this.gui.setOutputFileName(newFile.toString());
105 Periphery.CONFIG.setSavePath(newFile.toString());
106 Periphery.write();
107 });
108
109 this.gui.setUponEditOutput(this::testOutputFile);
110 this.testOutputFile();
111 }
112
113 private void initInput() {
114

Callers 1

runMethod · 0.95

Calls 14

handleGameSelectMethod · 0.95
logMethod · 0.95
changeFileMethod · 0.95
writeMethod · 0.95
testOutputFileMethod · 0.95
getGamesMethod · 0.80
setSavePathMethod · 0.80
setPossibleGamesMethod · 0.45
setUponSelectedGameMethod · 0.45
getGameMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected