_parent = -4; _label = ""; _value = -1; _flag = -1; _input_enabled = false; _confirm_buffer = 0; _cancel_buffer = 0; _scroll_buffer = 0; _scroll_h_enabled = false; _heart_enabled = false; _highlight_enabled = false; _text_color = 16777215; _offset_x = 0; _offset_y = 0; _enabled = true; _options = []; _options_index = 0; _arrow_left_offset = 0; _arrow_right_offset = 0; _arrow_left_color = 65535; _arrow_right_color = 65535; init = function(arg0, arg1, arg2 = [], arg3 = -1, arg4 = 0, arg5 = 0) { _parent = arg0; _label = arg1; _options = arg2; _flag = arg3; _offset_x = arg4; _offset_y = arg5; if (_flag > 0) _options_index = scr_flag_get(_flag); }; enable_input = function() { _input_enabled = true; }; disable_input = function() { _input_enabled = false; }; confirm = function(arg0 = []) { if (!_input_enabled) exit; _parent.trigger_event("confirm", [_options_index]); }; cancel = function(arg0 = []) { if (!_input_enabled) exit; _parent.trigger_event("cancel", [_options_index]); }; reset_buffer = function() { _confirm_buffer = 3; _cancel_buffer = 3; _scroll_buffer = 6; }; enable_select = function() { _heart_enabled = true; _text_color = 16777215; reset_buffer(); }; disable_select = function() { _heart_enabled = false; disable_input(); }; highlight = function() { _highlight_enabled = true; _text_color = 65535; }; unhighlight = function() { _highlight_enabled = false; _text_color = 16777215; _scroll_h_enabled = false; }; enable_h_scroll = function() { _scroll_h_enabled = true; }; disable_h_scroll = function() { _scroll_h_enabled = false; }; scroll_h_enabled = function() { return _scroll_h_enabled; }; can_scroll = function() { return array_length(_options) > 0; }; clean_up = function() { instance_destroy(); };