├── images └── screenshot.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── settings.gradle ├── .gitignore ├── editor ├── src │ └── main │ │ ├── resources │ │ └── acmi │ │ │ └── l2 │ │ │ └── clientmod │ │ │ └── xdat │ │ │ ├── l2.css │ │ │ ├── nodeicons │ │ │ ├── Label.png │ │ │ ├── Button.png │ │ │ ├── Canvas.png │ │ │ ├── Graphic.png │ │ │ ├── TabPane.png │ │ │ ├── WebView.png │ │ │ ├── Button@2x.png │ │ │ ├── Canvas@2x.png │ │ │ ├── CheckBox.png │ │ │ ├── ComboBox.png │ │ │ ├── Graphic@2x.png │ │ │ ├── GridPane.png │ │ │ ├── HTMLEditor.png │ │ │ ├── Label@2x.png │ │ │ ├── ListView.png │ │ │ ├── ScrollPane.png │ │ │ ├── Slider-h.png │ │ │ ├── TabPane@2x.png │ │ │ ├── TextField.png │ │ │ ├── TitledPane.png │ │ │ ├── TreeView.png │ │ │ ├── WebView@2x.png │ │ │ ├── CheckBox@2x.png │ │ │ ├── ComboBox@2x.png │ │ │ ├── GridPane@2x.png │ │ │ ├── ListView@2x.png │ │ │ ├── MissingIcon.png │ │ │ ├── ProgressBar.png │ │ │ ├── RadioButton.png │ │ │ ├── Slider-h@2x.png │ │ │ ├── TextField@2x.png │ │ │ ├── ToggleButton.png │ │ │ ├── TreeView@2x.png │ │ │ ├── HTMLEditor@2x.png │ │ │ ├── MissingIcon@2x.png │ │ │ ├── ProgressBar@2x.png │ │ │ ├── RadioButton@2x.png │ │ │ ├── ScrollPane@2x.png │ │ │ ├── TitledPane@2x.png │ │ │ └── ToggleButton@2x.png │ │ │ ├── scripting │ │ │ ├── script.template │ │ │ └── main.fxml │ │ │ ├── interface.properties │ │ │ ├── interface_ru.properties │ │ │ └── main.fxml │ │ └── java │ │ ├── acmi │ │ └── l2 │ │ │ └── clientmod │ │ │ └── xdat │ │ │ ├── propertyeditor │ │ │ ├── PropertySheetItem.java │ │ │ ├── BooleanPropertyEditor.java │ │ │ ├── SysstringPropertyEditor.java │ │ │ ├── BeanProperty.java │ │ │ ├── TexturePropertyEditor.java │ │ │ ├── FieldProperty.java │ │ │ └── PropertySheetSkin.java │ │ │ ├── Dialogs.java │ │ │ ├── History.java │ │ │ ├── scripting │ │ │ └── Controller.java │ │ │ ├── XdatEditor.java │ │ │ └── Controller.java │ │ └── org │ │ └── controlsfx │ │ └── property │ │ └── editor │ │ └── NumericField.java └── build.gradle ├── .gitmodules ├── README.md ├── LICENSE ├── gradlew.bat └── gradlew /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/images/screenshot.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'xdat_editor' 2 | 3 | include 'commons:io', 'commons:l2resources', 'editor', 'schema' -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Intellij Idea 2 | .idea/ 3 | *.iml 4 | 5 | # Gradle 6 | .gradle/ 7 | build/ 8 | 9 | # Mac 10 | .DS_Store -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/l2.css: -------------------------------------------------------------------------------- 1 | .root{ 2 | -fx-font-family: 'Tahoma'; 3 | -fx-font-size: 9pt; 4 | -fx-text-fill: #dcdcdc 5 | } -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Label.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Label.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Button.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Canvas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Canvas.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Graphic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Graphic.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TabPane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TabPane.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/WebView.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/WebView.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Button@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Button@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Canvas@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Canvas@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/CheckBox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/CheckBox.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ComboBox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ComboBox.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Graphic@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Graphic@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/GridPane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/GridPane.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/HTMLEditor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/HTMLEditor.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Label@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Label@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ListView.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ListView.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ScrollPane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ScrollPane.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Slider-h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Slider-h.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TabPane@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TabPane@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TextField.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TextField.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TitledPane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TitledPane.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TreeView.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TreeView.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/WebView@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/WebView@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/CheckBox@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/CheckBox@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ComboBox@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ComboBox@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/GridPane@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/GridPane@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ListView@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ListView@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/MissingIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/MissingIcon.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ProgressBar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ProgressBar.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/RadioButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/RadioButton.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Slider-h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/Slider-h@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TextField@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TextField@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ToggleButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ToggleButton.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TreeView@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TreeView@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/HTMLEditor@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/HTMLEditor@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/MissingIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/MissingIcon@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ProgressBar@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ProgressBar@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/RadioButton@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/RadioButton@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ScrollPane@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ScrollPane@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TitledPane@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/TitledPane@2x.png -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ToggleButton@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acmi/xdat_editor/HEAD/editor/src/main/resources/acmi/l2/clientmod/xdat/nodeicons/ToggleButton@2x.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "commons"] 2 | path = commons 3 | url = https://github.com/acmi/xdat_editor_commons.git 4 | [submodule "schema"] 5 | path = schema 6 | url = https://github.com/acmi/xdat_editor_schema.git 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip 6 | -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/scripting/script.template: -------------------------------------------------------------------------------- 1 | import $pckg.* 2 | import javafx.scene.paint.Color 3 | import acmi.l2.clientmod.util.ScriptMethods 4 | 5 | import static javafx.scene.paint.Color.* 6 | 7 | Object.class.mixin(ScriptMethods) 8 | ArrayList.class.mixin(ScriptMethods) 9 | 10 | $text -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | XdatEditor 2 | ========== 3 | 4 | An open source interface.xdat editor. 5 | 6 | ![XdatEditor Screenshot](images/screenshot.png) 7 | 8 | Clone & Build 9 | ------------- 10 | ``` 11 | git clone https://github.com/acmi/xdat_editor.git 12 | cd xdat_editor 13 | git submodule init 14 | git submodule update 15 | gradlew build -x test 16 | ``` 17 | 18 | Run 19 | --- 20 | `gradlew run` 21 | 22 | Requirements 23 | ------------ 24 | 25 | Java 8u40 or later is required. -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/interface.properties: -------------------------------------------------------------------------------- 1 | about=About 2 | update.check=Check for update 3 | exit=Exit 4 | file=File 5 | file.open=Open 6 | file.save=Save 7 | file.save_as=Save as .. 8 | help=Help 9 | help.open_source_licenses=Open source licenses 10 | version=_Version 11 | update.required=Update required 12 | homepage.go_to=Go to homepage? 13 | update.failed=Update failed 14 | update.available=Update available 15 | update=Update 16 | update.latest=You are using the latest version. -------------------------------------------------------------------------------- /editor/src/main/java/acmi/l2/clientmod/xdat/propertyeditor/PropertySheetItem.java: -------------------------------------------------------------------------------- 1 | package acmi.l2.clientmod.xdat.propertyeditor; 2 | 3 | import javafx.beans.value.ObservableValue; 4 | import org.controlsfx.control.PropertySheet; 5 | 6 | public abstract class PropertySheetItem implements ObservableValue, PropertySheet.Item { 7 | private Object object; 8 | 9 | public Object getObject() { 10 | return object; 11 | } 12 | 13 | public void setObject(Object object) { 14 | this.object = object; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /editor/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'application' 3 | 4 | mainClassName = 'acmi.l2.clientmod.xdat.XdatEditor' 5 | 6 | dependencies { 7 | compile project(':commons:io') 8 | compile project(':commons:l2resources') 9 | compile group: 'org.controlsfx', name: 'controlsfx', version: '8.40.11' 10 | compile group: 'org.codehaus.groovy', name: 'groovy', version: "2.4.7" 11 | compile group: 'org.apache.commons', name: 'commons-csv', version: '1.2' 12 | runtime project(':schema') 13 | } 14 | 15 | jar { 16 | manifest { 17 | attributes 'Version': parent.version, 18 | 'Main-Class': mainClassName, 19 | 'Class-Path': configurations.runtime.collect { it.name }.join(' ') 20 | } 21 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 acmi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/interface_ru.properties: -------------------------------------------------------------------------------- 1 | about=\u041E \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0435 2 | update.check=\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F 3 | exit=\u0412\u044B\u0445\u043E\u0434 4 | file=\u0424\u0430\u0439\u043B 5 | file.open=\u041E\u0442\u043A\u0440\u044B\u0442\u044C 6 | file.save=\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C 7 | file.save_as=\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u0430\u043A .. 8 | help=\u041F\u043E\u043C\u043E\u0449\u044C 9 | help.open_source_licenses=\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u041f\u041e 10 | version=\u0412\u0435\u0440\u0441\u0438\u044F 11 | update.required=\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 12 | homepage.go_to=\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0434\u043E\u043C\u0430\u0448\u043D\u044E\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443? 13 | update.failed=\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C 14 | update.available=\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 15 | update=\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 16 | update.latest=\u0412\u044B \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0435 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044E\u044E \u0432\u0435\u0440\u0441\u0438\u044E. -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /editor/src/main/java/acmi/l2/clientmod/xdat/propertyeditor/BooleanPropertyEditor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 acmi 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy 5 | * of this software and associated documentation files (the "Software"), to deal 6 | * in the Software without restriction, including without limitation the rights 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | * copies of the Software, and to permit persons to whom the Software is 9 | * furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | * THE SOFTWARE. 21 | */ 22 | package acmi.l2.clientmod.xdat.propertyeditor; 23 | 24 | import javafx.beans.binding.Bindings; 25 | import javafx.beans.property.ObjectProperty; 26 | import javafx.beans.property.SimpleObjectProperty; 27 | import javafx.beans.value.ObservableValue; 28 | import javafx.scene.control.CheckBox; 29 | import org.controlsfx.control.PropertySheet; 30 | import org.controlsfx.property.editor.AbstractPropertyEditor; 31 | 32 | public class BooleanPropertyEditor extends AbstractPropertyEditor { 33 | private ObjectProperty value; 34 | 35 | public BooleanPropertyEditor(PropertySheet.Item property) { 36 | super(property, createCheckBox()); 37 | } 38 | 39 | private static CheckBox createCheckBox() { 40 | CheckBox checkBox = new CheckBox(); 41 | checkBox.setAllowIndeterminate(true); 42 | return checkBox; 43 | } 44 | 45 | @Override 46 | protected ObservableValue getObservableValue() { 47 | if (value == null) { 48 | value = new SimpleObjectProperty<>(); 49 | value.bind(Bindings.createObjectBinding(() -> getEditor().isIndeterminate() ? null : getEditor().isSelected(), 50 | getEditor().indeterminateProperty(), getEditor().selectedProperty())); 51 | } 52 | return value; 53 | } 54 | 55 | @Override 56 | public void setValue(Boolean value) { 57 | if (value == null) 58 | getEditor().setIndeterminate(true); 59 | else { 60 | getEditor().setIndeterminate(false); 61 | getEditor().setSelected(value); 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /editor/src/main/java/acmi/l2/clientmod/xdat/Dialogs.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 acmi 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy 5 | * of this software and associated documentation files (the "Software"), to deal 6 | * in the Software without restriction, including without limitation the rights 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | * copies of the Software, and to permit persons to whom the Software is 9 | * furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | * THE SOFTWARE. 21 | */ 22 | package acmi.l2.clientmod.xdat; 23 | 24 | import javafx.application.Platform; 25 | import javafx.scene.control.Alert; 26 | import javafx.scene.control.Label; 27 | import javafx.scene.control.TextArea; 28 | import javafx.scene.layout.GridPane; 29 | import javafx.scene.layout.Priority; 30 | 31 | import java.io.PrintWriter; 32 | import java.io.StringWriter; 33 | 34 | public class Dialogs { 35 | private static final boolean SHOW_STACKTRACE = System.getProperty("xdat_editor.showStackTrace", "false").equalsIgnoreCase("true"); 36 | 37 | public static void showException(Alert.AlertType alertType, String title, String text, Throwable ex) { 38 | Platform.runLater(() -> { 39 | Alert alert = new Alert(alertType); 40 | alert.setTitle(title); 41 | alert.setHeaderText(null); 42 | alert.setContentText(text); 43 | if (SHOW_STACKTRACE && ex != null) { 44 | StringWriter sw = new StringWriter(); 45 | PrintWriter pw = new PrintWriter(sw); 46 | ex.printStackTrace(pw); 47 | String exceptionText = sw.toString(); 48 | 49 | Label label = new Label("Exception stacktrace:"); 50 | 51 | TextArea textArea = new TextArea(exceptionText); 52 | textArea.setEditable(false); 53 | textArea.setWrapText(true); 54 | 55 | textArea.setMaxWidth(Double.MAX_VALUE); 56 | textArea.setMaxHeight(Double.MAX_VALUE); 57 | GridPane.setVgrow(textArea, Priority.ALWAYS); 58 | GridPane.setHgrow(textArea, Priority.ALWAYS); 59 | 60 | GridPane expContent = new GridPane(); 61 | expContent.setMaxWidth(Double.MAX_VALUE); 62 | expContent.add(label, 0, 0); 63 | expContent.add(textArea, 0, 1); 64 | 65 | alert.getDialogPane().setExpandableContent(expContent); 66 | } 67 | alert.showAndWait(); 68 | }); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /editor/src/main/resources/acmi/l2/clientmod/xdat/scripting/main.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 35 | 36 |