mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 07:30:26 +00:00
improved the hide_hud feature
This commit is contained in:
parent
ee7a9722a9
commit
dde8b900d7
@ -9,6 +9,8 @@ namespace svg {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
bool hide_hud = true;
|
||||||
|
|
||||||
#if ISMOBILE==0
|
#if ISMOBILE==0
|
||||||
// svg renderer
|
// svg renderer
|
||||||
namespace svg {
|
namespace svg {
|
||||||
@ -310,6 +312,8 @@ void take(string fname, const function<void()>& what) {
|
|||||||
dynamicval<videopar> v(vid, vid);
|
dynamicval<videopar> v(vid, vid);
|
||||||
dynamicval<bool> v2(inHighQual, true);
|
dynamicval<bool> v2(inHighQual, true);
|
||||||
dynamicval<bool> v6(auraNOGL, true);
|
dynamicval<bool> v6(auraNOGL, true);
|
||||||
|
dynamicval<bool> vn(nohud, nohud || hide_hud);
|
||||||
|
|
||||||
vid.smart_range_detail *= multiplier;
|
vid.smart_range_detail *= multiplier;
|
||||||
darken = 0;
|
darken = 0;
|
||||||
|
|
||||||
@ -414,8 +418,11 @@ void menu() {
|
|||||||
dialog::addSelItem(XLAT("brightness"), fts(fade), 'b');
|
dialog::addSelItem(XLAT("brightness"), fts(fade), 'b');
|
||||||
dialog::add_action([] { dialog::editNumber(fade, 0, 2, .1, 1, XLAT("brightness"), "higher value = lighter"); });
|
dialog::add_action([] { dialog::editNumber(fade, 0, 2, .1, 1, XLAT("brightness"), "higher value = lighter"); });
|
||||||
|
|
||||||
dialog::addBoolItem(XLAT("show the HUD"), nohud, 'h');
|
dialog::addBoolItem(XLAT("disable the HUD"), hide_hud, 'h');
|
||||||
dialog::add_action([] { nohud = !nohud; });
|
dialog::add_action([] { hide_hud = !hide_hud; });
|
||||||
|
|
||||||
|
dialog::addBoolItem(XLAT("hide the player"), !mapeditor::drawplayer, 'p');
|
||||||
|
dialog::add_action([] { mapeditor::drawplayer = !mapeditor::drawplayer; });
|
||||||
|
|
||||||
dialog::addItem(XLAT("customize colors and aura"), 'c');
|
dialog::addItem(XLAT("customize colors and aura"), 'c');
|
||||||
dialog::add_action([] { pushScreen(show_color_dialog); });
|
dialog::add_action([] { pushScreen(show_color_dialog); });
|
||||||
|
Loading…
Reference in New Issue
Block a user