Skip to content

Add file 'number' to dialog titles #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/step01.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.show_dialog
<p><button onclick="sketchup.poke('Thom', 3)">Poke</button></p>
EOT
options = {
:dialog_title => "Material",
:dialog_title => "01 Material",
:preferences_key => "example.htmldialog.materialinspector",
:style => UI::HtmlDialog::STYLE_DIALOG # New feature!
}
Expand Down
2 changes: 1 addition & 1 deletion src/step02.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def self.create_dialog
<p><button onclick="sketchup.poke('Thom', 3)">Poke</button></p>
EOT
options = {
:dialog_title => "Material",
:dialog_title => "02 Material",
:preferences_key => "example.htmldialog.materialinspector",
:style => UI::HtmlDialog::STYLE_DIALOG
}
Expand Down
2 changes: 1 addition & 1 deletion src/step03.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/step04.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/step05.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/step06.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/step07.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down