Skip to content

Commit

Permalink
fix server dialog, add close btn
Browse files Browse the repository at this point in the history
  • Loading branch information
sharrlotte committed Feb 25, 2025
1 parent f013d93 commit 37409a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ description:
• [#00bfff[]] Website: [white[]]https://mindustry-tool.com[[]]
• [#ff6347[]] Discord: [white[]]https://discord.gg/AKQDvDED7y[[]]
'''
version: v1.9.3
version: v1.9.4

minGameVersion: 140

Expand Down
6 changes: 3 additions & 3 deletions run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cls
set "TARGET_FILE=C:\Users\hau\AppData\Roaming\Mindustry\mods\mindustryvnmindustrytoolmod.zip"
set "BUILD_TOOL=./gradlew jar"
set "JAR_PATH=C:\Codes\MindustryTool\MindustryToolMod\build\libs\MindustryToolModDesktop.jar"
set "DEST_FOLDER=C:\Users\hau\AppData\Roaming\Mindustry\mods"
set "DEST_FOLDER=C:\Users\nguyen\AppData\Roaming\Mindustry\mods"
set "APP_TO_RUN=C:\Games\mindustry-windows-64-bit\Mindustry.exe"

:: Remove specific file if it exists
Expand All @@ -27,8 +27,8 @@ if not exist "%JAR_PATH%" (
)

:: Copy JAR to destination folder
echo Copying JAR to %DEST_FOLDER%...
xcopy /Y "%JAR_PATH%" "%DEST_FOLDER%"
echo Copying %JAR_PATH% to %DEST_FOLDER%...
copy "%JAR_PATH%" "%DEST_FOLDER%" /y

:: Run the specified application
echo Running %APP_TO_RUN%...
Expand Down
5 changes: 5 additions & 0 deletions src/mindytool/gui/ServerDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ private void ServerBrowser() {
try {
addCloseButton();
row();
table(searchBar -> {
searchBar.button("@back", Icon.leftSmall, this::hide)//
.width(150).padLeft(2).padRight(2).left();
}).left();
row();
ServerContainer();
row();
Footer();
Expand Down

0 comments on commit 37409a5

Please sign in to comment.