update
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -105,8 +105,8 @@ export class GirlDetailPanel extends li_BaseView {
|
|||||||
this.avatarVideo.node.parent.getComponent(UITransform);
|
this.avatarVideo.node.parent.getComponent(UITransform);
|
||||||
const videoTransform = this.avatarVideo.node.getComponent(UITransform);
|
const videoTransform = this.avatarVideo.node.getComponent(UITransform);
|
||||||
|
|
||||||
if (parentTransform && videoTransform && videoTransform.width > 0) {
|
if (parentTransform && videoTransform && videoTransform.height > 0) {
|
||||||
const scale = parentTransform.width / videoTransform.width;
|
const scale = parentTransform.height / videoTransform.height;
|
||||||
this.avatarVideo.node.setScale(scale, scale, 1);
|
this.avatarVideo.node.setScale(scale, scale, 1);
|
||||||
console.log(
|
console.log(
|
||||||
`Video scaled to: ${scale}, parent height: ${parentTransform.height}, video height: ${videoTransform.height}`
|
`Video scaled to: ${scale}, parent height: ${parentTransform.height}, video height: ${videoTransform.height}`
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export class DetailImageItem extends Component {
|
|||||||
|
|
||||||
base: GirlDetailPanel;
|
base: GirlDetailPanel;
|
||||||
url: string;
|
url: string;
|
||||||
|
isImage: boolean;
|
||||||
uitransform: UITransform;
|
uitransform: UITransform;
|
||||||
|
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -30,6 +30,8 @@ export class DetailImageItem extends Component {
|
|||||||
onClickThis() {
|
onClickThis() {
|
||||||
let data = {
|
let data = {
|
||||||
url: this.url,
|
url: this.url,
|
||||||
|
isImg: this.isImage,
|
||||||
|
|
||||||
closeFunc: () => {
|
closeFunc: () => {
|
||||||
this.base.setVideEnable(true);
|
this.base.setVideEnable(true);
|
||||||
},
|
},
|
||||||
@@ -87,6 +89,7 @@ export class DetailImageItem extends Component {
|
|||||||
this.url = path;
|
this.url = path;
|
||||||
|
|
||||||
let imgPath = this.url;
|
let imgPath = this.url;
|
||||||
|
this.isImage = isImage;
|
||||||
if (!isImage) {
|
if (!isImage) {
|
||||||
imgPath = this.url + "_thumbnail";
|
imgPath = this.url + "_thumbnail";
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
Submodule proto_cs updated: 664c8ad737...596a85ecea
+1
-1
Submodule xchat_cfg updated: e7d507d493...c9f321db06
Reference in New Issue
Block a user