mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-16 05:14:06 +00:00
in bool dialog items, display help text as mouseover
This commit is contained in:
parent
1cc90a6f76
commit
82a7077019
@ -517,6 +517,7 @@ void int_parameter::show_edit_option(int key) {
|
|||||||
|
|
||||||
void bool_parameter::show_edit_option(int key) {
|
void bool_parameter::show_edit_option(int key) {
|
||||||
dialog::addBoolItem(XLAT(menu_item_name), *value, key);
|
dialog::addBoolItem(XLAT(menu_item_name), *value, key);
|
||||||
|
if(is_highlight(dialog::items.back()) && help_text != menu_item_name) mouseovers = XLAT(help_text);
|
||||||
dialog::add_action([this] () {
|
dialog::add_action([this] () {
|
||||||
if(use_bool_dialog || hiliteclick) {
|
if(use_bool_dialog || hiliteclick) {
|
||||||
auto& bd = dialog::editBool(*value, dft, XLAT(menu_item_name), XLAT(help_text), switcher);
|
auto& bd = dialog::editBool(*value, dft, XLAT(menu_item_name), XLAT(help_text), switcher);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user