mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-15 00:36:50 +01:00
41 lines
No EOL
1.3 KiB
Text
41 lines
No EOL
1.3 KiB
Text
/// @description init
|
|
event_inherited();
|
|
|
|
#region data
|
|
dialog_w = ui(320);
|
|
|
|
destroy_on_click_out = true;
|
|
display_parameter = {};
|
|
#endregion
|
|
|
|
#region data
|
|
properties = [
|
|
[
|
|
new checkBox(function() { display_parameter.show_grid = !display_parameter.show_grid; }),
|
|
__txt("Grid"),
|
|
function() { return display_parameter.show_grid },
|
|
],
|
|
[
|
|
new checkBox(function() { display_parameter.show_dimension = !display_parameter.show_dimension; }),
|
|
__txtx("graph_visibility_dim", "Dimension"),
|
|
function() { return display_parameter.show_dimension },
|
|
],
|
|
[
|
|
new checkBox(function() { display_parameter.show_compute = !display_parameter.show_compute; }),
|
|
__txtx("graph_visibility_compute", "Compute time"),
|
|
function() { return display_parameter.show_compute },
|
|
],
|
|
[
|
|
new checkBox(function() { display_parameter.avoid_label = !display_parameter.avoid_label; }),
|
|
__txtx("graph_visibility_avoid_label", "Avoid Label"),
|
|
function() { return display_parameter.avoid_label },
|
|
],
|
|
[
|
|
new slider(50, 100, 1, function(val) { display_parameter.preview_scale = val; }),
|
|
__txtx("graph_visibility_preview_scale", "Preview Scale"),
|
|
function() { return display_parameter.preview_scale },
|
|
],
|
|
]
|
|
|
|
dialog_h = ui(60 + 40 * array_length(properties));
|
|
#endregion |