mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Upgrades for teleportation imnterpolation performance, ACE search box styling.
This commit is contained in:
parent
541a2756fd
commit
f7bdb7e840
2 changed files with 12 additions and 2 deletions
|
@ -98,7 +98,7 @@ module.exports = class ThangState
|
|||
storage = @trackedPropertyValues[propIndex]
|
||||
value = @getStoredProp propIndex, type, storage
|
||||
if prop is "pos"
|
||||
if @thang.pos.distanceSquared(value) > 900
|
||||
if @thang.teleport and @thang.pos.distanceSquared(value) > 900
|
||||
# Don't interpolate; it was probably a teleport. https://github.com/codecombat/codecombat/issues/738
|
||||
@thang.pos = value
|
||||
else
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@import "../../../bootstrap/mixins"
|
||||
@import "app/styles/bootstrap/mixins"
|
||||
|
||||
@mixin editor-height($extraHeight)
|
||||
@include box-sizing(border-box)
|
||||
|
@ -123,3 +123,13 @@
|
|||
// https://github.com/codecombat/codecombat/issues/6
|
||||
color: rgb(145, 48, 50)
|
||||
|
||||
.ace_search
|
||||
background-color: rgba(216, 187, 165, 1)
|
||||
border: 0
|
||||
@include box-shadow(1px 2px 1px #444)
|
||||
|
||||
.ace_search_field
|
||||
width: 190px
|
||||
|
||||
.ace_searchbtn, .ace_replacebtn
|
||||
padding: 0px 4px
|
||||
|
|
Loading…
Reference in a new issue