Commit 992096d8 authored by 王杰's avatar 王杰

再写一点

parent 0a45bd72
......@@ -478,7 +478,7 @@
"y": -180,
"z": -12.000012657215834
},
"_id": "a4oWxEwWFM4Lu4iPpKs1mI"
"_id": "5aBsbZSQdHDbGg5VsuJnSU"
},
{
"__type__": "cc.UITransform",
......@@ -500,7 +500,7 @@
"x": 0,
"y": 1
},
"_id": "784o5UlktClINNtz+eDuKT"
"_id": "28W/pCUdBCtrgBTod6MvPm"
},
{
"__type__": "cc.Sprite",
......@@ -536,7 +536,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "041XaUO5xCMqrKhy8dz0sj"
"_id": "f15Ls8FOpNp6dwQL/8FetH"
},
{
"__type__": "cc.Node",
......@@ -584,7 +584,7 @@
"y": -180,
"z": -11.00000220913452
},
"_id": "04Tdz2+fFHAJLzQWJ1ci1C"
"_id": "f8ayqSEv9DFa70429HkcSt"
},
{
"__type__": "cc.UITransform",
......@@ -606,7 +606,7 @@
"x": 0,
"y": 1
},
"_id": "1aREbZQ7VJWpexIdzFxLdf"
"_id": "d9QbpmIv5OgYFBWRbjNgV+"
},
{
"__type__": "cc.Sprite",
......@@ -642,7 +642,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "8dHtVRBuFFVr837DP5zESg"
"_id": "f0HRLKxXJIy64+BQR1Ej3W"
},
{
"__type__": "cc.Node",
......@@ -690,7 +690,7 @@
"y": -180,
"z": -64.00000614258742
},
"_id": "07hM/etCZB97LhgBJSV+xy"
"_id": "71dNtaUz1HrKDkisHuNYst"
},
{
"__type__": "cc.UITransform",
......@@ -712,7 +712,7 @@
"x": 0,
"y": 1
},
"_id": "27yKoFl6dNO7YhAD7VD6vz"
"_id": "b0VX/NUBhEGZYmr5WzTc6a"
},
{
"__type__": "cc.Sprite",
......@@ -748,7 +748,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "cbctaCqZlAoqm9waaeZyEc"
"_id": "12ZmcvLDVMQJzsqca5uZi2"
},
{
"__type__": "cc.Node",
......@@ -796,7 +796,7 @@
"y": 180,
"z": 25.99999385741257
},
"_id": "2c2zj2DklHk5Dr0S+gknHq"
"_id": "a98XxuV4ZIHK9+emvwcJPH"
},
{
"__type__": "cc.UITransform",
......@@ -818,7 +818,7 @@
"x": 0,
"y": 1
},
"_id": "30vhT1v3lEv6qxvwUBuxjA"
"_id": "adLqd0ILBPLpIXEr9aR9p7"
},
{
"__type__": "cc.Sprite",
......@@ -854,7 +854,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "78O5+GLYRBOK5x/HXFHH30"
"_id": "5bD/WepfdDCKhCrWlOq7SA"
},
{
"__type__": "cc.UITransform",
......@@ -1173,7 +1173,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......@@ -1282,7 +1282,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......@@ -1600,7 +1600,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......@@ -2027,7 +2027,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......@@ -2315,7 +2315,7 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 197,
"width": 190,
"height": 509
},
"_anchorPoint": {
......@@ -2376,7 +2376,7 @@
"__prefab": null,
"_alignFlags": 9,
"_target": null,
"_left": -98.5,
"_left": -95,
"_right": 0,
"_top": 198.577,
"_bottom": 218,
......@@ -2406,7 +2406,7 @@
"__prefab": null,
"clickEvents": [],
"_interactable": true,
"_transition": 3,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
......@@ -4717,7 +4717,7 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 67.23196411132812,
"width": 61.11993408203125,
"height": 37.8
},
"_anchorPoint": {
......@@ -4750,8 +4750,8 @@
"_string": "123123",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 22,
"_fontSize": 22,
"_actualFontSize": 20,
"_fontSize": 20,
"_fontFamily": "Arial",
"_lineHeight": 30,
"_overflow": 0,
......@@ -5306,6 +5306,15 @@
"rankBtn": {
"__id__": 25
},
"rankInfo1": {
"__id__": 26
},
"rankInfo2": {
"__id__": 37
},
"rankInfo3": {
"__id__": 48
},
"blessBagBtn": {
"__id__": 124
},
......
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"fcbc0335-2f98-45c9-8146-c348634bc45e","files":[],"subMetas":{},"userData":{"isBundle":true}}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "c60ba61f-a98a-47f3-852b-5f188d7f268f",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "RankPrizePanel"
}
}
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"5539df0c-544e-4543-9b1a-a8c620deefa9","files":[],"subMetas":{},"userData":{}}
......@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "26ce66e8-4e84-4f92-927f-bbda01dbb159",
"uuid": "493e7b97-56cd-46a5-80bd-6885b8861d61",
"files": [
".json",
".png"
......@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "26ce66e8-4e84-4f92-927f-bbda01dbb159@6c48a",
"uuid": "493e7b97-56cd-46a5-80bd-6885b8861d61@6c48a",
"displayName": "bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "26ce66e8-4e84-4f92-927f-bbda01dbb159",
"imageUuidOrDatabaseUri": "493e7b97-56cd-46a5-80bd-6885b8861d61",
"isUuid": true,
"visible": false,
"minfilter": "linear",
......@@ -34,7 +34,7 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "26ce66e8-4e84-4f92-927f-bbda01dbb159@f9941",
"uuid": "493e7b97-56cd-46a5-80bd-6885b8861d61@f9941",
"displayName": "bg",
"id": "f9941",
"name": "spriteFrame",
......@@ -46,10 +46,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 625,
"height": 1114,
"rawWidth": 625,
"rawHeight": 1114,
"width": 1609,
"height": 455,
"rawWidth": 1609,
"rawHeight": 455,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-312.5,
-557,
-804.5,
-227.5,
0,
312.5,
-557,
804.5,
-227.5,
0,
-312.5,
557,
-804.5,
227.5,
0,
312.5,
557,
804.5,
227.5,
0
],
"indexes": [
......@@ -84,12 +84,12 @@
],
"uv": [
0,
1114,
625,
1114,
455,
1609,
455,
0,
0,
625,
1609,
0
],
"nuv": [
......@@ -103,18 +103,18 @@
1
],
"minPos": [
-312.5,
-557,
-804.5,
-227.5,
0
],
"maxPos": [
312.5,
557,
804.5,
227.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "26ce66e8-4e84-4f92-927f-bbda01dbb159@6c48a",
"imageUuidOrDatabaseUri": "493e7b97-56cd-46a5-80bd-6885b8861d61@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
......@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "26ce66e8-4e84-4f92-927f-bbda01dbb159@6c48a"
"redirect": "493e7b97-56cd-46a5-80bd-6885b8861d61@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "64b3014a-703f-4166-8252-1718eaaabc38",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "64b3014a-703f-4166-8252-1718eaaabc38@6c48a",
"displayName": "main_btn",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "64b3014a-703f-4166-8252-1718eaaabc38",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "64b3014a-703f-4166-8252-1718eaaabc38@f9941",
"displayName": "main_btn",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 300,
"height": 88,
"rawWidth": 300,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-150,
-44,
0,
150,
-44,
0,
-150,
44,
0,
150,
44,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
88,
300,
88,
0,
0,
300,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-150,
-44,
0
],
"maxPos": [
150,
44,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "64b3014a-703f-4166-8252-1718eaaabc38@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "64b3014a-703f-4166-8252-1718eaaabc38@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "ffd6767c-fd86-43a5-9bc4-b5b47b7f1ac0",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "ffd6767c-fd86-43a5-9bc4-b5b47b7f1ac0@6c48a",
"displayName": "prize_img",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "ffd6767c-fd86-43a5-9bc4-b5b47b7f1ac0",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "ffd6767c-fd86-43a5-9bc4-b5b47b7f1ac0@f9941",
"displayName": "prize_img",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 120,
"height": 120,
"rawWidth": 120,
"rawHeight": 120,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-60,
-60,
0,
60,
-60,
0,
-60,
60,
0,
60,
60,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
120,
120,
120,
0,
0,
120,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-60,
-60,
0
],
"maxPos": [
60,
60,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "ffd6767c-fd86-43a5-9bc4-b5b47b7f1ac0@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "ffd6767c-fd86-43a5-9bc4-b5b47b7f1ac0@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "8c5d6382-b10a-4982-95cd-a2f77fe9d0d0",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8c5d6382-b10a-4982-95cd-a2f77fe9d0d0@6c48a",
"displayName": "关闭按钮",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "8c5d6382-b10a-4982-95cd-a2f77fe9d0d0",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "8c5d6382-b10a-4982-95cd-a2f77fe9d0d0@f9941",
"displayName": "关闭按钮",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 88,
"rawWidth": 240,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-120,
-44,
0,
120,
-44,
0,
-120,
44,
0,
120,
44,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
88,
240,
88,
0,
0,
240,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-120,
-44,
0
],
"maxPos": [
120,
44,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "8c5d6382-b10a-4982-95cd-a2f77fe9d0d0@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "8c5d6382-b10a-4982-95cd-a2f77fe9d0d0@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "80ef5475-08aa-4a79-a38a-d3360dd11cc7",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "80ef5475-08aa-4a79-a38a-d3360dd11cc7@6c48a",
"displayName": "分享好友按钮",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "80ef5475-08aa-4a79-a38a-d3360dd11cc7",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "80ef5475-08aa-4a79-a38a-d3360dd11cc7@f9941",
"displayName": "分享好友按钮",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 88,
"rawWidth": 240,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-120,
-44,
0,
120,
-44,
0,
-120,
44,
0,
120,
44,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
88,
240,
88,
0,
0,
240,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-120,
-44,
0
],
"maxPos": [
120,
44,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "80ef5475-08aa-4a79-a38a-d3360dd11cc7@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "80ef5475-08aa-4a79-a38a-d3360dd11cc7@6c48a"
}
}
This diff is collapsed.
This diff is collapsed.
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "e927c63d-78fd-412c-a80d-b3a3131bf2c3",
"files": [],
"subMetas": {},
"userData": {}
}
This diff is collapsed.
import Panel from "../../Module/Panel";
import { _decorator, Button, Label, Node, Sprite, } from "cc";
import store from "../store/store";
import { observer, render } from "../store/decorators";
const { ccclass, property } = _decorator;
@observer
@ccclass('RankPrizePanel')
export default class RankPrizePanel extends Panel {
static bundle = "RankPrizePanel";
static skin = "RankPrizePanel";
@property(Node) closeBtn: Node = null;
@property(Node) shareBtn: Node = null;
@property(Sprite) PrizeImg: Sprite = null;
@property(Label) PrizeName: Label = null;
@property(Label) PrizeTitle: Label = null;
onLoad() {
this.closeBtn.on(Button.EventType.CLICK, this.clickClose);
}
async start() {
const { data = this.data } = this.data
console.log("看看这里拿到了什么数", data.prizeInfo);
}
clickClose = () => {
this.hidePanel();
}
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"37b9a111-6acd-4c41-b527-2e97d38d535d","files":[],"subMetas":{},"userData":{}}
......@@ -3,52 +3,50 @@ import { _decorator, Button, RichText, UITransform, Node, Sprite, Texture2D, Ima
import store from "../store/store";
import { observer, render } from "../store/decorators";
const {ccclass, property} = _decorator;
const { ccclass, property } = _decorator;
import { HTMLRichText } from "../../Component/HTMLRichText/HTMLRichText";
import { WebNetName, sendWebNet } from "../Utils/WebNet/WebNet";
@observer
@ccclass('RulePanel')
export default class RulePanel extends Panel {
static bundle = "RulePanel";
static skin = "RulePanel";
static bundle = "RulePanel";
static skin = "RulePanel";
@property(Node) closeBtn: Node = null;
@property(Node) spNode: Node = null;
@property(Node) closeBtn: Node = null;
@property(Node) spNode: Node = null;
onLoad() {
this.closeBtn.on(Button.EventType.CLICK, this.clickClose);
}
onLoad() {
this.closeBtn.on(Button.EventType.CLICK, this.clickClose);
}
async start() {
this.setRuleTxt(store.homeInfo.activityRule);
}
async start() {
// const { success, data } = await sendWebNet(WebNetName.projectRule);
// if (!success) return
clickClose = () => {
this.hidePanel();
}
this.setRuleTxt(store.ruleInfo);
}
// @render
// render() {
// const {ruleInfo = ""} = store;
// this.setRuleTxt(ruleInfo);
// }
clickClose = () => {
this.hidePanel();
}
setRuleTxt(txt: string) {
setRuleTxt(txt: string) {
this.spNode.getComponent(HTMLRichText).html = txt;
this.spNode.getComponent(HTMLRichText).html = txt;
this.spNode.once(HTMLRichText.EventType.AFTER_RENDER, ()=>{
this.spNode.once(HTMLRichText.EventType.AFTER_RENDER, () => {
const {width: pw, height: ph} = this.spNode.getComponent(UITransform);
const { width: pw, height: ph } = this.spNode.getComponent(UITransform);
const width = this.spNode.parent.getComponent(UITransform).width;
const width = this.spNode.parent.getComponent(UITransform).width;
const height = ph * width / pw;
const height = ph * width / pw;
this.spNode.getComponent(UITransform).setContentSize(width, height);
this.spNode.getComponent(UITransform).setContentSize(width, height);
});
}
});
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment