2023-01-25 06:49:00 +01:00
|
|
|
/// @description init
|
|
|
|
event_inherited();
|
|
|
|
|
|
|
|
#region data
|
2023-08-16 20:16:31 +02:00
|
|
|
dialog_w = ui(320);
|
2023-01-25 06:49:00 +01:00
|
|
|
|
|
|
|
destroy_on_click_out = true;
|
2023-08-16 20:16:31 +02:00
|
|
|
display_parameter = {};
|
2023-01-25 06:49:00 +01:00
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region data
|
2023-08-16 20:16:31 +02:00
|
|
|
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 },
|
|
|
|
],
|
|
|
|
]
|
2023-01-25 06:49:00 +01:00
|
|
|
|
2023-08-16 20:16:31 +02:00
|
|
|
dialog_h = ui(60 + 40 * array_length(properties));
|
2023-01-25 06:49:00 +01:00
|
|
|
#endregion
|