Skip to content

Commit 4a76552

Browse files
committed
Update for 1.26.2
1 parent 2303464 commit 4a76552

6 files changed

Lines changed: 59 additions & 67 deletions

File tree

include/ModConfig.hpp

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,9 @@ DECLARE_CONFIG(ModConfig,
99
CONFIG_VALUE(Fadeout, bool, "Fadeout", false);
1010
CONFIG_VALUE(FullFade, bool, "Use fade between 15% and 95% colors", false);
1111
CONFIG_VALUE(Alpha, float, "Alpha", 1.0);
12-
CONFIG_VALUE(Diehp, UnityEngine::Color, "under 15% energy", UnityEngine::Color(1.0f, 0.0f, 0.0f, 0.0f));
13-
CONFIG_VALUE(Lowhp, UnityEngine::Color, "under 50% energy", UnityEngine::Color(1.0f, 0.0f, 0.0f, 0.0f));
14-
CONFIG_VALUE(Midhp, UnityEngine::Color, "over 70% energy", UnityEngine::Color(0.0f, 1.0f, 0.0f, 0.0f));
15-
CONFIG_VALUE(Highhp, UnityEngine::Color, "over 95% energy", UnityEngine::Color(0.0f, 1.0f, 1.0f, 0.0f));
16-
CONFIG_VALUE(Defhp, UnityEngine::Color, "over 50% energy", UnityEngine::Color(1.0f, 1.0f, 1.0f, 0.0f));
17-
18-
CONFIG_INIT_FUNCTION(
19-
CONFIG_INIT_VALUE(Rainbow);
20-
CONFIG_INIT_VALUE(AlwaysRainbow);
21-
CONFIG_INIT_VALUE(Fadeout);
22-
CONFIG_INIT_VALUE(FullFade);
23-
CONFIG_INIT_VALUE(Alpha);
24-
CONFIG_INIT_VALUE(Diehp);
25-
CONFIG_INIT_VALUE(Lowhp);
26-
CONFIG_INIT_VALUE(Midhp);
27-
CONFIG_INIT_VALUE(Highhp);
28-
CONFIG_INIT_VALUE(Defhp);
29-
)
12+
CONFIG_VALUE(Diehp, UnityEngine::Color, "under 15% energy", ConfigUtils::Color(1.0f, 0.0f, 0.0f, 0.0f));
13+
CONFIG_VALUE(Lowhp, UnityEngine::Color, "under 50% energy", ConfigUtils::Color(1.0f, 0.0f, 0.0f, 0.0f));
14+
CONFIG_VALUE(Midhp, UnityEngine::Color, "over 70% energy", ConfigUtils::Color(0.0f, 1.0f, 0.0f, 0.0f));
15+
CONFIG_VALUE(Highhp, UnityEngine::Color, "over 95% energy", ConfigUtils::Color(0.0f, 1.0f, 1.0f, 0.0f));
16+
CONFIG_VALUE(Defhp, UnityEngine::Color, "over 50% energy", ConfigUtils::Color(1.0f, 1.0f, 1.0f, 0.0f));
3017
)

