Browse Source

UNDO THIS, VALENTINES STYLES

(cherry picked from commit 00ccc6191e)
tags/v0.4.4^2^2
Big Bad Waffle 4 years ago
parent
commit
f1c8292f4a
5 changed files with 22 additions and 22 deletions
  1. +10
    -10
      src/client/js/rendering/renderer.js
  2. +1
    -1
      src/client/ui/templates/characters/characters.js
  3. +2
    -2
      src/client/ui/templates/characters/styles.less
  4. +3
    -3
      src/client/ui/templates/createCharacter/styles.less
  5. +6
    -6
      src/client/ui/templates/login/styles.less

+ 10
- 10
src/client/js/rendering/renderer.js View File

@@ -176,31 +176,31 @@ define([
let container = this.layers.tileSprites;

for (let i = 0; i < w; i++) {
let ii = i / 10;
let ii = i / 7.5;
for (let j = 0; j < h; j++) {
let roll = Math.sin(((j * 0.2) % 5) + Math.cos(ii % 8));

let tile = 5;
let tile = 74;
if (roll < -0.2)
tile = 3;
tile = 108;
else if (roll < 0.2)
tile = 4;
tile = 107;
else if (roll < 0.5)
tile = 53;
tile = 79;

let alpha = mRandom();

if ([5, 53].indexOf(tile) > -1)
if ([73, 79].indexOf(tile) > -1)
alpha *= 2;

alpha = Math.min(Math.max(0.15, alpha), 0.65);

if (mRandom() < 0.35) {
tile = {
5: 6,
3: 0,
4: 1,
53: 54
74: 94,
108: 110,
107: 97,
79: 119
}[tile];
}



+ 1
- 1
src/client/ui/templates/characters/characters.js View File

@@ -105,7 +105,7 @@ define([
.forEach(function (c, i) {
let charName = c.name;
if (c.level !== null)
charName += '<font class="color-yellowB"> (' + c.level + ')</font>';
charName += '<font class="color-tealB"> (' + c.level + ')</font>';

let html = templateListItem
.replace('$NAME$', charName);


+ 2
- 2
src/client/ui/templates/characters/styles.less View File

@@ -103,7 +103,7 @@
}

.btn {
background-color: @blueC;
background-color: @pinkB;
width: calc((100% - (16px * 2)) / 3);
float: left;
margin-right: 16px;
@@ -114,7 +114,7 @@
}

&:hover {
background-color: @blueB;
background-color: @pinkB;
}

&.deleting {


+ 3
- 3
src/client/ui/templates/createCharacter/styles.less View File

@@ -130,7 +130,7 @@
}

.btn {
background-color: @blueC;
background-color: @pinkC;
width: calc((100% - @boxPadding) / 2);
float: left;
margin-right: @boxPadding;
@@ -141,7 +141,7 @@
}

&:hover {
background-color: @blueB;
background-color: @pinkB;
}

}
@@ -176,7 +176,7 @@

.heading {
margin-bottom: @boxPadding;
color: @blueA;
color: @tealB;
}

.list {


+ 6
- 6
src/client/ui/templates/login/styles.less View File

@@ -46,7 +46,7 @@
.label {
width: 30%;
padding-top: 10px;
color: @green;
color: @tealC;
}

input {
@@ -78,7 +78,7 @@
margin-top: 36px;
float: left;
text-align: center;
color: @orangeA;
color: @pinkA;
filter: brightness(100%)
drop-shadow(0px -4px 0px @blackD)
drop-shadow(0px 4px 0px @blackD)
@@ -96,7 +96,7 @@
height: 35px;

.btn {
background-color: @blueC;
background-color: @pinkC;
width: calc((100% - @boxPadding) / 2);
float: left;
margin-right: @boxPadding;
@@ -107,7 +107,7 @@
}

&:hover {
background-color: @blueB;
background-color: @pinkB;
}

}
@@ -146,7 +146,7 @@
padding-left: 10px;
padding-right: 10px;
margin-left: 10px;
background-color: @blueD;
background-color: @pinkD;
color: @white;

&:first-child {
@@ -154,7 +154,7 @@
}

&:hover {
background-color: @blueC;
background-color: @pinkC;
}

}


Loading…
Cancel
Save