[Update]假資料搬出來,左下區塊拆成prefab準備動工
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.2.9",
|
||||||
|
"uuid": "1ce57bef-7afc-4e1f-a984-1677a6003516",
|
||||||
|
"optimizationPolicy": "AUTO",
|
||||||
|
"asyncLoadAssets": false,
|
||||||
|
"readonly": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
+9
-12331
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,96 @@
|
|||||||
|
import { IDroneInfo, IDroneLocationInfo } from "./define/Interface";
|
||||||
|
|
||||||
|
export const FakeDroneListInfo: Array<IDroneInfo> = [
|
||||||
|
{
|
||||||
|
droneName: '無人機A',
|
||||||
|
sort: 0,
|
||||||
|
id: 'Fly-A'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
droneName: '無人機F',
|
||||||
|
sort: 5,
|
||||||
|
id: 'Fly-F'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
droneName: '無人機E',
|
||||||
|
sort: 4,
|
||||||
|
id: 'Fly-E'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
droneName: '無人機D',
|
||||||
|
sort: 3,
|
||||||
|
id: 'Fly-D'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
droneName: '無人機H',
|
||||||
|
sort: 7,
|
||||||
|
id: 'Fly-H'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
droneName: '無人機G',
|
||||||
|
sort: 6,
|
||||||
|
id: 'Fly-G'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
droneName: '無人機B',
|
||||||
|
sort: 1,
|
||||||
|
id: 'Fly-B'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
droneName: '無人機C',
|
||||||
|
sort: 2,
|
||||||
|
id: 'Fly-C'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
export const FakeDroneDetail: Array<IDroneLocationInfo> = [
|
||||||
|
{
|
||||||
|
id: 'Fly-A',
|
||||||
|
bettery: 10,
|
||||||
|
locationN: `12'34'56.7""`,
|
||||||
|
locationE: `98'76'54.0123""`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'Fly-B',
|
||||||
|
bettery: 87,
|
||||||
|
locationN: `64'31'3.14""`,
|
||||||
|
locationE: `55'66'11""`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'Fly-C',
|
||||||
|
bettery: 49,
|
||||||
|
locationN: `72'38'18.2""`,
|
||||||
|
locationE: `47'10'2.01""`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'Fly-D',
|
||||||
|
bettery: 51,
|
||||||
|
locationN: `25'68'54.1""`,
|
||||||
|
locationE: `12'14'74""`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'Fly-E',
|
||||||
|
bettery: 50,
|
||||||
|
locationN: `19'85'12.14""`,
|
||||||
|
locationE: `7'4'12.14""`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'Fly-F',
|
||||||
|
bettery: 100,
|
||||||
|
locationN: `91'20'3.1""`,
|
||||||
|
locationE: `700'600'5.2""`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'Fly-G',
|
||||||
|
bettery: 0,
|
||||||
|
locationN: `10'20'3.0""`,
|
||||||
|
locationE: `4'5'9.99""`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'Fly-H',
|
||||||
|
bettery: 1,
|
||||||
|
locationN: `8'7'8.7""`,
|
||||||
|
locationE: `3'3'1.2""`
|
||||||
|
},
|
||||||
|
]
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.8",
|
||||||
|
"uuid": "aeb05757-69fd-4879-bae8-eb0920197e20",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Drone_Event } from "./define/Event";
|
import { Drone_Event } from "./define/Event";
|
||||||
import { IDroneInfo, IDroneLocationInfo } from "./define/Interface";
|
|
||||||
import BaseComp from "./external/BaseComp";
|
import BaseComp from "./external/BaseComp";
|
||||||
|
import { FakeDroneDetail, FakeDroneListInfo } from "./FakeData";
|
||||||
const { ccclass, property } = cc._decorator;
|
const { ccclass, property } = cc._decorator;
|
||||||
|
|
||||||
@ccclass
|
@ccclass
|
||||||
@@ -12,108 +12,16 @@ export default class TestFakeData extends BaseComp {
|
|||||||
cc.tween(new cc.Node())
|
cc.tween(new cc.Node())
|
||||||
.delay(3)
|
.delay(3)
|
||||||
.call(() => {
|
.call(() => {
|
||||||
let data: Array<IDroneInfo> = [
|
|
||||||
{
|
|
||||||
droneName: '無人機A',
|
|
||||||
sort: 0,
|
|
||||||
id: 'Fly-A'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
droneName: '無人機F',
|
|
||||||
sort: 5,
|
|
||||||
id: 'Fly-F'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
droneName: '無人機E',
|
|
||||||
sort: 4,
|
|
||||||
id: 'Fly-E'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
droneName: '無人機D',
|
|
||||||
sort: 3,
|
|
||||||
id: 'Fly-D'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
droneName: '無人機H',
|
|
||||||
sort: 7,
|
|
||||||
id: 'Fly-H'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
droneName: '無人機G',
|
|
||||||
sort: 6,
|
|
||||||
id: 'Fly-G'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
droneName: '無人機B',
|
|
||||||
sort: 1,
|
|
||||||
id: 'Fly-B'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
droneName: '無人機C',
|
|
||||||
sort: 2,
|
|
||||||
id: 'Fly-C'
|
|
||||||
},
|
|
||||||
]
|
|
||||||
console.log('ken666::delay3 send Drone_Event.DRONE_LIST')
|
console.log('ken666::delay3 send Drone_Event.DRONE_LIST')
|
||||||
this.emit(Drone_Event.DRONE_LIST, data)
|
this.emit(Drone_Event.DRONE_LIST, FakeDroneListInfo)
|
||||||
})
|
})
|
||||||
.start()
|
.start()
|
||||||
|
|
||||||
cc.tween(new cc.Node())
|
cc.tween(new cc.Node())
|
||||||
.delay(1)
|
.delay(1)
|
||||||
.call(() => {
|
.call(() => {
|
||||||
let data: Array<IDroneLocationInfo> = [
|
|
||||||
{
|
|
||||||
id: 'Fly-A',
|
|
||||||
bettery: 10,
|
|
||||||
locationN: `12'34'56.7""`,
|
|
||||||
locationE: `98'76'54.0123""`
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Fly-B',
|
|
||||||
bettery: 87,
|
|
||||||
locationN: `64'31'3.14""`,
|
|
||||||
locationE: `55'66'11""`
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Fly-C',
|
|
||||||
bettery: 49,
|
|
||||||
locationN: `72'38'18.2""`,
|
|
||||||
locationE: `47'10'2.01""`
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Fly-D',
|
|
||||||
bettery: 51,
|
|
||||||
locationN: `25'68'54.1""`,
|
|
||||||
locationE: `12'14'74""`
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Fly-E',
|
|
||||||
bettery: 50,
|
|
||||||
locationN: `19'85'12.14""`,
|
|
||||||
locationE: `7'4'12.14""`
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Fly-F',
|
|
||||||
bettery: 100,
|
|
||||||
locationN: `91'20'3.1""`,
|
|
||||||
locationE: `700'600'5.2""`
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Fly-G',
|
|
||||||
bettery: 0,
|
|
||||||
locationN: `10'20'3.0""`,
|
|
||||||
locationE: `4'5'9.99""`
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Fly-H',
|
|
||||||
bettery: 1,
|
|
||||||
locationN: `8'7'8.7""`,
|
|
||||||
locationE: `3'3'1.2""`
|
|
||||||
},
|
|
||||||
]
|
|
||||||
console.log('ken666::delay3 send Drone_Event.DRONE_DETAIL')
|
console.log('ken666::delay3 send Drone_Event.DRONE_DETAIL')
|
||||||
this.emit(Drone_Event.DRONE_DETAIL, data)
|
this.emit(Drone_Event.DRONE_DETAIL, FakeDroneDetail)
|
||||||
})
|
})
|
||||||
.start()
|
.start()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user