Method: SkippyLib::Resource.icon_path
- Defined in:
- modules/resource.rb
.icon_path(path) ⇒ String
Provide the path to a bitmap icon, which will be used for older SketchUp versions that doesn't support vector formats.
For versions that do support vector formats it will return the path with the file extension that is compatible with the running OS.
If the vector variant doesn't exist the original path will be returned.
24 25 26 27 28 29 |
# File 'modules/resource.rb', line 24 def self.icon_path(path) return path unless Sketchup.version.to_i > 15 vector_icon = self.vector_path(path) File.exist?(vector_icon) ? vector_icon : path end |