Archived Legacy DynamicHUD
  • Dynamic HUD
  • Import using Gradle
  • Widgets
    • Adding Widgets
      • TextWidget
      • ItemWidget
      • ArmorWidget
    • Creating your own Widget class
    • Widget class
    • WidgetManager
    • WidgetBox
  • Saving and Loading
    • Saving and Loading
    • Changing save file name and directory
  • Moveable Screen
    • AbstractMoveableScreen
    • Default Moveable Screen
    • Using the default Moveable Screen
    • Creating and using your own MoveableScreen class
  • ContextMenu
    • ContextMenu class
    • ContextMenuOptionsProvider interface
    • DoubleInputScreen
    • DataInputScreen
  • Slider Widget
    • Slider
  • SliderWidgetBuilder
  • ColorPicker
    • ColorGradientPicker
      • ColorPickerButton
      • GradientBox
      • GradientSlider
  • Helpers
    • ColorHelper
    • DrawHelper
    • TextureHelper
Powered by GitBook
On this page
  1. Saving and Loading

Changing save file name and directory

This page tells you about changing the save and load file name and directory

To change the file name of your save and load file, use this method in your main class

String filename;
File filedirectory;
DynamicHUD.setFilename(filename);
DynamicHUD.setFileDirectory(filedirectory);

The default file name is widgets.nbt and file directory is

FabricLoader.getInstance().getConfigDir().toFile()
PreviousSaving and LoadingNextAbstractMoveableScreen