Lines Matching refs:num
85 def def_puzzleswitch_proc(w, num)
86 proc{puzzleSwitch w, num}
93 num = order[i]
94 $xpos[num] = (i % 4) * 0.25
95 $ypos[num] = (i / 4) * 0.25
98 text num
100 command def_puzzleswitch_proc(w, num)
104 }.place('relx'=>$xpos[num], 'rely'=>$ypos[num],
116 def puzzleSwitch(w, num)
117 if ( ($ypos[num] >= ($ypos['space'] - 0.01)) \
118 && ($ypos[num] <= ($ypos['space'] + 0.01)) \
119 && ($xpos[num] >= ($xpos['space'] - 0.26)) \
120 && ($xpos[num] <= ($xpos['space'] + 0.26))) \
121 || (($xpos[num] >= ($xpos['space'] - 0.01)) \
122 && ($xpos[num] <= ($xpos['space'] + 0.01)) \
123 && ($ypos[num] >= ($ypos['space'] - 0.26)) \
124 && ($ypos[num] <= ($ypos['space'] + 0.26)))
126 $xpos['space'] = $xpos[num]
127 $xpos[num] = tmp
129 $ypos['space'] = $ypos[num]
130 $ypos[num] = tmp
131 w.place('relx'=>$xpos[num], 'rely'=>$ypos[num])