Skip to content

Commit

Permalink
Revert "Fix webtiles popups obscuring direction chooser (stoneychips,…
Browse files Browse the repository at this point in the history
… #11525)"

This broke xv.

This reverts commit f1e831c.
  • Loading branch information
aidanholm committed Jul 20, 2018
1 parent b0d9f32 commit a501810
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions crawl-ref/source/directn.cc
Expand Up @@ -2010,10 +2010,6 @@ void direction_chooser::finalize_moves()

bool direction_chooser::choose_direction()
{
#ifdef USE_TILE_WEB
tiles_ui_control ui(UI_HIDE_POPUPS);
#endif

if (restricts == DIR_DIR)
return choose_compass();

Expand Down
1 change: 0 additions & 1 deletion crawl-ref/source/tileweb.h
Expand Up @@ -30,7 +30,6 @@ enum WebtilesUIState
UI_NORMAL,
UI_CRT,
UI_VIEW_MAP,
UI_HIDE_POPUPS,
};

struct player_info
Expand Down
1 change: 0 additions & 1 deletion crawl-ref/source/webserver/game_data/static/enums.js
Expand Up @@ -13,7 +13,6 @@ define(function () {
exports.ui.NORMAL = 0;
exports.ui.CRT = 1;
exports.ui.VIEW_MAP = 2;
exports.ui.HIDE_POPUPS = 3;

// Mouse modes
val = 0;
Expand Down
2 changes: 1 addition & 1 deletion crawl-ref/source/webserver/game_data/static/game.js
Expand Up @@ -163,7 +163,7 @@ function ($, comm, client, dungeon_renderer, display, minimap, enums, messages,
break;
}
document.querySelector("#ui-stack").classList.toggle("hidden",
ui_state == enums.ui.VIEW_MAP || ui_state == enums.ui.HIDE_POPUPS);
ui_state == enums.ui.VIEW_MAP);
}

function handle_set_layout(data)
Expand Down

0 comments on commit a501810

Please sign in to comment.