-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FossilOrigin-Name: 03b239e4dea5145405e10253e4aec57b62dd7b54d5db89c13028951363aaabbe
- Loading branch information
Showing
11 changed files
with
147 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<genders Load="Merge"> | ||
<gender Name="males" DoNotReplicateAsPronounSet="false" /> | ||
<gender Name="females" DoNotReplicateAsPronounSet="false" /> | ||
</genders> |
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,55 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<pronounsets Load="Merge"> | ||
<!-- | ||
Reference: | ||
Subjective - Subject | ||
Objective - Object | ||
PossessiveAdjective - Possessive determiner | ||
SubstantivePossesive - Posessive pronoun | ||
Reflexive - Reflexive | ||
--> | ||
<!-- it/its/itself --> | ||
<pronounset | ||
Subjective="it" | ||
Objective="it" | ||
PossessiveAdjective="its" | ||
SubstantivePossessive="its" | ||
Reflexive="itself" | ||
/> | ||
|
||
<!-- they/them/themself --> | ||
<pronounset | ||
Subjective="they" | ||
Objective="them" | ||
PossessiveAdjective="their" | ||
SubstantivePossessive="theirs" | ||
Reflexive="themself" | ||
/> | ||
|
||
<!-- one/one's/oneself --> | ||
<pronounset | ||
Subjective="one" | ||
Objective="one" | ||
PossessiveAdjective="one's" | ||
SubstantivePossessive="one's" | ||
Reflexive="oneself" | ||
/> | ||
|
||
<!-- e/em/eir (Spivak) --> | ||
<pronounset | ||
Subjective="e" | ||
Objective="em" | ||
PossessiveAdjective="eir" | ||
SubstantivePossessive="eirs" | ||
Reflexive="emself" | ||
/> | ||
|
||
<!-- thon/thons --> | ||
<pronounset | ||
Subjective="thon" | ||
Objective="thon" | ||
PossessiveAdjective="thons" | ||
SubstantivePossessive="thon's" | ||
Reflexive="thonself" | ||
/> | ||
</pronounsets> |
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,7 @@ | ||
# Qud: Genders Unleashed | ||
|
||
A mod that works in conjunction with the [Gender and Pronoun Sets](https://steamcommunity.com/sharedfiles/filedetails/?id=1735379738) mod to allow your delver to wreathe themselves in the gender identity and pronouns they feel most comfortable in. | ||
|
||
Specifically, this mod allows you to pick from all personal genders and pronouns defined in the game, with some additions. | ||
|
||
[Workshop Page](https://steamcommunity.com/sharedfiles/filedetails/?id=2815078000) |
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,14 @@ | ||
using XRL.UI; | ||
using XRL.Wish; | ||
|
||
[HasWishCommand] | ||
public class GenderUploadForm | ||
{ | ||
[WishCommand(Command = "gendermeme")] | ||
static public bool GenderMeme() | ||
{ | ||
string[] opts = {"Male", "Female", "Custom [Upload custom gender (max 10MB)]"}; | ||
Popup.ShowOptionList("Gender", opts); | ||
return true; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,8 @@ | ||
{ | ||
"id": "QudGendersUnleashed", | ||
"title": "{{m-Y-g alternation|Qud: Genders Unleashed}}", | ||
"description": "Adds gendeers and pronounce", | ||
"version": "1.0", | ||
"author": "librarianmage", | ||
"previewImage": "icon.png" | ||
} |
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,50 @@ | ||
using HarmonyLib; | ||
using System.Collections.Generic; | ||
using System.Reflection; | ||
using XRL; | ||
using XRL.World; | ||
using XRL.CharacterBuilds.Qud.UI; | ||
|
||
namespace QudGendersUnleashed.HarmonyPatches | ||
{ | ||
[HarmonyPatch] | ||
public static class CharacterCreationGenderPatch | ||
{ | ||
public static MethodInfo TargetMethod() | ||
{ | ||
return AccessTools.DeclaredMethod(AccessTools.Inner(typeof(QudCustomizeCharacterModuleWindow), "<OnChooseGenderAsync>d__5"), "MoveNext"); | ||
} | ||
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions) | ||
{ | ||
MethodInfo oldMethod = AccessTools.Method(typeof(Gender), nameof(Gender.GetAllGenericPersonalSingular)); | ||
MethodInfo newMethod = AccessTools.Method(typeof(Gender), nameof(Gender.GetAllPersonal)); | ||
return HarmonyLib.Transpilers.MethodReplacer(instructions, oldMethod, newMethod); | ||
} | ||
} | ||
|
||
[HarmonyPatch] | ||
public static class CharacterCreationPronounPatch | ||
{ | ||
public static MethodBase TargetMethod() | ||
{ | ||
return AccessTools.DeclaredMethod(AccessTools.Inner(typeof(QudCustomizeCharacterModuleWindow), "<OnChoosePronounSetAsync>d__7"), "MoveNext"); | ||
} | ||
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions) | ||
{ | ||
MethodInfo oldMethod = AccessTools.Method(typeof(PronounSet), nameof(PronounSet.GetAllGenericPersonalSingular)); | ||
MethodInfo newMethod = AccessTools.Method(typeof(PronounSet), nameof(PronounSet.GetAllPersonal)); | ||
return HarmonyLib.Transpilers.MethodReplacer(instructions, oldMethod, newMethod); | ||
} | ||
} | ||
|
||
[HarmonyPatch(typeof(PronounAndGenderSets),nameof(PronounAndGenderSets.ShowChangePronounSet))] | ||
public static class PlaytimePronounPatch | ||
{ | ||
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions) | ||
{ | ||
MethodInfo oldMethod = AccessTools.Method(typeof(PronounSet), nameof(PronounSet.GetAllGenericPersonal)); | ||
MethodInfo newMethod = AccessTools.Method(typeof(PronounSet), nameof(PronounSet.GetAllPersonal)); | ||
return HarmonyLib.Transpilers.MethodReplacer(instructions, oldMethod, newMethod); | ||
} | ||
} | ||
} |
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,8 @@ | ||
{ | ||
"WorkshopId": 2815078000, | ||
"Title": "Qud: Genders Unleashed", | ||
"Description": "A mod that works in conjunction with the Gender and Pronoun Sets ( https://steamcommunity.com/sharedfiles/filedetails/?id=1735379738 ) mod to allow your delver to wreathe themselves in the gender identity and pronouns they feel most comfortable in.\n\nSpecifically, this mod allows you to pick from all personal genders and pronouns defined in the game, with some additions.\n\nTested on game version 203.39\n\nGithub link: https://github.com/librarianmage/QudGendersUnleashed", | ||
"Tags": "Stable,Beta,Script,Gender,Pronouns", | ||
"Visibility": "2", | ||
"ImagePath": "icon.png" | ||
} |