instructions

This commit is contained in:
Yoshman29
2023-03-18 13:42:42 +01:00
parent af89443188
commit 8decd9b1a5
5 changed files with 23 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
## DEV (PRIVATE) REPO INSTRUCTIONS TO SYNC UP WITH IT INSTEAD OF SYNCING WITH THE PUBLIC ONE
- Open a Command Prompt window in the public codename repo folder
- Type those commands:
- `git remote add dev https://www.github.com/YoshiCrafter29/CodenameEngine-Dev`
- `git branch --set-upstream-to dev/main`
- GitHub desktop should be synchronized with the dev repo now. If you're unsure,
- Repo name should still say "CodenameEngine"
- Current branch should still say "main"
- "Fetch" button should say "Fetch dev"
- You shouldn't have any commit to push.
+3
View File
@@ -12,7 +12,10 @@ vec4 getColor(vec2 pos) {
return textureCam(bitmap, pos);
}
void main() {
return;
vec2 camPos = getCamPos(openfl_TextureCoordv);
if (camPos.x < 0 || camPos.x > 1 || camPos.y < 0 || camPos.y > 1)
return;
vec4 color = getColor(camPos);
float fsteps = steps;
+1 -1
View File
@@ -1 +1 @@
2569
2571
@@ -34,6 +34,11 @@ class UIContextMenu extends MusicBeatSubstate {
contextCam.alpha = CoolUtil.fpsLerp(contextCam.alpha, 1, 0.25);
}
public override function destroy() {
super.destroy();
FlxG.cameras.remove(contextCam);
}
}
typedef UIContextMenuOption = {
+4 -3
View File
@@ -20,6 +20,10 @@ class UISprite extends FlxSprite {
public var hoverCallback:Void->Void = null;
public override function update(elapsed:Float) {
hovered = false;
pressed = false;
hoveredByChild = false;
super.update(elapsed);
updateButton();
@@ -33,9 +37,6 @@ class UISprite extends FlxSprite {
FlxCamera._defaultCameras = __oldDefCams;
}
hovered = false;
pressed = false;
hoveredByChild = false;
}
public override function draw() {