mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-12 23:37:10 +01:00
mac
This commit is contained in:
parent
06260c6f0f
commit
a5b530ad12
12 changed files with 35 additions and 31 deletions
|
@ -1644,6 +1644,7 @@
|
||||||
{"name":"paddingBox","order":7,"path":"scripts/paddingBox/paddingBox.yy",},
|
{"name":"paddingBox","order":7,"path":"scripts/paddingBox/paddingBox.yy",},
|
||||||
{"name":"fd_rectangle_set_visualization_shader","order":18,"path":"scripts/fd_rectangle_set_visualization_shader/fd_rectangle_set_visualization_shader.yy",},
|
{"name":"fd_rectangle_set_visualization_shader","order":18,"path":"scripts/fd_rectangle_set_visualization_shader/fd_rectangle_set_visualization_shader.yy",},
|
||||||
{"name":"s_biterator_bg","order":2,"path":"sprites/s_biterator_bg/s_biterator_bg.yy",},
|
{"name":"s_biterator_bg","order":2,"path":"sprites/s_biterator_bg/s_biterator_bg.yy",},
|
||||||
|
{"name":"macMinimize","order":2,"path":"extensions/macMinimize/macMinimize.yy",},
|
||||||
{"name":"s_node_ase_layer","order":14,"path":"sprites/s_node_ase_layer/s_node_ase_layer.yy",},
|
{"name":"s_node_ase_layer","order":14,"path":"sprites/s_node_ase_layer/s_node_ase_layer.yy",},
|
||||||
{"name":"directory_functions","order":9,"path":"scripts/directory_functions/directory_functions.yy",},
|
{"name":"directory_functions","order":9,"path":"scripts/directory_functions/directory_functions.yy",},
|
||||||
{"name":"_f_p1","order":1,"path":"fonts/_f_p1/_f_p1.yy",},
|
{"name":"_f_p1","order":1,"path":"fonts/_f_p1/_f_p1.yy",},
|
||||||
|
|
|
@ -2821,6 +2821,7 @@
|
||||||
{"id":{"name":"sh_mk_flag_mrt","path":"shaders/sh_mk_flag_mrt/sh_mk_flag_mrt.yy",},},
|
{"id":{"name":"sh_mk_flag_mrt","path":"shaders/sh_mk_flag_mrt/sh_mk_flag_mrt.yy",},},
|
||||||
{"id":{"name":"s_biterator_bg","path":"sprites/s_biterator_bg/s_biterator_bg.yy",},},
|
{"id":{"name":"s_biterator_bg","path":"sprites/s_biterator_bg/s_biterator_bg.yy",},},
|
||||||
{"id":{"name":"addonPanel","path":"scripts/addonPanel/addonPanel.yy",},},
|
{"id":{"name":"addonPanel","path":"scripts/addonPanel/addonPanel.yy",},},
|
||||||
|
{"id":{"name":"macMinimize","path":"extensions/macMinimize/macMinimize.yy",},},
|
||||||
{"id":{"name":"s_node_ase_layer","path":"sprites/s_node_ase_layer/s_node_ase_layer.yy",},},
|
{"id":{"name":"s_node_ase_layer","path":"sprites/s_node_ase_layer/s_node_ase_layer.yy",},},
|
||||||
{"id":{"name":"directory_functions","path":"scripts/directory_functions/directory_functions.yy",},},
|
{"id":{"name":"directory_functions","path":"scripts/directory_functions/directory_functions.yy",},},
|
||||||
{"id":{"name":"_f_p1","path":"fonts/_f_p1/_f_p1.yy",},},
|
{"id":{"name":"_f_p1","path":"fonts/_f_p1/_f_p1.yy",},},
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
globalvar VERSION, SAVE_VERSION, VERSION_STRING, BUILD_NUMBER, LATEST_VERSION;
|
globalvar VERSION, SAVE_VERSION, VERSION_STRING, BUILD_NUMBER, LATEST_VERSION;
|
||||||
|
|
||||||
LATEST_VERSION = 11500;
|
LATEST_VERSION = 11500;
|
||||||
VERSION = 11603;
|
VERSION = 11604;
|
||||||
SAVE_VERSION = 11600.1;
|
SAVE_VERSION = 11600.1;
|
||||||
VERSION_STRING = "1.16.0.3";
|
VERSION_STRING = "1.16.0.4";
|
||||||
BUILD_NUMBER = 11603;
|
BUILD_NUMBER = 11604;
|
||||||
|
|
||||||
globalvar APPEND_MAP;
|
globalvar APPEND_MAP;
|
||||||
APPEND_MAP = ds_map_create();
|
APPEND_MAP = ds_map_create();
|
||||||
|
|
|
@ -18,13 +18,15 @@ function mac_window_init() {
|
||||||
__win_drag_sw = 0;
|
__win_drag_sw = 0;
|
||||||
__win_drag_sh = 0;
|
__win_drag_sh = 0;
|
||||||
|
|
||||||
|
__win_to_dock = false;
|
||||||
|
|
||||||
__win_is_maximized = false;
|
__win_is_maximized = false;
|
||||||
__win_min_x = 0;
|
__win_min_x = 0;
|
||||||
__win_min_y = 0;
|
__win_min_y = 0;
|
||||||
__win_min_w = 0;
|
__win_min_w = 0;
|
||||||
__win_min_h = 0;
|
__win_min_h = 0;
|
||||||
|
|
||||||
ext_window_set_showborder(false);
|
_window_set_showborder(window_handle(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function mac_window_maximize() {
|
function mac_window_maximize() {
|
||||||
|
@ -56,3 +58,7 @@ function mac_window_minimize() {
|
||||||
winMan_setRect(__win_min_x, __win_min_y, __win_min_w, __win_min_h);
|
winMan_setRect(__win_min_x, __win_min_y, __win_min_w, __win_min_h);
|
||||||
display_refresh();
|
display_refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mac_window_dock() {
|
||||||
|
o_main.__win_to_dock = true;
|
||||||
|
}
|
|
@ -570,21 +570,14 @@ function Panel_Menu() : PanelContent() constructor {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "minimize":
|
case "minimize":
|
||||||
if(OS == os_windows) {
|
var b = buttonInstant(THEME.button_hide_fill, x1 - bs, ui(6), bs, bs, [mx, my], pFOCUS, pHOVER,, THEME.window_minimize, 0, [ COLORS._main_icon, CDEF.yellow ]);
|
||||||
var b = buttonInstant(THEME.button_hide_fill, x1 - bs, ui(6), bs, bs, [mx, my], pFOCUS, pHOVER,, THEME.window_minimize, 0, [ COLORS._main_icon, CDEF.yellow ]);
|
if(b) _draggable = false;
|
||||||
if(b) _draggable = false;
|
if(b == -2) {
|
||||||
if(b == -2) {
|
if(OS == os_windows)
|
||||||
if(OS == os_windows)
|
winMan_Minimize();
|
||||||
winMan_Minimize();
|
else if(OS == os_macosx)
|
||||||
else if(OS == os_macosx) {
|
mac_window_dock();
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//if(OS == os_macosx) {
|
|
||||||
// buttonInstant(THEME.button_hide, x1 - bs, ui(6), bs, bs, [mx, my], pFOCUS, pHOVER,, THEME.window_minimize, 0, [ COLORS._main_icon, COLORS._main_icon ]);
|
|
||||||
//}
|
|
||||||
break;
|
break;
|
||||||
case "fullscreen":
|
case "fullscreen":
|
||||||
var win_full = window_is_fullscreen;
|
var win_full = window_is_fullscreen;
|
||||||
|
|
|
@ -118,6 +118,17 @@ function winMan_setFullscreen(full) { #region
|
||||||
} #endregion
|
} #endregion
|
||||||
|
|
||||||
function winManStep() { #region
|
function winManStep() { #region
|
||||||
|
if(OS == os_macosx) {
|
||||||
|
if(__win_to_dock) {
|
||||||
|
_window_set_showborder(window_handle(), true);
|
||||||
|
mac_minimize_to_dock(window_handle());
|
||||||
|
__win_to_dock = false;
|
||||||
|
} else {
|
||||||
|
if(_window_get_showborder(window_handle()))
|
||||||
|
_window_set_showborder(window_handle(), false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(window_drag_status == 0) return;
|
if(window_drag_status == 0) return;
|
||||||
var _mx = window_drag_mx;
|
var _mx = window_drag_mx;
|
||||||
var _my = window_drag_my;
|
var _my = window_drag_my;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#extension GL_OES_standard_derivatives : enable
|
#extension GL_OES_standard_derivatives : enable
|
||||||
//
|
|
||||||
// Simple passthrough fragment shader
|
|
||||||
//
|
|
||||||
varying vec2 v_vTexcoord;
|
varying vec2 v_vTexcoord;
|
||||||
varying vec4 v_vColour;
|
varying vec4 v_vColour;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
//
|
|
||||||
// Simple passthrough vertex shader
|
|
||||||
//
|
|
||||||
attribute vec3 in_Position; // (x,y,z)
|
attribute vec3 in_Position; // (x,y,z)
|
||||||
//attribute vec3 in_Normal; // (x,y,z) unused in this shader.
|
//attribute vec3 in_Normal; // (x,y,z) unused in this shader.
|
||||||
attribute vec4 in_Colour; // (r,g,b,a)
|
attribute vec4 in_Colour; // (r,g,b,a)
|
||||||
|
|
|
@ -61,8 +61,7 @@ float perlin(in vec2 st) { #region
|
||||||
for(int i = 0; i < iteration; i++) {
|
for(int i = 0; i < iteration; i++) {
|
||||||
n += noise(pos, sc) * amp;
|
n += noise(pos, sc) * amp;
|
||||||
|
|
||||||
pos.x += random(vec2(float(i)), 0.574186) * sc;
|
pos += random2(vec2(float(i), float(i)), seed + 1.574186) * sc;
|
||||||
pos.y += random(vec2(float(i)), 0.821458) * sc;
|
|
||||||
|
|
||||||
sc *= 2.;
|
sc *= 2.;
|
||||||
amp *= .5;
|
amp *= .5;
|
||||||
|
|
|
@ -15,7 +15,7 @@ void main() {
|
||||||
vec4 zero = vec4(0.);
|
vec4 zero = vec4(0.);
|
||||||
vec3 baseCol = sampVal(texture2D( map, v_vTexcoord ));
|
vec3 baseCol = sampVal(texture2D( map, v_vTexcoord ));
|
||||||
|
|
||||||
if(ignore == 1 && baseCol == 0.) {
|
if(ignore == 1 && baseCol == vec3(0.)) {
|
||||||
gl_FragColor = vec4(0.);
|
gl_FragColor = vec4(0.);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ void main() {
|
||||||
vec2 pos = clamp(v_vTexcoord + vec2(i, j) / dimension, 0., 1.);
|
vec2 pos = clamp(v_vTexcoord + vec2(i, j) / dimension, 0., 1.);
|
||||||
vec3 samCl = sampVal(texture2D( map, pos ));
|
vec3 samCl = sampVal(texture2D( map, pos ));
|
||||||
|
|
||||||
if(ignore == 1 && samCl == 0.)
|
if(ignore == 1 && samCl == vec3(0.))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(distance(samCl, baseCol) <= threshold) {
|
if(distance(samCl, baseCol) <= threshold) {
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
//#extension GL_OES_standard_derivatives : require
|
|
||||||
|
|
||||||
varying vec2 v_vTexcoord;
|
varying vec2 v_vTexcoord;
|
||||||
varying vec4 v_vColour;
|
varying vec4 v_vColour;
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ void main() {
|
||||||
float _B = (A.x * py) + c1 - (A.y * px);
|
float _B = (A.x * py) + c1 - (A.y * px);
|
||||||
float _C = (B.x * py) + c2 - (B.y * px);
|
float _C = (B.x * py) + c2 - (B.y * px);
|
||||||
|
|
||||||
u = A == 0.? 0. : (-_B - sqrt(_B * _B - 4.0 * _A * _C)) / (_A * 2.0);
|
u = A == vec2(0.)? 0. : (-_B - sqrt(_B * _B - 4.0 * _A * _C)) / (_A * 2.0);
|
||||||
v = (u * A.x + B.x) == 0.? 0. : (px - (u * C.x) - D.x) / (u * A.x + B.x);
|
v = (u * A.x + B.x) == 0.? 0. : (px - (u * C.x) - D.x) / (u * A.x + B.x);
|
||||||
uv = vec2(1. - u, v);
|
uv = vec2(1. - u, v);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue