Skip to content

Commit

Permalink
Added the "config" option to the igi command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunatrius committed Oct 26, 2014
1 parent a76161d commit 3410956
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.github.lunatrius.core.handler.DelayedGuiDisplayTicker;
import com.github.lunatrius.ingameinfo.InGameInfoCore;
import com.github.lunatrius.ingameinfo.client.gui.GuiModConfig;
import com.github.lunatrius.ingameinfo.client.gui.GuiTags;
import com.github.lunatrius.ingameinfo.handler.ConfigurationHandler;
import com.github.lunatrius.ingameinfo.handler.Ticker;
Expand Down Expand Up @@ -37,7 +38,7 @@ public boolean canCommandSenderUseCommand(ICommandSender par1ICommandSender) {
@Override
public List addTabCompletionOptions(ICommandSender commandSender, String[] args) {
if (args.length == 1) {
return getListOfStringsMatchingLastWord(args, Names.Command.RELOAD, Names.Command.LOAD, Names.Command.SAVE, Names.Command.ENABLE, Names.Command.DISABLE, Names.Command.TAGLIST);
return getListOfStringsMatchingLastWord(args, Names.Command.RELOAD, Names.Command.LOAD, Names.Command.SAVE, Names.Command.ENABLE, Names.Command.DISABLE, Names.Command.TAGLIST, Names.Command.CONFIG);
} else if (args.length == 2) {
if (args[0].equalsIgnoreCase(Names.Command.LOAD)) {
return getListOfStringsFromIterableMatchingLastWord(args, getFilenames());
Expand Down Expand Up @@ -99,6 +100,9 @@ public void processCommand(ICommandSender commandSender, String[] args) {
} else if (args[0].equalsIgnoreCase(Names.Command.TAGLIST)) {
DelayedGuiDisplayTicker.create(new GuiTags(), 10);
return;
} else if (args[0].equalsIgnoreCase(Names.Command.CONFIG)) {
DelayedGuiDisplayTicker.create(new GuiModConfig(null), 0);
return;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public static final class Message {
public static final String ENABLE = "enable";
public static final String DISABLE = "disable";
public static final String TAGLIST = "taglist";
public static final String CONFIG = "config";
}

public static final class Config {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/ingameinfo/lang/de_DE.lang
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
# ingameinfoxml.tag.humidity.desc=Biome humidity.

# commands
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist> [Dateiname]
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist|config> [Dateiname]
commands.ingameinfoxml.reload=Lade neu...
commands.ingameinfoxml.load=%s wird geladen...
commands.ingameinfoxml.save=%s wird gespeichert...
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/ingameinfo/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ ingameinfoxml.tag.temperature.desc=Biome temperature.
ingameinfoxml.tag.humidity.desc=Biome humidity.

# commands
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist> [filename]
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist|config> [filename]
commands.ingameinfoxml.reload=Reloading...
commands.ingameinfoxml.load=Loading %s...
commands.ingameinfoxml.save=Saving %s...
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/ingameinfo/lang/fr_FR.lang
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ ingameinfoxml.config.bottomright=En bas à droite
# ingameinfoxml.tag.humidity.desc=Biome humidity.

# commands
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist> [nondufichier]
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist|config> [nondufichier]
commands.ingameinfoxml.reload=Rechargement...
commands.ingameinfoxml.load=Chargement de %s...
commands.ingameinfoxml.save=Sauvegarde de %s...
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/ingameinfo/lang/no_NO.lang
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ ingameinfoxml.tag.temperature.desc=Biometemperatur.
ingameinfoxml.tag.humidity.desc=Biomefuktighet.

# commands
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist> [filnavn]
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist|config> [filnavn]
commands.ingameinfoxml.reload=Laster inn på nytt...
commands.ingameinfoxml.load=Laster %s...
commands.ingameinfoxml.save=Lagrer %s...
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/ingameinfo/lang/ru_RU.lang
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
# ingameinfoxml.tag.humidity.desc=Biome humidity.

# commands
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist> [имя файла]
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist|config> [имя файла]
commands.ingameinfoxml.reload=Перегрузка...
commands.ingameinfoxml.load=Загрузка %s...
commands.ingameinfoxml.save=Сохранение %s...
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/ingameinfo/lang/zh_CN.lang
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ ingameinfoxml.tag.temperature.desc=生物群系温度.
ingameinfoxml.tag.humidity.desc=生物群系湿度.

# commands
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist> [文件名]
commands.ingameinfoxml.usage=/igi <reload|load|save|enable|disable|taglist|config> [文件名]
commands.ingameinfoxml.reload=重新加载中...
commands.ingameinfoxml.load=加载中%s...
commands.ingameinfoxml.save=保存中%s...
Expand Down

0 comments on commit 3410956

Please sign in to comment.