Pixel-Composer/objects/o_dialog_graph_connection/Create_0.gml

30 lines
791 B
Plaintext
Raw Normal View History

2023-03-05 07:16:44 +01:00
/// @description init
event_inherited();
#region data
2023-07-30 19:56:53 +02:00
dialog_w = ui(400);
dialog_h = ui(220);
2023-03-05 07:16:44 +01:00
destroy_on_click_out = true;
#endregion
#region data
2023-07-30 13:56:22 +02:00
bs_type = new buttonGroup([ THEME.icon_curve_connection, THEME.icon_curve_connection, THEME.icon_curve_connection, THEME.icon_curve_connection ],
2023-03-05 07:16:44 +01:00
function(val) {
PREF_MAP[? "curve_connection_line"] = val;
}
);
tb_width = new textBox(TEXTBOX_INPUT.number, function(str) {
PREF_MAP[? "connection_line_width"] = max(0.5, real(str));
})
tb_corner = new textBox(TEXTBOX_INPUT.number, function(str) {
PREF_MAP[? "connection_line_corner"] = max(0, real(str));
})
tb_corner.slidable = true;
2023-07-30 19:56:53 +02:00
tb_aa = new textBox(TEXTBOX_INPUT.number, function(str) {
PREF_MAP[? "connection_line_aa"] = max(1, real(str));
})
2023-03-05 07:16:44 +01:00
#endregion