TechnicJelle / BlueMapGUI

A GUI wrapper around the BlueMap CLI, mainly to make using BlueMap easier to use on single player worlds.
4 stars 0 forks source link

Multi-project support #8

Closed TechnicJelle closed 2 weeks ago

TechnicJelle commented 2 months ago

In SharedPrefs, store list of projects.

{
  "path": "/home/technicjelle/bmgui-projs/my-cool-world/",
  "mc-version": "auto",
  "mods": "/home/technicjelle/.minecraft/mods/"
  "advanced-configs": [
    "core.conf",
    "maps/my-fancy-overworld.conf"
  ]
}
Similar to IntelliJ. ![image](https://github.com/user-attachments/assets/2cf13f5c-9d5f-4782-b9d3-228b01a8177d) ![image](https://github.com/user-attachments/assets/32a421e4-08cd-457c-8182-953dd8e9f591)

On startup, show all projects. Button to start new one.

You can close the project to go back to the projects screen.

If only one project exists, always open that one. You can start a new project from the projects screen.

This should also make it so you can easily have multiple projects open at the same time.

TechnicJelle commented 2 months ago

Drew up some designs for the main menu: image image

TechnicJelle commented 1 month ago

These proposed options should go in the project directory itself. I think I'll use a json file for it... I'd like to use a HOCON file, just like BlueMap's own configs, but there's just no (good) HOCON library for Dart.

The only thing we need to store in the SharedPrefs is a list of directories. Maybe I'll add a way to name projects separately from their folder names at some point. But maybe also not. I kind of like that the folder name is the thing that actually calls the shots.

TechnicJelle commented 2 weeks ago

Added the multi-project support in many commits: https://github.com/TechnicJelle/BlueMapGUI/compare/4b5af2911e3e31106d7531ef3a1b22493d79d252...0c22346335fdb8d7cec6df8a05cf5d2abdc17ef4

The project settings will be moved to a new issue and tracked there. #29