Skip to content

Commit

Permalink
everything
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiLko committed Mar 31, 2024
0 parents commit decdecf
Show file tree
Hide file tree
Showing 11 changed files with 515 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build Geode Mod

on:
workflow_dispatch:
push:
branches:
- "wa"

jobs:
build:
strategy:
fail-fast: false
matrix:
config:
- name: Windows
os: windows-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@v1
with:
combine: true
build-config: RelWithDebInfo
target: ${{ matrix.config.target }}

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

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

- uses: actions/upload-artifact@v3
with:
name: Build Output
path: ${{ steps.build.outputs.build-output }}
44 changes: 44 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: android

on:
workflow_dispatch:
push:
branches:
- "wa"

jobs:
build:
strategy:
fail-fast: false
matrix:
config:

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

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

steps:
- uses: actions/checkout@v4

- name: Build the mod
uses: geode-sdk/build-geode-mod@v1
with:
combine: true
target: ${{ matrix.config.target }}

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

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

- uses: actions/upload-artifact@v3
with:
name: Build Output
path: ${{ steps.build.outputs.build-output }}
60 changes: 60 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
build/

# 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/
22 changes: 22 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(LiteralLevelLengths VERSION 1.0.0)

add_library(${PROJECT_NAME} SHARED
src/main.cpp
src/custom_setting.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})
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# LiteralLevelLengths

This is where she makes a mod.
3 changes: 3 additions & 0 deletions about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Literal Level Lengths

Shows the length of the level in different measurement units.
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.
24 changes: 24 additions & 0 deletions mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"geode": "2.0.0-beta.23",
"gd": {
"win": "2.204",
"android": "2.205"
},
"version": "v1.0.0",
"settings": {
"enabled": {
"name": "Enabled",
"description": "Enable literal level lengths.",
"type": "bool",
"default": true
},
"unit": {
"type": "custom"
}
},
"id": "zilko.literal_level_lengths",
"name": "Literal Level Lengths",
"developer": "Zilko",
"description": "Shows the literal length of levels.",
"repository": "https://github.com/ZiLko/Literal_Level_Lengths"
}
11 changes: 11 additions & 0 deletions src/custom_setting.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "custom_setting.hpp"

using namespace geode::prelude;

SettingNode* SectionSettingValue::createNode(float width) {
return SectionSettingNode::create(this, width);
}

SettingNode* ButtonCustomSettingValue::createNode(float width) {
return ButtonCustomSettingNode::create(this, width);
}
Loading

0 comments on commit decdecf

Please sign in to comment.