mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 10:35:52 +08:00
Hint hypertext preferences highlight
This commit is contained in:
parent
f23a0298ed
commit
4c8e13947c
@ -34,8 +34,9 @@
|
|||||||
#
|
#
|
||||||
# Open preferences (might add item to highlight)
|
# Open preferences (might add item to highlight)
|
||||||
# hypertext_type = preferences
|
# hypertext_type = preferences
|
||||||
# hypertext_preferences_page = 0 (values 0-2 according to prefernces tab to be opened)
|
# hypertext_preferences_page = 2 (values 0-2 according to prefernces tab to be opened)
|
||||||
#
|
# hypertext_preferences_item = show_collapse_button (name of variable saved in prusaslicer.ini connected to the setting in preferences)
|
||||||
|
#
|
||||||
# Open gallery (no aditional var)
|
# Open gallery (no aditional var)
|
||||||
# hypertext_type = gallery
|
# hypertext_type = gallery
|
||||||
#
|
#
|
||||||
@ -97,6 +98,7 @@ documentation_link = https://help.prusa3d.com/en/article/reload-from-disk_120427
|
|||||||
text = Hiding sidebar\nDid you know that you can hide the right sidebar using the shortcut <b>Shift+Tab</b>? You can also enable the icon for this from the<a>Preferences.</a>
|
text = Hiding sidebar\nDid you know that you can hide the right sidebar using the shortcut <b>Shift+Tab</b>? You can also enable the icon for this from the<a>Preferences.</a>
|
||||||
hypertext_type = preferences
|
hypertext_type = preferences
|
||||||
hypertext_preferences_page = 2
|
hypertext_preferences_page = 2
|
||||||
|
hypertext_preferences_item = show_collapse_button
|
||||||
|
|
||||||
[hint:Perspective camera]
|
[hint:Perspective camera]
|
||||||
text = Perspective camera\nDid you know that you can use the <b>K</b> key to quickly switch between an orthographic and perspective camera?
|
text = Perspective camera\nDid you know that you can use the <b>K</b> key to quickly switch between an orthographic and perspective camera?
|
||||||
@ -213,6 +215,7 @@ disabled_tags = SLA
|
|||||||
text = Settings in non-modal window\nDid you know that you can open the Settings in a new non-modal window? This means you can have settings open on one screen and the G-code Preview on the other. Go to the<a>Preferences</a>and select Settings in non-modal window.
|
text = Settings in non-modal window\nDid you know that you can open the Settings in a new non-modal window? This means you can have settings open on one screen and the G-code Preview on the other. Go to the<a>Preferences</a>and select Settings in non-modal window.
|
||||||
hypertext_type = preferences
|
hypertext_type = preferences
|
||||||
hypertext_preferences_page = 2
|
hypertext_preferences_page = 2
|
||||||
|
hypertext_preferences_item = dlg_settings_layout_mode
|
||||||
|
|
||||||
[hint:Adaptive infills]
|
[hint:Adaptive infills]
|
||||||
text = Adaptive infills\nDid you know that you can use the Adaptive cubic and Support cubic infills to decrease the print time and lower the filament consumption? Read more in the documentation.
|
text = Adaptive infills\nDid you know that you can use the Adaptive cubic and Support cubic infills to decrease the print time and lower the filament consumption? Read more in the documentation.
|
||||||
|
@ -413,9 +413,9 @@ void HintDatabase::load_hints_from_file(const boost::filesystem::path& path)
|
|||||||
// open preferences
|
// open preferences
|
||||||
} else if(dict["hypertext_type"] == "preferences") {
|
} else if(dict["hypertext_type"] == "preferences") {
|
||||||
int page = static_cast<Preset::Type>(std::atoi(dict["hypertext_preferences_page"].c_str()));
|
int page = static_cast<Preset::Type>(std::atoi(dict["hypertext_preferences_page"].c_str()));
|
||||||
HintData hint_data{ id_string, text1, weight, was_displayed, hypertext_text, follow_text, disabled_tags, enabled_tags, false, documentation_link, [page]() { wxGetApp().open_preferences(page); } };
|
std::string item = dict["hypertext_preferences_item"];
|
||||||
|
HintData hint_data{ id_string, text1, weight, was_displayed, hypertext_text, follow_text, disabled_tags, enabled_tags, false, documentation_link, [page, item]() { wxGetApp().open_preferences(page, item); } };
|
||||||
m_loaded_hints.emplace_back(hint_data);
|
m_loaded_hints.emplace_back(hint_data);
|
||||||
|
|
||||||
} else if (dict["hypertext_type"] == "plater") {
|
} else if (dict["hypertext_type"] == "plater") {
|
||||||
std::string item = dict["hypertext_plater_item"];
|
std::string item = dict["hypertext_plater_item"];
|
||||||
HintData hint_data{ id_string, text1, weight, was_displayed, hypertext_text, follow_text, disabled_tags, enabled_tags, true, documentation_link, [item]() { wxGetApp().plater()->canvas3D()->highlight_toolbar_item(item); } };
|
HintData hint_data{ id_string, text1, weight, was_displayed, hypertext_text, follow_text, disabled_tags, enabled_tags, true, documentation_link, [item]() { wxGetApp().plater()->canvas3D()->highlight_toolbar_item(item); } };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user