Przeglądaj źródła

Move building buttons into a list

tags/v0.0.3
Fen Dweller 6 lat temu
rodzic
commit
808ed444e4
3 zmienionych plików z 8 dodań i 1 usunięć
  1. +6
    -0
      gorge.css
  2. +1
    -0
      gorge.html
  3. +1
    -1
      gorge.js

+ 6
- 0
gorge.css Wyświetl plik

@@ -75,6 +75,9 @@ button {
height: 90%; height: 90%;
max-height: 80vh; max-height: 80vh;
padding-bottom: 10px; padding-bottom: 10px;
}

#buildings-list {
overflow-x: hidden; overflow-x: hidden;
overflow-y: scroll; overflow-y: scroll;
} }
@@ -88,6 +91,9 @@ button {
max-height: 40vh; max-height: 40vh;
} }


#buildings-list {
max-height: 40vh;
}
} }


#building-tooltip { #building-tooltip {


+ 1
- 0
gorge.html Wyświetl plik

@@ -52,6 +52,7 @@
<div id="building-tooltip-cost"></div> <div id="building-tooltip-cost"></div>
<div id="building-tooltip-prod"></div> <div id="building-tooltip-prod"></div>
</div> </div>
<div id="buildings-list"></div>
</div> </div>


</body> </body>

+ 1
- 1
gorge.js Wyświetl plik

@@ -379,7 +379,7 @@ function createButtons() {
} }


function createBuildings() { function createBuildings() {
let container = document.querySelector("#buildings-area");
let container = document.querySelector("#buildings-list");


for (const [key, value] of Object.entries(buildings)) { for (const [key, value] of Object.entries(buildings)) {
let button = document.createElement("div"); let button = document.createElement("div");


Ładowanie…
Anuluj
Zapisz