BehaviorTree / Editor / GraphElements / BTNodeElement.uss
BTNodeElement.uss
Raw
#node-state {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-top-width: 1px;
    border-bottom-width: 1px;
}

#selection-border {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-left-color: rgb(231, 182, 0);
    border-right-color: rgb(231, 182, 0);
    border-top-color: rgb(231, 182, 0);
    border-bottom-color: rgb(231, 182, 0);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}

:hover > #selection-border {
    border-left-width: 1px;
    border-right-width: 1px;
    border-top-width: 1px;
    border-bottom-width: 1px;
}

:hover :selected > #selection-border {
    border-left-width: 3px;
    border-right-width: 3px;
    border-top-width: 3px;
    border-bottom-width: 3px;
}

:selected > #selection-border {
    border-left-width: 2px;
    border-right-width: 2px;
    border-top-width: 2px;
    border-bottom-width: 2px;
}

.divider {
    height: 1px;
    background-color: rgb(108, 108, 108);
}

#title {
    color: rgb(255, 255, 255);
    font-size: 16px;
    -unity-font-style: bold;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#input {
    align-items: center;
    min-height: 20px;
}

#output {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.description {
    font-size: 10px;
    color: rgb(255, 255, 255);
}

.node {
    min-width: 150px;
    background-color: rgba(70, 70, 70, 0.78);
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.running #node-state {
    border-left-color: rgb(253, 161, 0);
    border-right-color: rgb(253, 161, 0);
    border-top-color: rgb(253, 161, 0);
    border-bottom-color: rgb(253, 161, 0);
}

.failure #node-state {
    border-left-color: rgb(255, 4, 0);
    border-right-color: rgb(255, 4, 0);
    border-top-color: rgb(255, 4, 0);
    border-bottom-color: rgb(255, 4, 0);
}

.success #node-state {
    border-left-color: rgb(17, 248, 0);
    border-right-color: rgb(17, 248, 0);
    border-top-color: rgb(17, 248, 0);
    border-bottom-color: rgb(17, 248, 0);
}

#icon {
    -unity-background-scale-mode: scale-to-fit;
    display: none;
}

#contents #connector > #cap 
{
    width: 75px;
    height: 30px;
}

#contents .port {
    width: 75px;
    height: 30px;
    --port-color: rgb(90, 90, 90);
}

#contents #connector {
    border-left-width: 0;
    border-right-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    width: 75px;
    height: 30px;
}