mod.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
"name": "RedBar",
44
"id": "RedBar",
55
"author": "ComputerElite",
6-
"version": "1.11.0",
6+
"version": "1.12.0",
77
"packageId": "com.beatgames.beatsaber",
8-
"packageVersion": "1.25.1",
8+
"packageVersion": "1.26.2",
99
"coverImage": "cover.png",
1010
"dependencies": [
1111
{
12-
"version": "^0.15.21",
12+
"version": "^0.15.22",
1313
"id": "custom-types",
14-
"downloadIfMissing": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.21/CustomTypes.qmod"
14+
"downloadIfMissing": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.22/CustomTypes.qmod"
1515
},
1616
{
17-
"version": "^0.28.0",
17+
"version": "^0.31.0",
1818
"id": "codegen",
19-
"downloadIfMissing": "https://github.com/sc2ad/BeatSaber-Quest-Codegen/releases/download/v0.28.0/Codegen.qmod"
19+
"downloadIfMissing": "https://github.com/sc2ad/BeatSaber-Quest-Codegen/releases/download/v0.31.0/Codegen.qmod"
2020
},
2121
{
22-
"version": "^0.17.5",
22+
"version": "^0.17.9",
2323
"id": "questui",
24-
"downloadIfMissing": "https://github.com/darknight1050/QuestUI/releases/download/v0.17.5/QuestUI.qmod"
24+
"downloadIfMissing": "https://github.com/darknight1050/QuestUI/releases/download/v0.17.9/QuestUI.qmod"
2525
}
2626
],
2727
"modFiles": [

mod.template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"_QPVersion": "0.1.1",
33
"id": "RedBar",
44
"name": "RedBar",
5-
"version": "1.11.0",
5+
"version": "1.12.0",
66
"author": "ComputerElite",
77
"packageId": "com.beatgames.beatsaber",
8-
"packageVersion": "1.25.1",
8+
"packageVersion": "1.26.2",
99
"coverImage": "cover.png",
1010
"modFiles": [
1111
],

qpm.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,19 @@
2121
"versionRange": "^3.14.0",
2222
"additionalData": {}
2323
},
24-
{
25-
"id": "questui",
26-
"versionRange": "^0.17.5",
27-
"additionalData": {}
28-
},
2924
{
3025
"id": "codegen",
31-
"versionRange": "^0.28.0",
26+
"versionRange": "^0.31.0",
3227
"additionalData": {}
3328
},
3429
{
35-
"id": "custom-types",
36-
"versionRange": "^0.15.21",
30+
"id": "questui",
31+
"versionRange": "^0.17.9",
3732
"additionalData": {}
3833
},
3934
{
40-
"id": "config-utils",
41-
"versionRange": "^0.8.0",
35+
"id": "custom-types",
36+
"versionRange": "^0.15.22",
4237
"additionalData": {}
4338
}
4439
],

