thomthom / bezier-surface

Bezier Surface Editor for SketchUp
https://extensions.sketchup.com/en/content/bezier-surface
MIT License
10 stars 1 forks source link

Implement ProxyCommand API #36

Open thomthom opened 11 years ago

thomthom commented 11 years ago

Original report by me.


So that proxy commands that mimics native functions like, Move, Rotate and Scale etc can be mapped to the same function.

#!ruby

cmd = UI::Command.new( 'Move' ) { @editor.select_tool( MoveTool.new ) }
proxy = TT::ProxyCommand.register( :movetool, cmd ) {
  @editor.active?
}