Skip to content

Commit

Permalink
List; clean up old multi select code
Browse files Browse the repository at this point in the history
  • Loading branch information
ruby0x1 committed Jul 26, 2015
1 parent 39d043b commit 58c8360
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mint/List.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ import mint.core.Macros.*;

typedef ListOptions = {
> ControlOptions,
? multiselect: Bool
}

class List extends Control {

public var view : Scroll;
public var items : Array<Control>;
public var multiselect : Bool = false;
public var options : ListOptions;

public var onselect : Signal<Int->Control->MouseEvent->Void>;
Expand All @@ -37,10 +35,6 @@ class List extends Control {
onitemleave = new Signal();
onitementer = new Signal();

if(options.multiselect != null) {
multiselect = options.multiselect;
}

view = new Scroll({
parent : this,
x: 0, y: 0, w: w, h: h,
Expand All @@ -49,18 +43,12 @@ class List extends Control {
internal_visible: options.visible
});

view.onmousedown.listen(click_deselect);

renderer = rendering.get(List, this);

oncreate.emit();

} //new

function click_deselect(e:MouseEvent, ctrl) {

}

public function add_item( item:Control, offset_x:Float = 0.0, offset_y:Float = 0.0 ) {

var _childbounds = view.container.children_bounds;
Expand Down

0 comments on commit 58c8360

Please sign in to comment.