Compare commits

...
12 Commits
405 changed files with 1011 additions and 936 deletions

No files matched your search

@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -31,7 +31,6 @@ import org.jackhuang.hmcl.event.RefreshedVersionsEvent;
import org.jackhuang.hmcl.game.HMCLCacheRepository;
import org.jackhuang.hmcl.game.HMCLGameRepository;
import org.jackhuang.hmcl.game.Version;
import org.jackhuang.hmcl.mod.ModManager;
import org.jackhuang.hmcl.ui.WeakListenerHolder;
import org.jackhuang.hmcl.util.*;
import org.jackhuang.hmcl.util.javafx.ImmediateObjectProperty;
@@ -52,7 +51,6 @@ import static org.jackhuang.hmcl.ui.FXUtils.onInvalidating;
public final class Profile implements Observable {
private final WeakListenerHolder listenerHolder = new WeakListenerHolder();
private final HMCLGameRepository repository;
private final ModManager modManager;
private final StringProperty selectedVersion = new SimpleStringProperty();
@@ -136,7 +134,6 @@ public final class Profile implements Observable {
this.name = new ImmediateStringProperty(this, "name", name);
gameDir = new ImmediateObjectProperty<>(this, "gameDir", initialGameDir);
repository = new HMCLGameRepository(this, initialGameDir);
modManager = new ModManager(repository);
this.global.set(global == null ? new VersionSetting() : global);
this.selectedVersion.set(selectedVersion);
this.useRelativePath.set(useRelativePath);
@@ -166,10 +163,6 @@ public final class Profile implements Observable {
return repository;
}
public ModManager getModManager() {
return modManager;
}
public DefaultDependencyManager getDependency() {
return new DefaultDependencyManager(repository, DownloadProviders.getDownloadProvider(), HMCLCacheRepository.REPOSITORY);
}
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,6 +18,7 @@
package org.jackhuang.hmcl.ui.construct;
import javafx.scene.Node;
import org.jackhuang.hmcl.ui.FXUtils;
public class IconedMenuItem extends IconedItem {
@@ -27,4 +28,9 @@ public class IconedMenuItem extends IconedItem {
getStyleClass().setAll("iconed-menu-item");
setOnMouseClicked(e -> action.run());
}
public IconedMenuItem addTooltip(String tooltip) {
FXUtils.installTooltip(this, tooltip);
return this;
}
}
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -53,6 +53,7 @@ public class TwoLineListItem extends StackPane {
}
public TwoLineListItem() {
setMouseTransparent(true);
Label lblTitle = new Label();
lblTitle.textFillProperty().bind(titleFill);
lblTitle.fontProperty().bind(titleFont);
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -32,6 +32,7 @@ import javafx.scene.control.SkinBase;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
@@ -73,8 +74,12 @@ public class DecoratorSkin extends SkinBase<Decorator> {
BorderPane root = new BorderPane();
root.getStyleClass().setAll("jfx-decorator", "resize-border");
root.setMaxHeight(519);
root.setMaxWidth(800);
root.setPrefHeight(519);
root.setPrefWidth(800);
root.setMaxHeight(Region.USE_PREF_SIZE);
root.setMinHeight(Region.USE_PREF_SIZE);
root.setMaxWidth(Region.USE_PREF_SIZE);
root.setMinWidth(Region.USE_PREF_SIZE);
StackPane drawerWrapper = new StackPane();
skinnable.setDrawerWrapper(drawerWrapper);
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1,6 +1,6 @@
/**
/*
* Hello Minecraft! Launcher
* Copyright (C) 2018 huangyuhui <[email protected]> and contributors
* Copyright (C) 2019 huangyuhui <[email protected]> and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Loaded 100 of 405 files, more files were not shown because too many files have changed in this diff. Show more