Update data folder structure
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
@@ -1,19 +1,19 @@
|
||||
{
|
||||
"rp_bloom": false,
|
||||
"rp_gi": false,
|
||||
"rp_motionblur": false,
|
||||
"rp_shadowmap_cube": 0,
|
||||
"rp_shadowmap_cascade": 0,
|
||||
"rp_ssgi": true,
|
||||
"rp_ssr": false,
|
||||
"rp_supersample": 1.0,
|
||||
"window_h": 900,
|
||||
"window_maximizable": true,
|
||||
"window_minimizable": true,
|
||||
"window_mode": 0,
|
||||
"window_msaa": 1,
|
||||
"window_resizable": true,
|
||||
"window_scale": 1.0,
|
||||
"window_vsync": true,
|
||||
"window_w": 1600
|
||||
}
|
||||
{
|
||||
"rp_bloom": false,
|
||||
"rp_gi": false,
|
||||
"rp_motionblur": false,
|
||||
"rp_shadowmap_cube": 0,
|
||||
"rp_shadowmap_cascade": 0,
|
||||
"rp_ssgi": true,
|
||||
"rp_ssr": false,
|
||||
"rp_supersample": 1.0,
|
||||
"window_h": 900,
|
||||
"window_maximizable": true,
|
||||
"window_minimizable": true,
|
||||
"window_mode": 0,
|
||||
"window_msaa": 1,
|
||||
"window_resizable": true,
|
||||
"window_scale": 1.0,
|
||||
"window_vsync": true,
|
||||
"window_w": 1600
|
||||
}
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
@@ -1,26 +1,26 @@
|
||||
Copyright 2014-2015 Dario Manesku. All rights reserved.
|
||||
|
||||
https://github.com/dariomanesku/cmft
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||
SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
https://github.com/dariomanesku/cmft/blob/master/LICENSE
|
||||
Copyright 2014-2015 Dario Manesku. All rights reserved.
|
||||
|
||||
https://github.com/dariomanesku/cmft
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||
SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
https://github.com/dariomanesku/cmft/blob/master/LICENSE
|
||||
@@ -80,7 +80,7 @@ class App extends iron.Trait {
|
||||
});
|
||||
|
||||
iron.data.Data.getFont("font_default.ttf", function(f:kha.Font) {
|
||||
iron.data.Data.getBlob("theme_dark.arm", function(b:kha.Blob) {
|
||||
iron.data.Data.getBlob("themes/theme_dark.arm", function(b:kha.Blob) {
|
||||
iron.data.Data.getImage('color_wheel.png', function(image:kha.Image) {
|
||||
font = f;
|
||||
|
||||
|
||||
@@ -64,9 +64,9 @@ class UINodes extends iron.Trait {
|
||||
|
||||
// Cycles.arm_export_tangents = false;
|
||||
|
||||
iron.data.Data.getBlob('default_material.json', function(b1:kha.Blob) {
|
||||
iron.data.Data.getBlob('default_brush.json', function(b2:kha.Blob) {
|
||||
// iron.data.Data.getBlob('default_logic.json', function(b3:kha.Blob) {
|
||||
iron.data.Data.getBlob('defaults/default_material.json', function(b1:kha.Blob) {
|
||||
iron.data.Data.getBlob('defaults/default_brush.json', function(b2:kha.Blob) {
|
||||
// iron.data.Data.getBlob('defaults/default_logic.json', function(b3:kha.Blob) {
|
||||
// iron.data.Data.getBlob('logic_nodes.json', function(bnodes:kha.Blob) {
|
||||
|
||||
canvasBlob = b1.toString();
|
||||
|
||||
@@ -408,7 +408,7 @@ class UITrait extends iron.Trait {
|
||||
Plugin.keep();
|
||||
if (App.C.plugins != null) {
|
||||
for (plugin in App.C.plugins) {
|
||||
iron.data.Data.getBlob(plugin, function(blob:kha.Blob) {
|
||||
iron.data.Data.getBlob("plugins/" + plugin, function(blob:kha.Blob) {
|
||||
#if js
|
||||
untyped __js__("(1, eval)({0})", blob.toString());
|
||||
#end
|
||||
@@ -1784,7 +1784,7 @@ class UITrait extends iron.Trait {
|
||||
var themes = ["Dark", "Light"];
|
||||
ui.combo(themeHandle, themes, "Theme", true);
|
||||
if (themeHandle.changed) {
|
||||
iron.data.Data.getBlob("theme_" + themes[themeHandle.position].toLowerCase() + ".arm", function(b:kha.Blob) {
|
||||
iron.data.Data.getBlob("themes/theme_" + themes[themeHandle.position].toLowerCase() + ".arm", function(b:kha.Blob) {
|
||||
arm.App.parseTheme(b);
|
||||
ui.t = arm.App.theme;
|
||||
// UINodes.inst.applyTheme();
|
||||
|
||||
@@ -9,7 +9,12 @@ project.addShaders("compiled/Shaders/*.glsl", { noembed: false});
|
||||
project.addShaders("compiled/Hlsl/*.glsl", { noprocessing: true, noembed: false });
|
||||
project.addAssets("compiled/Assets/**", { notinlist: true , destination: "data/{name}" });
|
||||
project.addAssets("compiled/Shaders/*.arm", { notinlist: true , destination: "data/{name}" });
|
||||
project.addAssets("Bundled/**", { notinlist: true , destination: "data/{name}" });
|
||||
project.addAssets("Bundled/data/**", { notinlist: true , destination: "data/{name}" });
|
||||
project.addAssets("Bundled/defaults/**", { notinlist: true , destination: "data/defaults/{name}" });
|
||||
project.addAssets("Bundled/licenses/**", { notinlist: true , destination: "data/licenses/{name}" });
|
||||
project.addAssets("Bundled/plugins/**", { notinlist: true , destination: "data/plugins/{name}" });
|
||||
project.addAssets("Bundled/themes/**", { notinlist: true , destination: "data/themes/{name}" });
|
||||
project.addAssets("Bundled/readme.txt", { notinlist: true , destination: "{name}" });
|
||||
project.addAssets("Libraries/armory/Assets/brdf.png", { notinlist: true , destination: "data/{name}" });
|
||||
project.addAssets("Libraries/armory/Assets/noise256.png", { notinlist: true , destination: "data/{name}" });
|
||||
project.addAssets("Libraries/armory/Assets/smaa_area.png", { notinlist: true , destination: "data/{name}" });
|
||||
@@ -49,4 +54,14 @@ project.addDefine('arm_data_dir');
|
||||
project.addParameter('--macro include("arm.brushnode")');
|
||||
project.addParameter('-dce full');
|
||||
|
||||
if (platform === Platform.Windows) {
|
||||
project.addAssets("Bundled/cmft/cmft.exe", { notinlist: true , destination: "data/{name}" });
|
||||
}
|
||||
else if (platform === Platform.Linux) {
|
||||
project.addAssets("Bundled/cmft/cmft-linux64", { notinlist: true , destination: "data/{name}" });
|
||||
}
|
||||
else if (platform === Platform.OSX) {
|
||||
project.addAssets("Bundled/cmft/cmft-osx", { notinlist: true , destination: "data/{name}" });
|
||||
}
|
||||
|
||||
resolve(project);
|
||||
|
||||