band-aid for #137 replace logic so it fits the new sticky-note code
This commit is contained in:
parent
aa6e1b0e51
commit
ecc1d4af9c
|
|
@ -149,13 +149,17 @@ func pick(id: int):
|
||||||
options.remove_at(id)
|
options.remove_at(id)
|
||||||
anim_players.remove_at(id)
|
anim_players.remove_at(id)
|
||||||
|
|
||||||
var sibling_id = -1
|
var parent_id = -1
|
||||||
if selection_state == POSTS_SELECTED:
|
if selection_state == POSTS_SELECTED:
|
||||||
sibling_id = options.find(output.back().sibling)
|
parent_id = options.find(output[-1].parent_id)
|
||||||
options.remove_at(sibling_id)
|
var i:int = 0
|
||||||
anim_players[sibling_id].play("unshuffle")
|
for option:StickyNote in options:
|
||||||
anim_players.remove_at(sibling_id)
|
if option.parent_id == parent_id:
|
||||||
print("yeet sibling ", sibling_id)
|
options.erase(options)
|
||||||
|
anim_players[i].play("unshuffle")
|
||||||
|
anim_players.remove_at(i)
|
||||||
|
print("yeet sibling ", i)
|
||||||
|
i += 1
|
||||||
|
|
||||||
var winning_id
|
var winning_id
|
||||||
print(options[1].text)
|
print(options[1].text)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue