diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-05-23 15:03:55 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:08:56 +0100 |
commit | c7a7a9376cb661dd14887e2f9d3889674b37cac9 (patch) | |
tree | 69857538ab997235894842138bee363ffd60400a | |
parent | ace58ffddf8edaeb7f2cd73fc655e0475a720f25 (diff) | |
download | julius-caesar-c7a7a9376cb661dd14887e2f9d3889674b37cac9.tar.gz |
Add 'shift zoom' for blocks.
-rw-r--r-- | play.html | 5 | ||||
-rw-r--r-- | ui.js | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -137,6 +137,11 @@ display: none; } +body.shift .block.known:hover { + transform: scale(2) !important; + transition: 100ms; +} + .map .block { position: absolute; z-index: 2; } .map .block.highlight { z-index: 3; } .map .block.selected { z-index: 4; } @@ -775,5 +775,6 @@ document.querySelector(".battle").classList.add(label_style+'-labels'); drag_element_with_mouse(".battle", ".battle_header"); scroll_with_middle_mouse(".grid_center"); - +init_map_zoom(); +init_shift_zoom(); init_client([ "Caesar", "Pompeius" ]); |