Skip to content

Commit

Permalink
The Safe has been bettered
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Sep 12, 2024
0 parents commit bda1838
Show file tree
Hide file tree
Showing 18 changed files with 1,014 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build Geode Mod

on:
workflow_dispatch:
push:
branches:
- "master"

jobs:
build:
strategy:
fail-fast: false
matrix:
config:
- name: Windows
os: windows-latest
build-config: RelWithDebInfo

- name: macOS
os: macos-latest

- name: Android32
os: ubuntu-latest
target: Android32

- name: Android64
os: ubuntu-latest
target: Android64

name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}

steps:
- uses: actions/checkout@v4

- name: Build the mod
uses: geode-sdk/build-geode-mod@main
with:
build-config: ${{ matrix.config.build-config || 'Release' }}
export-pdb: true
combine: true
target: ${{ matrix.config.target }}

package:
name: Package builds
runs-on: ubuntu-latest
needs: ['build']

steps:
- uses: geode-sdk/build-geode-mod/combine@main
id: build

- uses: actions/upload-artifact@v4
with:
name: Build Output
path: ${{ steps.build.outputs.build-output }}

release:
name: Release the mod
runs-on: ubuntu-latest
needs: ['package']

steps:
- uses: actions/checkout@v4

- uses: hiimjustin000/release-geode-mod@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
61 changes: 61 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# Macos be like
**/.DS_Store

# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Ignore build folders
**/build
# Ignore platform specific build folders
build-*/

# Workspace files are user-specific
*.sublime-workspace

# ILY vscode
**/.vscode
.idea/

# clangd
.cache/

# Visual Studio
.vs/

# Bruh
logo.pdn
26 changes: 26 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (APPLE)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
endif()
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(BetterSafe VERSION 1.0.0)

add_library(${PROJECT_NAME} SHARED
src/BetterSafe.cpp
src/BSCalendarPopup.cpp
src/BSHoverNode.cpp
src/main.cpp
)

if (NOT DEFINED ENV{GEODE_SDK})
message(FATAL_ERROR "Unable to find Geode SDK! Please define GEODE_SDK environment variable to point to Geode")
else()
message(STATUS "Found Geode: $ENV{GEODE_SDK}")
endif()

add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode)

setup_geode_mod(${PROJECT_NAME})
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 hiimjustin000

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Better Safe
A mod that expands The Safe with a calendar.

# Features
- Calendars for daily and weekly levels, showing what was featured on each day
- Daily and weekly level previews, showing basic information about the level on click
- Navigation buttons to go to the previous or next month
- A label showing the current month and year, which can be used to switch to a specific month

# Credits
- [Opianisal](https://gdbrowser.com/u/25221350) - Idea for the mod
- [Every Rated Level Spreadsheet](https://docs.google.com/spreadsheets/d/1BBx9X8IYBtr7dA5cWu_smM2XBkLZzCXy7TjeEWRgag0) - Help with daily/weekly dates
- [hiimjustin000](https://gdbrowser.com/u/7466002) - Creator of the mod

# Gallery
![Daily Calendar](./resources/daily-calendar.png)\
![Weekly Calendar](./resources/weekly-calendar.png)

# License
This mod is licensed under the [MIT License](./LICENSE).
17 changes: 17 additions & 0 deletions about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Better Safe
A mod that expands The Safe with a calendar.

# Features
- Calendars for daily and weekly levels, showing what was featured on each day
- Daily and weekly level previews, showing basic information about the level on click
- Navigation buttons to go to the previous or next month
- A label showing the current month and year, which can be used to switch to a specific month

# Credits
- [Opianisal](user:25221350) - Idea for the mod
- [Every Rated Level Spreadsheet](https://docs.google.com/spreadsheets/d/1BBx9X8IYBtr7dA5cWu_smM2XBkLZzCXy7TjeEWRgag0) - Help with daily/weekly dates
- [hiimjustin000](user:7466002) - Creator of the mod

# Gallery
![Daily Calendar](hiimjustin000.better_safe/daily-calendar.png?scale=0.75)\
![Weekly Calendar](hiimjustin000.better_safe/weekly-calendar.png?scale=0.75)
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Better Safe Changelog
## v1.0.0 (2024-09-12)
- Initial release
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"geode": "3.5.0",
"gd": {
"android": "2.206",
"win": "2.206",
"mac": "2.206"
},
"version": "v1.0.0",
"id": "hiimjustin000.better_safe",
"name": "Better Safe",
"developer": "hiimjustin000",
"description": "A mod that expands The Safe with a calendar.",
"repository": "https://github.com/hiimjustin000/BetterSafe",
"settings": {
"sunday-first": {
"name": "Sunday First",
"description": "Start the week on Sunday instead of Monday.",
"type": "bool",
"default": false
}
},
"resources": {
"sprites": [
"resources/*.png"
]
},
"links": {
"community": "https://discord.gg/QVKmbvBXA7",
"source": "https://github.com/hiimjustin000/BetterSafe",
"homepage": "https://www.hiimjustin000.com"
},
"tags": [
"content",
"enhancement",
"interface",
"online",
"utility"
]
}
Binary file added resources/daily-calendar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/weekly-calendar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bda1838

Please sign in to comment.