mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
ui: Add tips of the day
This commit is contained in:
@@ -4,6 +4,21 @@ namespace hex::plugin::builtin {
|
||||
|
||||
void registerSettings() {
|
||||
|
||||
/* General */
|
||||
|
||||
ContentRegistry::Settings::add("hex.builtin.setting.general", "hex.builtin.setting.general.show_tips", 1, [](auto name, nlohmann::json &setting) {
|
||||
static bool enabled = setting.is_number() ? static_cast<int>(setting) : 1;
|
||||
|
||||
if (ImGui::Checkbox(name.data(), &enabled)) {
|
||||
setting = static_cast<int>(enabled);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
/* Interface */
|
||||
|
||||
ContentRegistry::Settings::add("hex.builtin.setting.interface", "hex.builtin.setting.interface.color", 0, [](auto name, nlohmann::json &setting) {
|
||||
static int selection = setting.is_number() ? static_cast<int>(setting) : 0;
|
||||
|
||||
|
||||
@@ -49,12 +49,14 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.welcome.learn.plugins.desc", "Erweitere ImHex mit neuen Funktionen mit Plugins" },
|
||||
{ "hex.welcome.learn.plugins.link", "https://github.com/WerWolv/ImHex/wiki/Plugins-Development-Guide" },
|
||||
{ "hex.welcome.header.various", "Verschiedenes" },
|
||||
{ "hex.welcome.tip_of_the_day", "Tipp des Tages" },
|
||||
|
||||
{ "hex.safety_backup.title", "Verlorene Daten wiederherstellen" },
|
||||
{ "hex.safety_backup.desc", "Oh nein, ImHex ist letztes mal abgestürtzt.\nWillst du das verherige Projekt wiederherstellen?"},
|
||||
{ "hex.safety_backup.restore", "Ja, Wiederherstellen" },
|
||||
{ "hex.safety_backup.delete", "Nein, Entfernen" },
|
||||
|
||||
|
||||
{ "hex.common.little_endian", "Little Endian" },
|
||||
{ "hex.common.big_endian", "Big Endian" },
|
||||
{ "hex.common.decimal", "Dezimal" },
|
||||
@@ -72,6 +74,8 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.common.load", "Laden" },
|
||||
{ "hex.common.cancel", "Abbrechen" },
|
||||
{ "hex.common.set", "Setzen" },
|
||||
{ "hex.common.close", "Schliessen" },
|
||||
{ "hex.common.dont_show_again", "Nicht mehr anzeigen" },
|
||||
|
||||
{ "hex.view.bookmarks.name", "Lesezeichen" },
|
||||
{ "hex.view.bookmarks.default_title", "Lesezeichen [0x{0:X} - 0x{1:X}]" },
|
||||
@@ -535,6 +539,8 @@ namespace hex::plugin::builtin {
|
||||
|
||||
{ "hex.builtin.setting.imhex", "ImHex" },
|
||||
{ "hex.builtin.setting.imhex.recent_files", "Kürzlich geöffnete Dateien" },
|
||||
{ "hex.builtin.setting.general", "Allgemein" },
|
||||
{ "hex.builtin.setting.general.show_tips", "Tipps beim start anzeigen" },
|
||||
{ "hex.builtin.setting.interface", "Aussehen" },
|
||||
{ "hex.builtin.setting.interface.color", "Farbthema" },
|
||||
{ "hex.builtin.setting.interface.color.dark", "Dunkel" },
|
||||
|
||||
@@ -49,6 +49,7 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.welcome.learn.plugins.desc", "Extend ImHex with additional features using plugins" },
|
||||
{ "hex.welcome.learn.plugins.link", "https://github.com/WerWolv/ImHex/wiki/Plugins-Development-Guide" },
|
||||
{ "hex.welcome.header.various", "Various" },
|
||||
{ "hex.welcome.tip_of_the_day", "Tip of the Day" },
|
||||
|
||||
{ "hex.safety_backup.title", "Restore lost data" },
|
||||
{ "hex.safety_backup.desc", "Oh no, ImHex crashed last time.\nDo you want to restore your past work?"},
|
||||
@@ -73,6 +74,8 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.common.load", "Load" },
|
||||
{ "hex.common.cancel", "Cancel" },
|
||||
{ "hex.common.set", "Set" },
|
||||
{ "hex.common.close", "Close" },
|
||||
{ "hex.common.dont_show_again", "Don't show again" },
|
||||
|
||||
{ "hex.view.bookmarks.name", "Bookmarks" },
|
||||
{ "hex.view.bookmarks.default_title", "Bookmark [0x{0:X} - 0x{1:X}]" },
|
||||
@@ -536,6 +539,8 @@ namespace hex::plugin::builtin {
|
||||
|
||||
{ "hex.builtin.setting.imhex", "ImHex" },
|
||||
{ "hex.builtin.setting.imhex.recent_files", "Recent Files" },
|
||||
{ "hex.builtin.setting.general", "General" },
|
||||
{ "hex.builtin.setting.general.show_tips", "Show tips on startup" },
|
||||
{ "hex.builtin.setting.interface", "Interface" },
|
||||
{ "hex.builtin.setting.interface.color", "Color theme" },
|
||||
{ "hex.builtin.setting.interface.color.dark", "Dark" },
|
||||
|
||||
@@ -49,6 +49,7 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.welcome.learn.plugins.desc", "Espandi l'utilizzo di ImHex con i Plugin" },
|
||||
{ "hex.welcome.learn.plugins.link", "https://github.com/WerWolv/ImHex/wiki/Plugins-Development-Guide" },
|
||||
{ "hex.welcome.header.various", "Varie" },
|
||||
//{ "hex.welcome.tip_of_the_day", "Tip of the Day" },
|
||||
|
||||
//{ "hex.safety_backup.title", "Restore lost data" },
|
||||
//{ "hex.safety_backup.desc", "Oh no, ImHex crashed last time.\nDo you want to restore your past work?"},
|
||||
@@ -72,6 +73,8 @@ namespace hex::plugin::builtin {
|
||||
{ "hex.common.load", "Carica" },
|
||||
{ "hex.common.cancel", "Cancella" },
|
||||
{ "hex.common.set", "Imposta" },
|
||||
//{ "hex.common.close", "Close" },
|
||||
//{ "hex.common.dont_show_again", "Don't show again" },
|
||||
|
||||
{ "hex.view.bookmarks.name", "Segnalibri" },
|
||||
{ "hex.view.bookmarks.default_title", "Segnalibro [0x{0:X} - 0x{1:X}]" },
|
||||
@@ -535,6 +538,8 @@ namespace hex::plugin::builtin {
|
||||
|
||||
{ "hex.builtin.setting.imhex", "ImHex" },
|
||||
{ "hex.builtin.setting.imhex.recent_files", "File recenti" },
|
||||
//{ "hex.builtin.setting.general", "General" },
|
||||
//{ "hex.builtin.setting.general.show_tips", "Show tips on startup" },
|
||||
{ "hex.builtin.setting.interface", "Interfaccia" },
|
||||
{ "hex.builtin.setting.interface.color", "Colore del Tema" },
|
||||
{ "hex.builtin.setting.interface.color.dark", "Scuro" },
|
||||
|
||||
Reference in New Issue
Block a user