qpm.shared.json

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@
2323
"additionalData": {}
2424
},
2525
{
26-
"id": "questui",
27-
"versionRange": "^0.17.5",
26+
"id": "codegen",
27+
"versionRange": "^0.31.0",
2828
"additionalData": {}
2929
},
3030
{
31-
"id": "codegen",
32-
"versionRange": "^0.28.0",
31+
"id": "questui",
32+
"versionRange": "^0.17.9",
3333
"additionalData": {}
3434
},
3535
{
3636
"id": "custom-types",
37-
"versionRange": "^0.15.21",
37+
"versionRange": "^0.15.22",
3838
"additionalData": {}
3939
},
4040
{
4141
"id": "config-utils",
42-
"versionRange": "^0.8.0",
42+
"versionRange": "^1.0.1",
4343
"additionalData": {}
4444
}
4545
],
@@ -71,30 +71,41 @@
7171
{
7272
"dependency": {
7373
"id": "config-utils",
74-
"versionRange": "^0.8.0",
74+
"versionRange": "^1.0.1",
7575
"additionalData": {
7676
"headersOnly": true,
77-
"soLink": "https://github.com/darknight1050/config-utils/releases/download/v0.8.0/libconfig-utils_test.so",
78-
"debugSoLink": "https://github.com/darknight1050/config-utils/releases/download/v0.8.0/debug_libconfig-utils_test.so",
77+
"soLink": "https://github.com/darknight1050/config-utils/releases/download/v1.0.1/libconfig-utils_test.so",
78+
"debugSoLink": "https://github.com/darknight1050/config-utils/releases/download/v1.0.1/debug_libconfig-utils_test.so",
7979
"overrideSoName": "libconfig-utils_test.so",
80-
"branchName": "version-v0.8.0"
80+
"branchName": "version-v1.0.1"
8181
}
8282
},
83-
"version": "0.8.0"
83+
"version": "1.0.1"
8484
},
8585
{
8686
"dependency": {
8787
"id": "custom-types",
88-
"versionRange": "^0.15.21",
88+
"versionRange": "^0.15.22",
8989
"additionalData": {
90-
"soLink": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.21/libcustom-types.so",
91-
"debugSoLink": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.21/debug_libcustom-types.so",
90+
"soLink": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.22/libcustom-types.so",
91+
"debugSoLink": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.22/debug_libcustom-types.so",
9292
"overrideSoName": "libcustom-types.so",
93-
"modLink": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.21/CustomTypes.qmod",
94-
"branchName": "version-v0.15.21"
93+
"modLink": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.22/CustomTypes.qmod",
94+
"branchName": "version-v0.15.22"
95+
}
96+
},
97+
"version": "0.15.22"
98+
},
99+
{
100+
"dependency": {
101+
"id": "rapidjson-macros",
102+
"versionRange": "^0.4.2",
103+
"additionalData": {
104+
"headersOnly": true,
105+
"branchName": "version-v0.4.2"
95106
}
96107
},
97-
"version": "0.15.21"
108+
"version": "0.4.2"
98109
},
99110
{
100111
"dependency": {
@@ -111,34 +122,34 @@
111122
{
112123
"dependency": {
113124
"id": "codegen",
114-
"versionRange": "^0.28.0",
125+
"versionRange": "^0.31.0",
115126
"additionalData": {
116-
"soLink": "https://github.com/sc2ad/BeatSaber-Quest-Codegen/releases/download/v0.28.0/libcodegen.so",
127+
"soLink": "https://github.com/sc2ad/BeatSaber-Quest-Codegen/releases/download/v0.31.0/libcodegen.so",
117128
"overrideSoName": "libcodegen.so",
118-
"modLink": "https://github.com/sc2ad/BeatSaber-Quest-Codegen/releases/download/v0.28.0/Codegen.qmod",
119-
"branchName": "version-v0.28.0"
129+
"modLink": "https://github.com/sc2ad/BeatSaber-Quest-Codegen/releases/download/v0.31.0/Codegen.qmod",
130+
"branchName": "version-v0.31.0"
120131
}
121132
},
122-
"version": "0.28.0"
133+
"version": "0.31.0"
123134
},
124135
{
125136
"dependency": {
126137
"id": "questui",
127-
"versionRange": "^0.17.5",
138+
"versionRange": "^0.17.9",
128139
"additionalData": {
129-
"soLink": "https://github.com/darknight1050/QuestUI/releases/download/v0.17.5/libquestui.so",
130-
"debugSoLink": "https://github.com/darknight1050/QuestUI/releases/download/v0.17.5/debug_libquestui.so",
140+
"soLink": "https://github.com/darknight1050/QuestUI/releases/download/v0.17.9/libquestui.so",
141+
"debugSoLink": "https://github.com/darknight1050/QuestUI/releases/download/v0.17.9/debug_libquestui.so",
131142
"overrideSoName": "libquestui.so",
132-
"modLink": "https://github.com/darknight1050/QuestUI/releases/download/v0.17.5/QuestUI.qmod",
133-
"branchName": "version-v0.17.5",
143+
"modLink": "https://github.com/darknight1050/QuestUI/releases/download/v0.17.9/QuestUI.qmod",
144+
"branchName": "version-v0.17.9",
134145
"compileOptions": {
135146
"systemIncludes": [
136147
"shared/cppcodec"
137148
]
138149
}
139150
}
140151
},
141-
"version": "0.17.5"
152+
"version": "0.17.9"
142153
}
143154
]
144155
}

src/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ using namespace UnityEngine;
3535
using namespace QuestUI;
3636

3737
static ModInfo modInfo;
38-
DEFINE_CONFIG(ModConfig);
3938

4039
Logger& getLogger() {
4140
static Logger* logger = new Logger(modInfo, LoggerOptions(false, true));

0 commit comments

Comments
 (0)