Commit 086d8625 authored by unknown's avatar unknown

纵横填数大体好了

parent b930a813
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "4369f246-81a1-4d2d-bd91-05ff610ad3ad",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "d97ec704-be3e-4d17-a16c-bb88b33a3dbe",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c@6c48a",
"displayName": "名称框",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c@f9941",
"displayName": "名称框",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 262,
"height": 69,
"rawWidth": 262,
"rawHeight": 69,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "82bb2269-c436-4db6-b00e-3ef4b2c9ef2c@f9941"
}
}
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "8578ecff-0da2-40d5-a9b3-12494dc1baf0",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@6c48a",
"displayName": "换色底图",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "8578ecff-0da2-40d5-a9b3-12494dc1baf0"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@f9941",
"displayName": "换色底图",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 80,
"height": 80,
"rawWidth": 80,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "8578ecff-0da2-40d5-a9b3-12494dc1baf0@f9941"
}
}
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f@6c48a",
"displayName": "整体底框",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f@f9941",
"displayName": "整体底框",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 524,
"height": 524,
"rawWidth": 524,
"rawHeight": 524,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "d59d76be-3134-4d0f-aeb4-7bf1f519b79f@f9941"
}
}
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1@6c48a",
"displayName": "答案底图",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1@f9941",
"displayName": "答案底图",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 80,
"height": 80,
"rawWidth": 80,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "7f4f3c00-f81f-4f13-88f2-9684a9de38a1@f9941"
}
}
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "3ce562fe-fde6-468d-8e2c-b90187a3ba55",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "3ce562fe-fde6-468d-8e2c-b90187a3ba55@6c48a",
"displayName": "边框",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "3ce562fe-fde6-468d-8e2c-b90187a3ba55"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "3ce562fe-fde6-468d-8e2c-b90187a3ba55@f9941",
"displayName": "边框",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 80,
"height": 80,
"rawWidth": 80,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "3ce562fe-fde6-468d-8e2c-b90187a3ba55@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "3ce562fe-fde6-468d-8e2c-b90187a3ba55@f9941"
}
}
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "95cdeb03-5014-4940-9ace-f790f56f52cc",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
This diff is collapsed.
{
"ver": "1.1.27",
"importer": "prefab",
"imported": true,
"uuid": "6ab87c96-648b-4f6d-9657-b62462e29fa7",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "VHFillNumItem"
}
}
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "a742e1c2-b2dd-4d87-961d-2730cc918d80",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
This diff is collapsed.
{
"ver": "1.1.27",
"importer": "scene",
"imported": true,
"uuid": "3ad49fde-89b1-44df-a173-4859cc88e56d",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "9499825d-ec68-4c20-b5df-97edf8a4fab9",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
export interface VHFillNumCfg {
row: number,
column: number,
numArr: number[][],
emptyCtrArr: number[][],
rowSymb: string[][],
columnSymb: string[][]
options: number[]
}
//常用计算符号 ÷ ×
export const vhfn_lv_1: VHFillNumCfg = {
row: 4,
column: 4,
numArr: [
[3, 6, 5, 14],
[8, 4, 2, 16],
[6, 2, 3, 36],
[30, 8, 10, -1]
],
emptyCtrArr: [
[1, 1, 0, 1],
[0, 1, 0, 1],
[1, 0, 1, 1],
[1, 1, 1, 1]
],
rowSymb: [
["+", "+", "="],
["×", "÷", "="],
["×", "×", "="]
],
columnSymb: [
["×", "+", "+"],
["+", "÷", "+"],
["=", "=", "="],
],
options: [5, 2, 8]
}
{
"ver": "4.0.22",
"importer": "typescript",
"imported": true,
"uuid": "300a7889-af89-47b7-8ea9-13b853080989",
"files": [],
"subMetas": {},
"userData": {}
}
This diff is collapsed.
{
"ver": "4.0.22",
"importer": "typescript",
"imported": true,
"uuid": "98565f3d-ec50-43e5-afa2-9e9f5097a3db",
"files": [],
"subMetas": {},
"userData": {}
}
import { _decorator, Component, Node, Sprite, SpriteFrame, Label, director } from 'cc';
const { ccclass, property } = _decorator;
export enum VHFN_ITEM_TYPE {
RESULT = 10,
FIX_ELE = 20,
NOR_ELE = 30,
}
@ccclass('VHFillNumItem')
export class VHFillNumItem extends Component {
@property(Sprite)
bgSpr: Sprite = null!;
@property(Sprite)
fixedSpr: Sprite = null!;
@property(SpriteFrame)
eleSprFra: SpriteFrame = null!;
@property(SpriteFrame)
retSprFra: SpriteFrame = null!;
@property(Label)
showNumLab: Label = null!;
@property(Node)
clickNode: Node = null!;
private _itemType = VHFN_ITEM_TYPE.RESULT;
public set itemType(value: VHFN_ITEM_TYPE) {
this._itemType = value;
if (this._itemType == VHFN_ITEM_TYPE.RESULT) {
this.bgSpr.spriteFrame = this.retSprFra;
this.fixedSpr.node.active = false;
}
else if(this._itemType == VHFN_ITEM_TYPE.FIX_ELE) {
this.bgSpr.spriteFrame = this.eleSprFra;
this.fixedSpr.node.active = true;
}
else{
this.bgSpr.spriteFrame = this.eleSprFra;
this.fixedSpr.node.active = false;
}
}
public get itemType() {
return this._itemType;
}
private _rightNum = 0;
public set rightNum(value: number) {
this._rightNum = value;
}
public get rightNum() {
return this._rightNum;
}
private _showNum = -1;
public set showNum(value: number) {
this._showNum = value;
this.showNumLab.string = this._showNum == -1 ? "" : this._showNum + "";
}
public get showNum() {
return this._showNum;
}
start() {
// [3]
// console.log(`一个item被点击0`);
// console.log(this.clickNode);
this.clickNode.on(Node.EventType.TOUCH_END, () => {
console.log(`一个item被点击1`);
director.emit("VHFM_click", this);
});
}
isRight() {
return this._showNum == this.rightNum;
}
// update (deltaTime: number) {
// // [4]
// }
}
{
"ver": "4.0.22",
"importer": "typescript",
"imported": true,
"uuid": "c41758e6-acef-4665-a54b-0ae03afe65e0",
"files": [],
"subMetas": {},
"userData": {}
}
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