From 62c096a981ad1ee1086130cedd1cb77536d74df8 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Mon, 17 Jul 2023 08:35:26 -0500 Subject: [PATCH] Add file 'number' to dialog titles --- src/step01.rb | 2 +- src/step02.rb | 2 +- src/step03.rb | 2 +- src/step04.rb | 2 +- src/step05.rb | 2 +- src/step06.rb | 2 +- src/step07.rb | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/step01.rb b/src/step01.rb index bf687c7..e2a459f 100644 --- a/src/step01.rb +++ b/src/step01.rb @@ -11,7 +11,7 @@ def self.show_dialog

EOT options = { - :dialog_title => "Material", + :dialog_title => "01 Material", :preferences_key => "example.htmldialog.materialinspector", :style => UI::HtmlDialog::STYLE_DIALOG # New feature! } diff --git a/src/step02.rb b/src/step02.rb index 57f8301..da6b29b 100644 --- a/src/step02.rb +++ b/src/step02.rb @@ -15,7 +15,7 @@ def self.create_dialog

EOT options = { - :dialog_title => "Material", + :dialog_title => "02 Material", :preferences_key => "example.htmldialog.materialinspector", :style => UI::HtmlDialog::STYLE_DIALOG } diff --git a/src/step03.rb b/src/step03.rb index 258db30..223300e 100644 --- a/src/step03.rb +++ b/src/step03.rb @@ -6,7 +6,7 @@ module Step03 def self.create_dialog options = { - :dialog_title => "Material", + :dialog_title => "03 Material", :preferences_key => "example.htmldialog.materialinspector", :style => UI::HtmlDialog::STYLE_DIALOG } diff --git a/src/step04.rb b/src/step04.rb index 736332a..05adacd 100644 --- a/src/step04.rb +++ b/src/step04.rb @@ -8,7 +8,7 @@ module Step04 def self.create_dialog html_file = File.join(__dir__, 'html', 'step04.html') # Use external HTML options = { - :dialog_title => "Material", + :dialog_title => "04 Material", :preferences_key => "example.htmldialog.materialinspector", :style => UI::HtmlDialog::STYLE_DIALOG } diff --git a/src/step05.rb b/src/step05.rb index 3eaace9..1fd7af7 100644 --- a/src/step05.rb +++ b/src/step05.rb @@ -11,7 +11,7 @@ module Step05 def self.create_dialog html_file = File.join(__dir__, 'html', 'step05.html') options = { - :dialog_title => "Material", + :dialog_title => "05 Material", :preferences_key => "example.htmldialog.materialinspector", :style => UI::HtmlDialog::STYLE_DIALOG } diff --git a/src/step06.rb b/src/step06.rb index 562ee8a..9af5b71 100644 --- a/src/step06.rb +++ b/src/step06.rb @@ -10,7 +10,7 @@ module Step06 def self.create_dialog html_file = File.join(__dir__, 'html', 'step06.html') options = { - :dialog_title => "Material", + :dialog_title => "06 Material", :preferences_key => "example.htmldialog.materialinspector", :style => UI::HtmlDialog::STYLE_DIALOG } diff --git a/src/step07.rb b/src/step07.rb index 6c7a03c..764d79a 100644 --- a/src/step07.rb +++ b/src/step07.rb @@ -18,7 +18,7 @@ def self.create_dialog height += 40 end options = { - :dialog_title => "Material", + :dialog_title => "07 Material", :preferences_key => "com.sketchup.example.htmldialog.materialinspector", :style => UI::HtmlDialog::STYLE_DIALOG, # Set a fixed size now that we know the content size.