Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions-bot committed Sep 9, 2024
1 parent b47fd09 commit 4c7c4df
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 128 deletions.
2 changes: 1 addition & 1 deletion GameData/Satisfactory.json

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GameData/SatisfactoryIcons/Resource/Power.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 7 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,26 +180,21 @@ <h2 class="title">Select a recipe <span class="game-version"></span></h2>
</div>
<div class="property" id="selected-recipe-input">
<div class="title">Input per min</div>
<div class="resource">
<img class="icon" alt="" />
<p class="amount"></p>
</div>
</div>
<div class="property" id="selected-recipe-output">
<div class="title">Output per min</div>
<div class="resource">
<img class="icon" alt="" />
<p class="amount"></p>
</div>
<div class="resource">
<img class="icon" alt="" />
<p class="amount"></p>
</div>
</div>
<div class="property" id="selected-recipe-power">
<div class="title">Power</div>
<div class="text"></div>
</div>
<div class="property" id="selected-recipe-produced-power">
<div class="title">Output (MW)</div>
<div class="resource power">
<img class="icon" alt="" src="GameData/SatisfactoryIcons/Resource/Power.png" />
<p class="amount"></p>
</div>
</div>
<div class="button dimmed" id="discard-recipe">Discard</div>
<div class="button" id="confirm-recipe">Create node</div>
</div>
Expand Down
117 changes: 4 additions & 113 deletions script.js

Large diffs are not rendered by default.

41 changes: 39 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ svg#canvas {
fill: #8BAADA;
}

.node rect.output-slot.power {
fill: #ffce53;
}

.node rect.input-slot.missing {
fill: var(--missing);
}
Expand All @@ -244,7 +248,7 @@ svg#canvas {
.node rect.machine:hover,
.node rect.machine.selected,
.node rect.input-slot:not(.missing):hover,
.node rect.output-slot:not(.exceeding):hover,
.node rect.output-slot:not(.exceeding):not(.power):hover,
.node rect.input-slot.selected:not(.missing),
.node rect.output-slot.selected:not(.exceeding) {
filter: brightness(110%);
Expand Down Expand Up @@ -321,10 +325,18 @@ svg#canvas {
height: 16px;
}

.node .recipe-container .property.power .resource img.icon {
margin: 0 -4px;
}

.node .recipe-container .property .resource p.amount {
margin: 0;
}

.node .recipe-container .property.power .resource p.amount {
padding-top: 1px;
}

/* Recipe display near slots */

.slots-group foreignObject.resources-display {
Expand Down Expand Up @@ -754,6 +766,7 @@ div#node-creation-modal .title span.game-version {

#node-creation-modal div.recipe {
display: flex;
flex-direction: column;

position: relative;

Expand All @@ -765,14 +778,30 @@ div#node-creation-modal .title span.game-version {
width: 64px;

padding: 8px;
gap: 4px;
gap: 2px;

border-radius: 0px;

transition-property: border-radius, border-color;
transition-duration: 0.2s;
}

#node-creation-modal .recipe div.ingredient-icons {
display: flex;

height: 12px;

gap: 1px;
}

#node-creation-modal .recipe div.product-icons {
display: flex;

height: 34px;

gap: 2px;
}

#node-creation-modal .recipe div.progress-bar {
position: absolute;

Expand Down Expand Up @@ -894,11 +923,19 @@ div#node-creation-modal .title span.game-version {
margin: 0;
}

#node-creation-modal #selected-recipe .property .resource.power p.amount {
padding-top: 2px;
}

#node-creation-modal #selected-recipe .property .machine img.icon {
width: 40px;
height: 40px;
}

#node-creation-modal #selected-recipe .property .resource.power img.icon {
margin: 0 -8px;
}

/* Node creation modal's confirmation button */

#node-creation-modal div.button {
Expand Down

0 comments on commit 4c7c4df

Please sign in to comment.