Added Vietnamese lang.

This commit is contained in:
huangyuhui
2017-01-27 14:09:08 +08:00
parent 6e79450558
commit 68cfa3a5da
26 changed files with 990 additions and 156 deletions

View File

@@ -129,7 +129,7 @@ public abstract class IAssetsHandler {
need = !location.exists();
}
if (need)
al.add(new FileDownloadTask(url, location).setTag(mark));
al.add(new FileDownloadTask(url, location).setTag(contents.get(i).geteTag()));
}
}

View File

@@ -60,7 +60,7 @@ public class MinecraftForgeVersionList extends InstallerVersionList {
@Override
public Collection<Task> getDependTasks() {
return Arrays.asList(task);
return Arrays.asList(task.setTag("Official Forge Download Site"));
}
@Override

View File

@@ -62,7 +62,7 @@ public class LiteLoaderVersionList extends InstallerVersionList {
@Override
public Collection<Task> getDependTasks() {
return Arrays.asList(task);
return Arrays.asList(task.setTag("Official Liteloader Download Site"));
}
@Override

View File

@@ -65,7 +65,7 @@ public class OptiFineBMCLVersionList extends InstallerVersionList {
@Override
public Collection<Task> getDependTasks() {
return Arrays.asList(task);
return Arrays.asList(task.setTag("BMCL Optifine Download Site"));
}
@Override

View File

@@ -72,7 +72,7 @@ public class OptiFineVersionList extends InstallerVersionList {
@Override
public Collection<Task> getDependTasks() {
return Arrays.asList(task);
return Arrays.asList(task.setTag("Optifine Download Site"));
}
@Override

View File

@@ -29,16 +29,16 @@ import javax.swing.JPanel;
import org.jackhuang.hellominecraft.util.ui.StackBlurFilter;
/**
*
* This component will allow some area blured to provide better UI.
* @author huangyuhui
*/
public class GaussionPage extends Page {
private transient BufferedImage aeroBuffer; // 模糊缓存
private transient BufferedImage aeroBuffer;
private transient Image backgroundImage;
private final List<JPanel> aeroObject = new ArrayList<>();
private transient Graphics2D aeroGraphics; // 模糊对象
private static final int RADIUS = 10; // 模糊半径
private transient Graphics2D aeroGraphics;
private static final int RADIUS = 10;
private transient final StackBlurFilter stackBlurFilter = new StackBlurFilter(RADIUS);
private transient BufferedImage cache = null;
@@ -46,6 +46,10 @@ public class GaussionPage extends Page {
this.backgroundImage = backgroundImage;
}
/**
* The background will be blured under the aero object.
* @param aeroObject just need its bounds, keep it not opaque.
*/
public void addAeroObject(JPanel aeroObject) {
this.aeroObject.add(aeroObject);
cache = null;
@@ -58,6 +62,7 @@ public class GaussionPage extends Page {
if (backgroundImage == null)
return;
// If we cache the processed background image, the CPU ratio will reduce 5%.
if (cache == null || getWidth() != cache.getWidth() || getHeight() != cache.getHeight()) {
cache = new BufferedImage(getWidth(), getHeight(), 2);
Graphics2D g2 = cache.createGraphics();

View File

@@ -27,8 +27,22 @@ import javax.swing.JComponent;
* @author huang
*/
public interface IRepaint {
/**
* addDirtyRegion to?
* @return the component which needs repainting.
*/
JComponent getRepaintComponent();
/**
* addDirtyRegion to?
* @return the window which needs repainting.
*/
Window getRepaintWindow();
/**
* Repaint the component/window you want.
* @return the region where you want to repaint.
*/
Collection<Rectangle> getRepaintRects();
}

View File

@@ -399,6 +399,7 @@ public class MainPagePanel extends GaussionPage {
}//GEN-LAST:event_txtPasswordCaretUpdate
// <editor-fold defaultstate="collapsed" desc="Loads">
private void prepareAuths() {
preparingAuth = true;
cboLoginMode.removeAllItems();

View File

@@ -21,8 +21,8 @@ import java.awt.Dimension;
import javax.swing.JComboBox;
/**
*
* @author huang
* Make the popup menu of combo boxes wider.
* @author huangyuhui
*/
public class WideComboBox extends JComboBox {