src/jwm_draw_framing/draw_framing_main_v0.56.rb
# Reset the tool back to its initial state
Reset the tool back to its initial state
Reset the tool back to its initial state
def reset(view)
		@state = 0
		txt = "Select first corner of timber to draw "
		Sketchup::set_status_text(txt, SB_PROMPT)
		@ip1.clear
		@ip2.clear
		@ip.clear
		if( view )
			view.tooltip = nil
			view.invalidate if @drawn
		end
		@drawn = false
		@dragging = false
	end
def reset ( view ) @state = 0 txt = "Select first corner of timber to draw " Sketchup :: set_status_text ( txt , SB_PROMPT ) @ip1 . clear @ip2 . clear @ip . clear if ( view ) view . tooltip = nil view . invalidate if @drawn end @drawn = false @dragging = false end
Reset the tool back to its initial state
Reset the tool back to its initial state
# This variable keeps track of which point we are currently getting # Display a prompt on the status bar # if @opts['mode'] == 1#@draw_cpoints # txt << "off." # else # txt << "on." # end ##txt << "TAB = stipple." # clear the InputPoints
view
<not_specific>