This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to 2024.7-beta.1: Add local commands module, update Minecraft …
…module and fix german translation
- Loading branch information
1 parent
3283015
commit 1c17dd0
Showing
29 changed files
with
331 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...main/java/com/zyneonstudios/application/modules/localcommands/LocalCommandsConnector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.zyneonstudios.application.modules.localcommands; | ||
|
||
import com.zyneonstudios.application.frame.web.ApplicationFrame; | ||
import com.zyneonstudios.application.main.ApplicationConfig; | ||
import com.zyneonstudios.application.modules.ModuleConnector; | ||
|
||
public class LocalCommandsConnector extends ModuleConnector { | ||
|
||
private final LocalCommandsModule module; | ||
private final ApplicationFrame frame; | ||
|
||
public LocalCommandsConnector(LocalCommandsModule module) { | ||
super(module); | ||
this.module = module; | ||
this.frame = (ApplicationFrame)module.getApplication().getFrame(); | ||
} | ||
|
||
@Override | ||
public void resolveFrameRequest(String request) { | ||
if(request.equals("init.library")) { | ||
frame.executeJavaScript("addModuleToList(\""+module.getName()+"\",\""+module.getId()+"\",\""+"\")"); | ||
} else if(request.equals("sync.library.module.nexus-local-commands")) { | ||
frame.executeJavaScript("document.getElementById(\"select-game-module\").value = \""+module.getId()+"\"; addAction(\"Add command\",\"bx bx-plus\",\"connector('lc.library.action.add.command');\",'lc-action-add-command'); addAction(\"Refresh commands\",\"bx bx-refresh\",\"connector('lc.library.action.refresh.commands');\",'lc-action-refresh-commands'); addGroup(\"Commands\",\"lc-group-commands\");"); | ||
} else if(request.equals("lc.library.action.add.command")) { | ||
frame.executeJavaScript("enableOverlay(\""+ApplicationConfig.urlBase+ApplicationConfig.language+"/lc-create-command.html\");"); | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...rc/main/java/com/zyneonstudios/application/modules/localcommands/LocalCommandsModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.zyneonstudios.application.modules.localcommands; | ||
|
||
import com.zyneonstudios.application.main.NexusApplication; | ||
import com.zyneonstudios.application.modules.ApplicationModule; | ||
import com.zyneonstudios.application.modules.ModuleConnector; | ||
|
||
public class LocalCommandsModule extends ApplicationModule { | ||
|
||
private final LocalCommandsConnector connector; | ||
|
||
public LocalCommandsModule(NexusApplication application) { | ||
super(application, "nexus-local-commands", "Local Commands", "2024.6", "nerotvlive"); | ||
connector = new LocalCommandsConnector(this); | ||
} | ||
|
||
@Override | ||
public ModuleConnector getConnector() { | ||
return connector; | ||
} | ||
|
||
@Override | ||
public void onLoad() { | ||
super.onLoad(); | ||
} | ||
|
||
@Override | ||
public void onEnable() { | ||
super.onEnable(); | ||
} | ||
|
||
@Override | ||
public void onDisable() { | ||
super.onDisable(); | ||
} | ||
} |
44 changes: 0 additions & 44 deletions
44
application-main/src/main/java/com/zyneonstudios/application/modules/test/TestConnector.java
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
application-main/src/main/java/com/zyneonstudios/application/modules/test/TestModule.java
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
application-ui/content/assets/application/css/lc-create-command.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body { | ||
background: var(--background); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="de"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Lokales Kommando erstellen</title> | ||
<link rel="stylesheet" href="../assets/cronos/css/app-base.css"> | ||
<link rel="stylesheet" id="css-colors" href="../assets/cronos/css/app-colors-dark.css"> | ||
<link rel="stylesheet" id="css-card" href="../assets/cronos/css/app-cards.css"> | ||
<link rel="stylesheet" id="css-shared" href="../assets/application/css/app-shared.css"> | ||
<link rel="stylesheet" id="css-page" href="../assets/application/css/lc-create-command.css"> | ||
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'> | ||
<script src="../assets/cronos/javascript/app-base.js"></script> | ||
<script src="../assets/application/javascript/app-shared.js"></script> | ||
<script src="../assets/application/javascript/lc-create-command.js"></script> | ||
<style>body {overflow: hidden !important;}</style> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.