1.9
This commit is contained in:
parent
fc7c94bd69
commit
2cc2f003df
71 changed files with 3359 additions and 1027 deletions
|
|
@ -320,7 +320,7 @@ function renderToolPalette() {
|
|||
if (!def || def.simulationOnly || toolId === "observe") continue;
|
||||
const btn = document.createElement("button");
|
||||
btn.className = "tool";
|
||||
const hasPhysicsIcon = category.id === "physics" && attachPhysicsToolIcon(btn, toolId);
|
||||
const hasPhysicsIcon = attachPhysicsToolIcon(btn, toolId);
|
||||
const hasTextIcon = !hasPhysicsIcon && applyToolTextIcon(btn, def, toolId);
|
||||
if (!hasPhysicsIcon && !hasTextIcon) applyToolImageIcon(btn, def);
|
||||
btn.dataset.tool = toolId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue