diff --git a/package-lock.json b/package-lock.json index 420e4c7a9..ffa2b32e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "udonarium_lily", - "version": "1.07.0b3", + "version": "1.07.0b4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "udonarium_lily", - "version": "1.07.0b3", + "version": "1.07.0b4", "license": "MIT", "dependencies": { "@angular/animations": "^13.3.0", @@ -20,7 +20,7 @@ "@angular/youtube-player": "^13.3.0", "@ng-select/ng-select": "^8.1.1", "autolinker": "^3.15.0", - "bcdice": "^3.5.1", + "bcdice": "^3.6.0", "crypto-js": "^4.1.1", "file-saver": "^2.0.5", "hammerjs": "^2.0.8", @@ -5077,9 +5077,9 @@ "dev": true }, "node_modules/bcdice": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bcdice/-/bcdice-3.5.1.tgz", - "integrity": "sha512-HJ8kndQmCezJHB2Lgqqg0h7q/KTk/IxizCSmu6sRvikwadtCvVFKIJTNIOfLk/kBr8i4aF1f3M2iVogTjKqTRA==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/bcdice/-/bcdice-3.6.0.tgz", + "integrity": "sha512-4vfkRk5QcbEzqw/4pTh2fDC81uY6achvaGs8lky1C00JTyvPovvBCKhONtj+E/1grZrdEGS9kCyPQH41v4hOWg==", "dependencies": { "lodash": "^4.17.20", "source-map-support": "^0.5.19" @@ -18625,9 +18625,9 @@ "dev": true }, "bcdice": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bcdice/-/bcdice-3.5.1.tgz", - "integrity": "sha512-HJ8kndQmCezJHB2Lgqqg0h7q/KTk/IxizCSmu6sRvikwadtCvVFKIJTNIOfLk/kBr8i4aF1f3M2iVogTjKqTRA==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/bcdice/-/bcdice-3.6.0.tgz", + "integrity": "sha512-4vfkRk5QcbEzqw/4pTh2fDC81uY6achvaGs8lky1C00JTyvPovvBCKhONtj+E/1grZrdEGS9kCyPQH41v4hOWg==", "requires": { "lodash": "^4.17.20", "source-map-support": "^0.5.19" diff --git a/package.json b/package.json index 5d7f1420a..91c7aa5b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "udonarium_lily", - "version": "1.07.0b3", + "version": "1.07.0b4", "license": "MIT", "scripts": { "ng": "ng", @@ -25,7 +25,7 @@ "@angular/youtube-player": "^13.3.0", "@ng-select/ng-select": "^8.1.1", "autolinker": "^3.15.0", - "bcdice": "^3.5.1", + "bcdice": "^3.6.0", "crypto-js": "^4.1.1", "file-saver": "^2.0.5", "hammerjs": "^2.0.8", diff --git a/src/app/class/vote.ts b/src/app/class/vote.ts index 45ac623dc..117f51b75 100644 --- a/src/app/class/vote.ts +++ b/src/app/class/vote.ts @@ -98,7 +98,7 @@ export class Vote extends GameObject { text_ += ' 棄権:' + this.votedNumByIndex(-2); } }else{ - text_ = '投票終了'; + text_ = '投票終了(' + this.voteTitle + ') '; for (let cho of this.choices){ text_ += ' ' + cho + ':' + this.votedNumByChoice(cho); } diff --git a/src/app/component/card-stack/card-stack.component.css b/src/app/component/card-stack/card-stack.component.css index 58672b71f..2b0b27699 100644 --- a/src/app/component/card-stack/card-stack.component.css +++ b/src/app/component/card-stack/card-stack.component.css @@ -20,6 +20,10 @@ transform-style: preserve-3d; } +.will-change { + will-change: opacity; +} + .is-pointer-events-none { pointer-events: none; } diff --git a/src/app/component/card-stack/card-stack.component.html b/src/app/component/card-stack/card-stack.component.html index 90bb11ed1..bcf1c55f0 100644 --- a/src/app/component/card-stack/card-stack.component.html +++ b/src/app/component/card-stack/card-stack.component.html @@ -5,29 +5,29 @@ appRotable [rotable.option]="rotableOption" (rotable.ondragstart)="onMove()" (rotable.ondragend)="onMoved()">
- +
-
+
autorenew
-
+
autorenew
-
+
autorenew
-
+
autorenew
-
+
lock
-
+
{{cards.length}}枚
-
+
{{ownerName}} が確認中
diff --git a/src/app/component/card/card.component.css b/src/app/component/card/card.component.css index 62544e273..0329f61b5 100644 --- a/src/app/component/card/card.component.css +++ b/src/app/component/card/card.component.css @@ -15,6 +15,10 @@ transform-style: preserve-3d; } +.will-change { + will-change: opacity; +} + .is-transition { -webkit-transition: -webkit-transform 132ms linear; transition: transform 132ms linear; diff --git a/src/app/component/card/card.component.html b/src/app/component/card/card.component.html index 4b35739e5..017b865ec 100644 --- a/src/app/component/card/card.component.html +++ b/src/app/component/card/card.component.html @@ -2,27 +2,27 @@ appMovable [movable.option]="movableOption" (movable.ondragstart)="onMove()" (movable.ondragend)="onMoved()">
- -
+ +
{{ownerName}}
- + -
+
autorenew
-
+
autorenew
-
+
autorenew
-
+
autorenew
-
+
-
+
lock
diff --git a/src/app/component/chat-palette/chat-palette.component.html b/src/app/component/chat-palette/chat-palette.component.html index 0340e2ab3..a7122ad70 100644 --- a/src/app/component/chat-palette/chat-palette.component.html +++ b/src/app/component/chat-palette/chat-palette.component.html @@ -26,7 +26,7 @@
info_outline チャットパレット編集中です
- diff --git a/src/app/component/dice-symbol/dice-symbol.component.css b/src/app/component/dice-symbol/dice-symbol.component.css index c563df58a..303396632 100644 --- a/src/app/component/dice-symbol/dice-symbol.component.css +++ b/src/app/component/dice-symbol/dice-symbol.component.css @@ -15,6 +15,10 @@ transform-style: preserve-3d; } +.will-change { + will-change: opacity; +} + .is-transition { -webkit-transition: -webkit-transform 132ms linear; transition: transform 132ms linear; diff --git a/src/app/component/dice-symbol/dice-symbol.component.html b/src/app/component/dice-symbol/dice-symbol.component.html index 3c2991b82..c75fefecb 100644 --- a/src/app/component/dice-symbol/dice-symbol.component.html +++ b/src/app/component/dice-symbol/dice-symbol.component.html @@ -6,7 +6,7 @@
-
+
autorenew
autorenew
@@ -17,7 +17,7 @@
-
+
{{name}}:{{face}}??? lock @@ -29,13 +29,13 @@
-
+
{{ownerName}}
{{ownerName}}
- - +
diff --git a/src/app/component/game-character/game-character.component.css b/src/app/component/game-character/game-character.component.css index 0fe2a853f..c12661801 100644 --- a/src/app/component/game-character/game-character.component.css +++ b/src/app/component/game-character/game-character.component.css @@ -15,6 +15,10 @@ transform-style: preserve-3d; } +.will-change { + will-change: opacity; +} + .is-transition { -webkit-transition: -webkit-transform 132ms linear; transition: transform 132ms linear; diff --git a/src/app/component/game-character/game-character.component.html b/src/app/component/game-character/game-character.component.html index 02f413f10..0dd7af043 100644 --- a/src/app/component/game-character/game-character.component.html +++ b/src/app/component/game-character/game-character.component.html @@ -4,56 +4,45 @@
-
-
+
autorenew
autorenew
-
- -
- - - -
- - - - -
- -
-
-
-
-
-
-
-
-
-
-
+ +
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
- - -
- - +
- -
{{name}} @@ -68,9 +57,8 @@
- -
{{name}} @@ -84,27 +72,28 @@
-
-
- autorenew + autorenew
- - - -
+ + + -
+
- autorenew + autorenew
+
diff --git a/src/app/component/game-table/game-table.component.css b/src/app/component/game-table/game-table.component.css index c70a2fc7d..5ac38d824 100644 --- a/src/app/component/game-table/game-table.component.css +++ b/src/app/component/game-table/game-table.component.css @@ -24,7 +24,6 @@ transform-style: preserve-3d; backface-visibility: visible; position: absolute; - will-change: transform; } .is-3d-2 { diff --git a/src/app/component/peer-cursor/peer-cursor.component.css b/src/app/component/peer-cursor/peer-cursor.component.css index 551b9fb0e..b870ae9ab 100644 --- a/src/app/component/peer-cursor/peer-cursor.component.css +++ b/src/app/component/peer-cursor/peer-cursor.component.css @@ -60,6 +60,10 @@ transform-style: preserve-3d; } +.will-change { + will-change: opacity; +} + .is-pointer-events-none { pointer-events: none; } \ No newline at end of file diff --git a/src/app/component/peer-cursor/peer-cursor.component.html b/src/app/component/peer-cursor/peer-cursor.component.html index 9d0ac3d11..21fac571b 100644 --- a/src/app/component/peer-cursor/peer-cursor.component.html +++ b/src/app/component/peer-cursor/peer-cursor.component.html @@ -1,5 +1,5 @@
-
+
{{name}} diff --git a/src/app/component/terrain/terrain.component.css b/src/app/component/terrain/terrain.component.css index de9c7c6bd..3118e8204 100644 --- a/src/app/component/terrain/terrain.component.css +++ b/src/app/component/terrain/terrain.component.css @@ -15,6 +15,10 @@ transform-style: preserve-3d; } +.will-change { + will-change: opacity; +} + .is-transition { -webkit-transition: -webkit-transform 132ms linear; transition: transform 132ms linear; diff --git a/src/app/component/terrain/terrain.component.html b/src/app/component/terrain/terrain.component.html index d6346d593..cb147430b 100644 --- a/src/app/component/terrain/terrain.component.html +++ b/src/app/component/terrain/terrain.component.html @@ -4,35 +4,35 @@
-
-
-
-
-
-
-
+
+
autorenew
-
+
autorenew
-
+
autorenew
-
+
autorenew
diff --git a/src/app/component/ui-panel/ui-panel.component.html b/src/app/component/ui-panel/ui-panel.component.html index 2cf4420ef..ab4eda908 100644 --- a/src/app/component/ui-panel/ui-panel.component.html +++ b/src/app/component/ui-panel/ui-panel.component.html @@ -19,7 +19,6 @@ [dispByMouse]="tachieDispByMouse" > - AAAA
diff --git a/src/app/component/vote-menu/vote-menu.component.ts b/src/app/component/vote-menu/vote-menu.component.ts index 92e263144..47700acc9 100644 --- a/src/app/component/vote-menu/vote-menu.component.ts +++ b/src/app/component/vote-menu/vote-menu.component.ts @@ -104,7 +104,7 @@ export class VoteMenuComponent implements OnInit, OnDestroy, AfterViewInit { voteTitle = '点呼'; }else{ choicesInput = choicesInput.length == 0 ? '賛成 反対' : choicesInput; - startMessage = '投票開始!'; + startMessage = '投票開始!(' + this.voteTitle + ')'; voteTitle = this.voteTitle; } let choices = choicesInput.split(/\s+/i); diff --git a/src/app/directive/movable.directive.ts b/src/app/directive/movable.directive.ts index 8cb4e22ec..6a2cb5030 100644 --- a/src/app/directive/movable.directive.ts +++ b/src/app/directive/movable.directive.ts @@ -44,13 +44,32 @@ export class MovableDirective implements AfterViewInit, OnDestroy { private _posX: number = 0; private _posY: number = 0; private _posZ: number = 0; - +/* get posX(): number { return this._posX; } set posX(posX: number) { this._posX = posX; this.setUpdateTimer(); } get posY(): number { return this._posY; } set posY(posY: number) { this._posY = posY; this.setUpdateTimer(); } get posZ(): number { return this._posZ; } set posZ(posZ: number) { this._posZ = posZ; this.setUpdateTimer(); } +*/ + + private mathFloor: boolean = true; +/* + get posX(): number { return this._posX; } + set posX(posX: number) { this._posX = Math.floor(posX); this.setUpdateTimer(); } + get posY(): number { return this._posY; } + set posY(posY: number) { this._posY = Math.floor(posY); this.setUpdateTimer(); } + get posZ(): number { return this._posZ; } + set posZ(posZ: number) { this._posZ = Math.floor(posZ); this.setUpdateTimer(); } +*/ + + get posX(): number { return this._posX; } + set posX(posX: number) { this._posX = this.mathFloor? Math.floor(posX):posX; this.setUpdateTimer(); } + get posY(): number { return this._posY; } + set posY(posY: number) { this._posY = this.mathFloor? Math.floor(posY):posY; this.setUpdateTimer(); } + get posZ(): number { return this._posZ; } + set posZ(posZ: number) { this._posZ = this.mathFloor? Math.floor(posZ*100)/100:posZ; this.setUpdateTimer(); } + private pointerOffset2d: PointerCoordinate = { x: 0, y: 0, z: 0 }; private pointerStart3d: PointerCoordinate = { x: 0, y: 0, z: 0 }; @@ -241,9 +260,20 @@ export class MovableDirective implements AfterViewInit, OnDestroy { } private setPosition(object: TabletopObject) { +/* this._posX = object.location.x; this._posY = object.location.y; this._posZ = object.posZ; + + + this._posX = Math.floor(object.location.x); + this._posY = Math.floor(object.location.y); + this._posZ = Math.floor(object.posZ); +*/ + this._posX = this.mathFloor? Math.floor(object.location.x):object.location.x; + this._posY = this.mathFloor? Math.floor(object.location.y):object.location.y; + this._posZ = this.mathFloor? Math.floor(object.posZ*100)/100:object.posZ; + this.updateTransformCss(); } @@ -305,7 +335,13 @@ export class MovableDirective implements AfterViewInit, OnDestroy { } private updateTransformCss() { - let css = this.transformCssOffset + ' translateX(' + this.posX + 'px) translateY(' + this.posY + 'px) translateZ(' + this.posZ + 'px)'; +// let css = this.transformCssOffset + ' translateX(' + this.posX + 'px) translateY(' + this.posY + 'px) translateZ(' + this.posZ + 'px)'; +// let css = 'translateX(' + this.posX + 'px) translateY(' + this.posY + 'px) translateZ(' + this.posZ + 'px)'; + let css = 'translate3d(' + this.posX + 'px,' + this.posY + 'px,' + this.posZ + 'px) ' + this.transformCssOffset; +// let css = 'translate3d(' + this.posX + 'px,' + this.posY + 'px,' + this.posZ + 'px) ' + ' translate3d(0px,0px,1px) translate3d(0px,0px,1px) translate3d(0px,0px,1px) translate3d(0px,0px,1px) translate3d(0px,0px,1px)'; + +// let css = 'translate3d(' + this.posX + 'px,' + this.posY + 'px,' + (this.posZ +100 )+ 'px) '; + console.log(css); this.nativeElement.style.transform = css; } diff --git a/src/index.html b/src/index.html index 6a90436e3..852b80bd3 100644 --- a/src/index.html +++ b/src/index.html @@ -9,7 +9,7 @@ } - UdonariumLily 1.07.0b3 + UdonariumLily 1.07.0b4 @@ -291,4 +296,4 @@ - \ No newline at end of file +