Optmi behavior list style
This commit is contained in:
parent
8dcbfbefb0
commit
14dbd944f9
@ -12,6 +12,7 @@ div.behavior-list {
|
|||||||
height: 45px;
|
height: 45px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
div.behavior-color-view {
|
div.behavior-color-view {
|
||||||
@ -19,12 +20,14 @@ div.behavior-list {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
div {
|
div {
|
||||||
position: relative;
|
// position: relative;
|
||||||
top: 5px;
|
// top: 5px;
|
||||||
left: 5px;
|
// left: 5px;
|
||||||
width: 8px;
|
width: 0;
|
||||||
height: 8px;
|
height: 0;
|
||||||
border-radius: 8px;
|
// border-left: 8px solid red;
|
||||||
|
border-bottom: 12px solid transparent;
|
||||||
|
// border-radius: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ class BehaviorList extends Component<IBehaviorListProps & IMixinSettingProps> {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="behavior-color-view">
|
<div className="behavior-color-view">
|
||||||
<div style={{ backgroundColor: color }}/>
|
<div style={{ borderLeft: `12px solid ${color}` }}/>
|
||||||
</div>
|
</div>
|
||||||
<div className="behavior-item-root">
|
<div className="behavior-item-root">
|
||||||
<div className="behavior-icon-view">
|
<div className="behavior-icon-view">
|
||||||
|
@ -69,13 +69,13 @@ class Actuator extends Emitter<IActuatorEvent> {
|
|||||||
// 丢帧判定
|
// 丢帧判定
|
||||||
if (durTime > 0.1) {
|
if (durTime > 0.1) {
|
||||||
console.log("Actuator: Ticker dur time error. dropping...")
|
console.log("Actuator: Ticker dur time error. dropping...")
|
||||||
}
|
} else {
|
||||||
|
this.alignTimer += durTime;
|
||||||
this.alignTimer += durTime;
|
if (this.alignTimer > (1 / this.fps)) {
|
||||||
if (this.alignTimer > (1 / this.fps)) {
|
this.model.update(this.alignTimer * this.speed);
|
||||||
this.model.update(this.alignTimer * this.speed);
|
this.emit("loop", this.alignTimer);
|
||||||
this.emit("loop", this.alignTimer);
|
this.alignTimer = 0;
|
||||||
this.alignTimer = 0;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user