dark mode!!
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 848 B After Width: | Height: | Size: 872 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -13,13 +13,7 @@ void main() {
|
|||||||
color += flixel_texture2D(bitmap, openfl_TextureCoordv + vec2(strength * (inside / stepsInside) * cos(fi / fsteps * (PI * 2.0)), strength * (inside / stepsInside) * sin(fi / fsteps * (PI * 2.0))));
|
color += flixel_texture2D(bitmap, openfl_TextureCoordv + vec2(strength * (inside / stepsInside) * cos(fi / fsteps * (PI * 2.0)), strength * (inside / stepsInside) * sin(fi / fsteps * (PI * 2.0))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
for(int x = -steps; x < steps+1; x++) {
|
|
||||||
for(int y = -steps; y < steps+1; y++) {
|
|
||||||
color += flixel_texture2D(bitmap, openfl_TextureCoordv + vec2(strength / steps * x, strength / steps * y));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
color /= steps * stepsInside;
|
color /= steps * stepsInside;
|
||||||
gl_FragColor = color;
|
gl_FragColor = color;
|
||||||
}
|
}
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
2547
|
2550
|
||||||
@@ -5,7 +5,7 @@ import funkin.editors.ui.*;
|
|||||||
class UIDebugState extends UIState {
|
class UIDebugState extends UIState {
|
||||||
public override function create() {
|
public override function create() {
|
||||||
super.create();
|
super.create();
|
||||||
var bg = new FlxSprite().makeGraphic(1, 1, 0xFF888888);
|
var bg = new FlxSprite().makeGraphic(1, 1, 0xFF444444);
|
||||||
bg.scale.set(FlxG.width, FlxG.height);
|
bg.scale.set(FlxG.width, FlxG.height);
|
||||||
bg.updateHitbox();
|
bg.updateHitbox();
|
||||||
bg.scrollFactor.set();
|
bg.scrollFactor.set();
|
||||||
@@ -15,7 +15,7 @@ class UIDebugState extends UIState {
|
|||||||
add(new UICheckbox(10, 40, "Test checked", true));
|
add(new UICheckbox(10, 40, "Test checked", true));
|
||||||
add(new UIButton(10, 70, "Test button", function() {
|
add(new UIButton(10, 70, "Test button", function() {
|
||||||
trace("Hello, World!");
|
trace("Hello, World!");
|
||||||
}, 120, 32));
|
}, 130, 32));
|
||||||
add(new UIButton(10, 110, "Warning test", function() {
|
add(new UIButton(10, 110, "Warning test", function() {
|
||||||
openSubState(new UIWarningSubstate("Test", "This is a test message", [
|
openSubState(new UIWarningSubstate("Test", "This is a test message", [
|
||||||
{
|
{
|
||||||
@@ -31,7 +31,7 @@ class UIDebugState extends UIState {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]));
|
]));
|
||||||
}, 120, 32));
|
}, 130, 32));
|
||||||
add(new UIButton(10, 150, "Warning test (Overflowing)", function() {
|
add(new UIButton(10, 150, "Warning test (Overflowing)", function() {
|
||||||
openSubState(new UIWarningSubstate("Test", "This is a test message", [
|
openSubState(new UIWarningSubstate("Test", "This is a test message", [
|
||||||
{
|
{
|
||||||
@@ -59,24 +59,8 @@ class UIDebugState extends UIState {
|
|||||||
{
|
{
|
||||||
label: "4",
|
label: "4",
|
||||||
onClick: function(t) {}
|
onClick: function(t) {}
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "5",
|
|
||||||
onClick: function(t) {}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "6",
|
|
||||||
onClick: function(t) {}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "7",
|
|
||||||
onClick: function(t) {}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "8",
|
|
||||||
onClick: function(t) {}
|
|
||||||
}
|
}
|
||||||
]));
|
]));
|
||||||
}, 120, 64));
|
}, 130, 48));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -44,7 +44,7 @@ class UIWarningSubstate extends MusicBeatSubstate {
|
|||||||
add(titleSpr = new UIText(spr.x + 25, spr.y, spr.bWidth - 50, title, 15, -1));
|
add(titleSpr = new UIText(spr.x + 25, spr.y, spr.bWidth - 50, title, 15, -1));
|
||||||
titleSpr.y = spr.y + ((30 - titleSpr.height) / 2);
|
titleSpr.y = spr.y + ((30 - titleSpr.height) / 2);
|
||||||
|
|
||||||
add(messageSpr = new UIText(spr.x + 10, spr.y + 40, spr.bWidth - 20, message, 15, 0xFF000000));
|
add(messageSpr = new UIText(spr.x + 10, spr.y + 40, spr.bWidth - 20, message, 15, -1));
|
||||||
|
|
||||||
var xPos = (FlxG.width - (30 + (170 * buttons.length))) / 2;
|
var xPos = (FlxG.width - (30 + (170 * buttons.length))) / 2;
|
||||||
for(k=>b in buttons) {
|
for(k=>b in buttons) {
|
||||||
|
|||||||
Reference in New Issue
Block a user