Made GuiDraggingNumberInput fully functional

Linked GuiObjectManager to new Keybinding
Renamed RoundUtils#round to RoundUtils#round2Decimals for easier understanding
This commit is contained in:
CrushedPixel
2015-07-08 12:13:23 +02:00
parent 54f35eca03
commit e26e09a264
7 changed files with 76 additions and 19 deletions

View File

@@ -23,6 +23,7 @@ public class KeybindRegistry {
public static final String KEY_ADD_MARKER = "replaymod.input.marker";
public static final String KEY_PATH_PREVIEW = "replaymod.input.pathpreview";
public static final String KEY_ASSET_MANAGER = "replaymod.input.assetmanager";
public static final String KEY_OBJECT_MANAGER = "replaymod.input.objectmanager";
private static Minecraft mc = Minecraft.getMinecraft();
public static void initialize() {
@@ -41,6 +42,7 @@ public class KeybindRegistry {
bindings.add(new KeyBinding(KEY_PLAY_PAUSE, Keyboard.KEY_P, "replaymod.title"));
bindings.add(new KeyBinding(KEY_PATH_PREVIEW, Keyboard.KEY_H, "replaymod.title"));
bindings.add(new KeyBinding(KEY_ASSET_MANAGER, Keyboard.KEY_G, "replaymod.title"));
bindings.add(new KeyBinding(KEY_OBJECT_MANAGER, Keyboard.KEY_F, "replaymod.title"));
mc.gameSettings.keyBindings = bindings.toArray(new KeyBinding[bindings.size()]);