Skip to content

Commit

Permalink
merge: new inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-moskal committed Sep 12, 2024
2 parents e3e71eb + 3b55808 commit a2c2149
Show file tree
Hide file tree
Showing 20 changed files with 576 additions and 301 deletions.
2 changes: 1 addition & 1 deletion s/config/units.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const unitsConfig = deep.freeze(asUnitsConfig({
king: {
rendering: {algo: "normal"},
archetype: {
explained: {sentence: "Game ends when he dies, can see up cliffs, acts as recruitment point."},
explained: {sentence: "Game ends when he dies, acts as recruitment point."},
mortal: {health: 5},
mobile: {range: {steps: 1}},
sighted: {range: {steps: 2}, verticality: {below: true}},
Expand Down
2 changes: 1 addition & 1 deletion s/config/units/traits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type Verticality = {
}

export type Repeatability = {
count?: number
count: number
focusFire?: boolean
}

Expand Down
15 changes: 11 additions & 4 deletions s/dom/views/exhibits/gameplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ export const styles = css`
}
.hud {
font-size: 0.8em;
pointer-events: none;
z-index: 1;
position: relative;
Expand All @@ -69,16 +67,25 @@ export const styles = css`
}
> [view="inspector"] {
pointer-events: none;
overflow: hidden;
z-index: 1;
position: absolute;
user-select: auto;
pointer-events: none;
padding: 1em;
font-size: 0.8em;
width: max-content;
max-width: 100%;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
background: linear-gradient(
to right,
#0008,
#0000
);
}
}
`
Expand Down
1 change: 1 addition & 0 deletions s/dom/views/gaming/action-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export const styles = css`
justify-content: center;
font-family: monospace;
font-weight: bold;
height: 3em;
padding: 0 1em;
Expand Down
235 changes: 0 additions & 235 deletions s/dom/views/gaming/inspector/inspector-panels.ts

This file was deleted.

Loading

0 comments on commit a2c2149

Please sign in to comment.