继续补充UI细节
This commit is contained in:
BIN
assets/atlas/comp/icon_star.png
Normal file
BIN
assets/atlas/comp/icon_star.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.4 KiB |
6
assets/atlas/comp/icon_star.png.meta
Normal file
6
assets/atlas/comp/icon_star.png.meta
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"uuid": "17d69d50-f2d0-4423-b98b-965ff12806d1",
|
||||||
|
"importer": {
|
||||||
|
"textureType": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -51,10 +51,6 @@ export class CalendarUnit extends Laya.Script {
|
|||||||
this.pieSize = this.sprite_pie.width /2
|
this.pieSize = this.sprite_pie.width /2
|
||||||
}
|
}
|
||||||
|
|
||||||
public onInit(label_obj: Laya.Label): void {
|
|
||||||
this.label_show = label_obj
|
|
||||||
}
|
|
||||||
|
|
||||||
public setCalendarUnit(year: number, month: number, day: number, open: boolean, progress: number, handler: any, func: any): void {
|
public setCalendarUnit(year: number, month: number, day: number, open: boolean, progress: number, handler: any, func: any): void {
|
||||||
this.selected = false
|
this.selected = false
|
||||||
this.year = year
|
this.year = year
|
||||||
|
|||||||
@@ -69,9 +69,6 @@ export class DailyChallenge extends Laya.Script {
|
|||||||
@property(Laya.Box)
|
@property(Laya.Box)
|
||||||
public obj_items: Laya.Box
|
public obj_items: Laya.Box
|
||||||
|
|
||||||
@property(Laya.Box)
|
|
||||||
public obj_labels: Laya.Box
|
|
||||||
|
|
||||||
private units: Array<CalendarUnit> = []
|
private units: Array<CalendarUnit> = []
|
||||||
|
|
||||||
private selectedUnit: CalendarUnit
|
private selectedUnit: CalendarUnit
|
||||||
@@ -114,12 +111,9 @@ export class DailyChallenge extends Laya.Script {
|
|||||||
|
|
||||||
for (let i = 0; i < this.obj_items.numChildren; i++) {
|
for (let i = 0; i < this.obj_items.numChildren; i++) {
|
||||||
const hbox = this.obj_items.getChildAt(i)
|
const hbox = this.obj_items.getChildAt(i)
|
||||||
const l_hbox = this.obj_labels.getChildAt(i)
|
|
||||||
for (let j = 0; j < hbox.numChildren; j++) {
|
for (let j = 0; j < hbox.numChildren; j++) {
|
||||||
const unit = hbox.getChildAt(j).getComponent(CalendarUnit)
|
const unit = hbox.getChildAt(j).getComponent(CalendarUnit)
|
||||||
const l_obj = l_hbox.getChildAt(j) as Laya.Label
|
|
||||||
this.units.push(unit)
|
this.units.push(unit)
|
||||||
unit.onInit(l_obj)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user