Skip to content

Commit

Permalink
Merge pull request #4087 from Quaver/canary-online
Browse files Browse the repository at this point in the history
Canary Online -> Main
  • Loading branch information
AiAe committed Apr 25, 2024
2 parents 09a606f + a17d55b commit 0f7ddaf
Show file tree
Hide file tree
Showing 171 changed files with 3,356 additions and 2,819 deletions.
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ['https://quavergame.com/donate']
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,47 @@
name: Bug report
description: Create a report to help us improve
labels: ["Bug"]
body:
- type: textarea
id: describe-bug
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
placeholder: Tell us what you see!
validations:
required: true
- type: textarea
id: reproduce-bug
attributes:
label: To Reproduce
description: Steps to reproduce the behavior
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
- type: textarea
id: log-files
attributes:
label: Log Files
description: |
These are located in the /Logs/ directory in the game folder.
Tip: You can attach log files by clicking this area to highlight it and then dragging files in.
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: |
If applicable, add screenshots to help explain your problem.
Tip: You can attach images by clicking this area to highlight it and then dragging files in.
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,24 @@
name: Feature request
description: Suggest an idea for this project
labels: ["New Feature"]
body:
- type: textarea
id: related-problem
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
- type: textarea
id: solution-description
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
18 changes: 18 additions & 0 deletions .github/workflows/close-stale-issues-and-pr.yml
@@ -0,0 +1,18 @@
name: 'Close stale issues and PR'
on:
schedule:
- cron: '0 */6 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
stale-issue-message: 'This issue is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
stale-pr-message: 'This PR is stale because it has been open 2 days with no activity.'
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
days-before-stale: 2
days-before-close: 7
days-before-pr-close: -1
any-of-labels: 'needs-op-response'
30 changes: 30 additions & 0 deletions .github/workflows/dotnet.yml
@@ -0,0 +1,30 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
branches: [ "ui-redesign" ]
pull_request:
branches: [ "ui-redesign" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
2 changes: 1 addition & 1 deletion Quaver.Server.Client
2 changes: 1 addition & 1 deletion Quaver.Server.Common
2 changes: 2 additions & 0 deletions Quaver.Shared/Assets/UserInterface.cs
Expand Up @@ -115,6 +115,7 @@ public static class UserInterface
public static Texture2D CreateButton => TextureManager.Load(@"Quaver.Resources/Textures/UI/create-button.png");
public static Texture2D SureButton => TextureManager.Load(@"Quaver.Resources/Textures/UI/sure-button.png");
public static Texture2D AcceptButton => TextureManager.Load(@"Quaver.Resources/Textures/UI/accept-button.png");
public static Texture2D SaveButton => TextureManager.Load(@"Quaver.Resources/Textures/UI/save-button.png");
public static Texture2D DeclineButton => TextureManager.Load(@"Quaver.Resources/Textures/UI/decline-button.png");
public static Texture2D LegalPanel => TextureManager.Load(@"Quaver.Resources/Textures/UI/legal-panel.png");
public static Texture2D CancelButton => TextureManager.Load(@"Quaver.Resources/Textures/UI/cancel-button.png");
Expand Down Expand Up @@ -195,6 +196,7 @@ public static class UserInterface
public static Texture2D ReplayControllerInactiveBar => TextureManager.Load(@"Quaver.Resources/Textures/UI/Replay/replay-controller-inactive-bar.png");
public static Texture2D ReplayControllerPanel => TextureManager.Load(@"Quaver.Resources/Textures/UI/Replay/replay-controller-panel.png");
public static Texture2D ReplayControllerSpeedPanel => TextureManager.Load(@"Quaver.Resources/Textures/UI/Replay/replay-controller-speed-panel.png");
public static Texture2D OptionsCustomFpsButton => TextureManager.Load(@"Quaver.Resources/Textures/UI/Options/custom-fps-button.png");
public static Texture2D OptionsCalibrateOffsetButton => TextureManager.Load(@"Quaver.Resources/Textures/UI/Options/calibrate-offset-button.png");
public static Texture2D OptionsUpdateButton => TextureManager.Load(@"Quaver.Resources/Textures/UI/Options/options-update-button.png");
public static Texture2D OptionsExportSkinButton => TextureManager.Load(@"Quaver.Resources/Textures/UI/Options/export-skin-button.png");
Expand Down
2 changes: 1 addition & 1 deletion Quaver.Shared/Audio/AudioEngine.cs
Expand Up @@ -173,7 +173,7 @@ public static double GetNearestSnapTimeFromTime(Qua map, Direction direction, in

var nearestTick = Math.Round((pointToSnap - point.StartTime) / snapTimePerBeat) * snapTimePerBeat + point.StartTime;

if ((int) Math.Abs(nearestTick - time) <= (int) snapTimePerBeat)
if (Math.Abs(nearestTick - time) <= snapTimePerBeat * 1.01)
return nearestTick;

if (direction == Direction.Backward)
Expand Down
6 changes: 6 additions & 0 deletions Quaver.Shared/Config/ConfigHelper.cs
Expand Up @@ -215,6 +215,12 @@ internal static Color ReadColor(Color defaultColor, string newVal)
try
{
var colorSplit = newVal.Split(',');

if (colorSplit.Length > 3)
{
return new Color(byte.Parse(colorSplit[0]), byte.Parse(colorSplit[1]), byte.Parse(colorSplit[2]), byte.Parse(colorSplit[3]));
}

return new Color(byte.Parse(colorSplit[0]), byte.Parse(colorSplit[1]), byte.Parse(colorSplit[2]));
}
catch (Exception)
Expand Down

0 comments on commit 0f7ddaf

Please sign in to comment.