File tree Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ monster-menu {
3131 width : 376px ;
3232 flex-flow : row nowrap ;
3333 align-items : center ;
34- background-color : --grey-100 ;
34+ background-color : var ( --grey-100 ) ;
3535 border-radius : 16px ;
3636
3737 @media (prefers-color-scheme : dark ) {
Original file line number Diff line number Diff line change @@ -98,13 +98,6 @@ export default class TabletopPage extends SuperComponent<ITabletopPage>{
9898 items . push ( {
9999 label : "Spawn Monster" ,
100100 callback : ( ) => {
101- //const tabletop = document.body.querySelector("tabletop-component") as TabeltopComponent;
102- //let diffX = (x - tabletop.x) / tabletop.zoom;
103- //let diffY = (y - tabletop.y) / tabletop.zoom;
104- //sessionStorage.setItem("tabletop:spawn-monster:y", `${Math.round(diffY) - 16}`);
105- //sessionStorage.setItem("tabletop:spawn-monster:x", `${Math.round(diffX) - 16}`);
106- //htmx.ajax("GET", "/stub/tabletop/spotlight", { target: "spotlight-search .modal" });
107- //window.dispatchEvent(new CustomEvent("show-spotlight-search"));
108101 window . dispatchEvent ( new CustomEvent ( "show-monster-menu" ) ) ;
109102 }
110103 } ) ;
Original file line number Diff line number Diff line change @@ -25,16 +25,6 @@ class Room {
2525 public dmgOverlay : boolean ;
2626 public activeInitiative : string | null ;
2727 private hasLogOn : boolean ;
28- private selectedMonster ?: {
29- x : number ,
30- y : number ,
31- name : string ,
32- hp : number ,
33- ac : number ,
34- size : string ,
35- image : string ,
36- monsterId : string ,
37- } ;
3828
3929 constructor ( ) {
4030 this . uid = "" ;
@@ -49,7 +39,6 @@ class Room {
4939 this . dmgOverlay = false ;
5040 this . activeInitiative = null ;
5141 this . hasLogOn = false ;
52- this . selectedMonster = null ;
5342 subscribe ( "socket" , this . inbox . bind ( this ) ) ;
5443 this . init ( ) ;
5544 }
You can’t perform that action at this time.
0 commit comments