=begin
Copyright 2013, Chris Fullmer
All Rights Reserved

Disclaimer
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

License
This software is distributed under the Smustard End User License Agreement
http://www.smustard.com/eula

Information
Author - Chris Fullmer
Organization - www.ChrisFullmer.com and distributed on the SketchUp Extension Warehouse
Name - Random Painter
SU Version - 2013, 8, 7

Description
This script will take the selection and paint it random colors that the user inputs

Usage
Select the items to be painted.  Run the script from the Plugins>Chris Fullmer Tools> Menu.  
Then type in RGB values (0-255).  When done inputing colors, just click ok without entering any colors. 
Then it will randomly apply the colors to all faces.  It does not apply colors to edges.

History
0.1:: 2009-02-07
   * First release
1.1 No WxSU:: 2009-03-21
   * This is not really a new release.  Its gone backwards in its features.  It does not support WxSU for people who are having problems with WxSU.
1.2.0 - 2013-05-20
  * EW Compatible
=end


module CLF_Extensions_NS

  module CLF_Random_Painter

    require 'sketchup.rb'
    require 'extensions.rb'
    
    NAME = "clf_random_painter"
    UNAME = "CLF Random Painter"
    MENU_NAME = "Random Painter"
    version = "1.2.0"
    desc = "This plugin will randomly paint selected faces, based on user input RGB values."
    copy_year = "2013"
    author = "Chris Fullmer"
    
#------edit above--------------------------------------------------------------- 

    
    extension = SketchupExtension.new UNAME, NAME+"/"+NAME+"_menus.rb"

    #The name= method sets the name which appears for an extension inside the Extensions Manager dialog.
    extension.name = UNAME

    # The description= method sets the long description which appears beneath an extension inside the Extensions Manager dialog.
    extension.description = desc + "  Access it via Plugins > Chris Fullmer Tools > "+MENU_NAME

    # The version method sets the version which appears beneath an extension inside the Extensions Manager dialog.
    extension.version = version

    # Create an entry in the Extension list that loads a script called
    # stairTools.rb.
    extension.copyright = copy_year
     
    # The creator= method sets the creator string which appears beneath an extension inside the Extensions Manager dialog.
    extension.creator = author

    # The register_extension method is used to register an extension with SketchUp's extension manager (in SketchUp preferences).
    Sketchup.register_extension( extension, true )
    
  end
  
end 