-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from SpontanCombust/dev
- Loading branch information
Showing
20 changed files
with
107 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,13 @@ env: | |
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
release: | ||
parser: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Rust stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
|
@@ -25,74 +26,96 @@ jobs: | |
working-directory: ./settings-parser | ||
|
||
- name: Zip parser | ||
uses: thedoctor0/zip-release@main | ||
uses: thedoctor0/zip-release@0.7.5 | ||
with: | ||
type: 'zip' | ||
filename: "TW3_MSF_Parser.zip" | ||
path: "./settings-parser/target/x86_64-pc-windows-msvc/release/settings_parser.exe" | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: parser | ||
path: "TW3_MSF_Parser.zip" | ||
|
||
|
||
scripts: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Remove manifests locally to not include them in released packages | ||
run: find . -type f -name "witcherscript.toml" -delete | ||
|
||
- name: Zip modSettingsFramework | ||
uses: thedoctor0/zip-release@main | ||
uses: thedoctor0/zip-release@0.7.5 | ||
with: | ||
type: 'zip' | ||
filename: "TW3_MSF_modSettingsFramework.zip" | ||
path: "./modSettingsFramework" | ||
recursive_exclusions: "*/witcherscript.toml" | ||
|
||
- name: Zip v1.32 hooks | ||
uses: thedoctor0/zip-release@main | ||
uses: thedoctor0/zip-release@0.7.5 | ||
with: | ||
type: 'zip' | ||
filename: "TW3_MSF_Hooks_1.32.zip" | ||
path: "./hooks/v1.32/modSettingsFrameworkHooks" | ||
recursive_exclusions: "*/witcherscript.toml" | ||
- name: Zip v4.00 hooks | ||
uses: thedoctor0/zip-release@main | ||
uses: thedoctor0/zip-release@0.7.5 | ||
with: | ||
type: 'zip' | ||
filename: "TW3_MSF_Hooks_4.00.zip" | ||
path: "./hooks/v4.00/modSettingsFrameworkHooks" | ||
recursive_exclusions: "*/witcherscript.toml" | ||
- name: Zip v4.03 hooks | ||
uses: thedoctor0/zip-release@main | ||
uses: thedoctor0/zip-release@0.7.5 | ||
with: | ||
type: 'zip' | ||
filename: "TW3_MSF_Hooks_4.03.zip" | ||
path: "./hooks/v4.03/modSettingsFrameworkHooks" | ||
recursive_exclusions: "*/witcherscript.toml" | ||
- name: Zip v4.04 hooks | ||
uses: thedoctor0/zip-release@main | ||
uses: thedoctor0/zip-release@0.7.5 | ||
with: | ||
type: 'zip' | ||
filename: "TW3_MSF_Hooks_4.04.zip" | ||
path: "./hooks/v4.04/modSettingsFrameworkHooks" | ||
recursive_exclusions: "*/witcherscript.toml" | ||
- name: Zip v4.04a_REDkit hooks | ||
uses: thedoctor0/zip-release@main | ||
- name: Zip v4.04a_REDkit+ hooks | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: "TW3_MSF_Hooks_4.04a_REDkit.zip" | ||
path: "./hooks/v4.04a_REDkit/modSettingsFrameworkHooks" | ||
recursive_exclusions: "*/witcherscript.toml" | ||
filename: "TW3_MSF_Hooks_4.04a_REDkit+.zip" | ||
path: "./hooks/v4.04a_REDkit+/modSettingsFrameworkHooks" | ||
|
||
- name: Zip samples | ||
uses: thedoctor0/zip-release@main | ||
uses: thedoctor0/zip-release@0.7.5 | ||
with: | ||
type: 'zip' | ||
filename: "TW3_MSF_Samples.zip" | ||
path: "./samples" | ||
recursive_exclusions: "*/witcherscript.toml" | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: scripts | ||
path: "*.zip" | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [parser, scripts] | ||
if: success() | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: "./artifacts" | ||
merge-multiple: true | ||
|
||
- name: Create draft release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: > | ||
TW3_MSF_modSettingsFramework.zip, | ||
TW3_MSF_Parser.zip, | ||
TW3_MSF_Samples.zip, | ||
TW3_MSF_Hooks_1.32.zip, | ||
TW3_MSF_Hooks_4.00.zip, | ||
TW3_MSF_Hooks_4.03.zip, | ||
TW3_MSF_Hooks_4.04.zip, | ||
TW3_MSF_Hooks_4.04a_REDkit.zip | ||
artifacts: "artifacts/*.zip" | ||
draft: true | ||
generateReleaseNotes: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...4.04a_REDkit+/modSettingsFrameworkHooks/content/scripts/local/settings_framework_hooks.ws
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// +++ game/r4Game.ws +++ | ||
|
||
@addField(CR4Game) | ||
public var m_settingsMasterRegistry : CSettingsMasterRegistry; | ||
|
||
// --- game/r4Game.ws --- | ||
|
||
|
||
// +++ game/gui/commonMainMenuBase.ws +++ | ||
|
||
@wrapMethod(CR4CommonMainMenuBase) | ||
function OnConfigUI() { | ||
wrappedMethod(); | ||
|
||
GetSettingsMasterRegistry().ReadAllSettings(); | ||
} | ||
|
||
// --- game/gui/commonMainMenuBase.ws --- | ||
|
||
|
||
// +++ game/gui/main_menu/ingameMenu.ws +++ | ||
|
||
@wrapMethod(CR4IngameMenu) | ||
function SaveChangedSettings() { | ||
var shouldUpdate: bool; | ||
|
||
shouldUpdate = this.hasChangedOption; | ||
|
||
wrappedMethod(); | ||
|
||
if (shouldUpdate) { | ||
LogChannel('ModSettingsFramework', "Detected some changes."); | ||
GetSettingsMasterRegistry().ReadAllSettings(); | ||
} | ||
} | ||
|
||
// --- game/gui/main_menu/ingameMenu.ws --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-12.4 KB
hooks/v4.04a_REDkit/modSettingsFrameworkHooks/content/scripts/game/gui/commonMainMenuBase.ws
Binary file not shown.
Binary file removed
BIN
-192 KB
.../v4.04a_REDkit/modSettingsFrameworkHooks/content/scripts/game/gui/main_menu/ingameMenu.ws
Binary file not shown.
Binary file removed
BIN
-122 KB
hooks/v4.04a_REDkit/modSettingsFrameworkHooks/content/scripts/game/r4Game.ws
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
modSettingsFramework/content/scripts/local/settings_master_registry.ws
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/DifficultyMod/Mods/modSampleDifficultyMod/content/scripts/local/difficulty_mod_base.ws
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Week/Mods/modSampleMonsterOfTheWeek/content/scripts/local/monster_of_the_week_settings.ws
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters