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

Method updateDisplayForSteam

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

Source from the content-addressed store, hash-verified

207 }
208
209 private void updateDisplayForSteam() {
210 File steamPath = this.gui.getSourcePath();
211 if (Steam.isSteamPath(steamPath)) {
212 this.gui.setTextFieldSteamPathColor(COLOR_DIRECTORY_FOUND);
213// gui.setLabelIssourcesdkinstalled("Source SDK is installed."); // TODO
214// gui.setVisibilityLabelIssourcesdkinstalled(true);
215 this.sourcePathOk = true;
216 } else {
217 this.gui.setTextFieldSteamPathColor(COLOR_DIRECTORY_MISSING);
218// gui.setLabelIssourcesdkinstalled("Source SDK is Not installed.");
219// gui.setVisibilityLabelIssourcesdkinstalled(true);
220 this.sourcePathOk = false;
221 }
222 this.updateContinueButton();
223 }
224
225 private void updateContinueButton() {
226 this.gui.setEnabledButtonContinueAtSetup(this.minecraftPathOk && this.sourcePathOk);

Callers 1

initSetupMethod · 0.95

Calls 4

isSteamPathMethod · 0.95
updateContinueButtonMethod · 0.95
getSourcePathMethod · 0.45

Tested by

no test coverage detected