Skip to content

Commit

Permalink
Merge pull request #55 from krafs/develop
Browse files Browse the repository at this point in the history
Added languages to all versioned folders.
  • Loading branch information
krafs authored Aug 4, 2021
2 parents e444c03 + c5e3820 commit c0bd90c
Show file tree
Hide file tree
Showing 46 changed files with 877 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/LevelUp/LevelUp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</ItemGroup>

<ItemGroup Condition="$(Configuration) == 'v1.3'">
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.3.3076" />
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.3.3080" />
<Compile Include="Actions\FleckAnimation.cs" />
</ItemGroup>

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions v1.2/Defs/Actions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<LevelUp.ActionDef>
<defName>LevelUpActionDef_Sound</defName>
<label>Sound</label>
<description>Plays a sound.</description>
<actionClass>LevelUp.SoundAction</actionClass>
</LevelUp.ActionDef>

<LevelUp.ActionDef>
<defName>LevelUpActionDef_Animation</defName>
<label>Animation</label>
<description>Displays a simple, possibly animated, graphic on the colonist.</description>
<actionClass>LevelUp.AnimationAction</actionClass>
</LevelUp.ActionDef>

<LevelUp.ActionDef>
<defName>LevelUpActionDef_Message</defName>
<label>Text message</label>
<description>Displays a text message in the top-left corner of the screen.</description>
<actionClass>LevelUp.MessageAction</actionClass>
</LevelUp.ActionDef>

<LevelUp.ActionDef>
<defName>LevelUpActionDef_OverheadMessage</defName>
<label>Overhead message</label>
<description>Displays a text message on the colonist.</description>
<actionClass>LevelUp.OverheadMessageAction</actionClass>
</LevelUp.ActionDef>
</Defs>
91 changes: 91 additions & 0 deletions v1.2/Defs/Animations.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThingDef ParentName="MoteBase">
<defName>LevelUpAnimation_Radiance</defName>
<label>Radiance</label>
<modExtensions>
<li Class="LevelUp.AnimationDefExtension">
<rotationRate>100</rotationRate>
</li>
</modExtensions>
<graphicData>
<texPath>Things/Mote/PowerBeam</texPath>
<shaderType>MoteGlow</shaderType>
</graphicData>
<thingClass>MoteThrownAttached</thingClass>
<altitudeLayer>MoteOverhead</altitudeLayer>
<mote>
<fadeInTime>0.1</fadeInTime>
<fadeOutTime>0.4</fadeOutTime>
<growthRate>6.0</growthRate>
</mote>
</ThingDef>

<ThingDef ParentName="MoteBase">
<defName>LevelUpAnimation_Drain</defName>
<label>Drain</label>
<modExtensions>
<li Class="LevelUp.AnimationDefExtension">
<scale>8</scale>
<rotationRate>-100</rotationRate>
</li>
</modExtensions>
<graphicData>
<texPath>Things/Mote/PowerBeam</texPath>
<shaderType>MoteGlow</shaderType>
<color>(255, 51, 0, 200)</color>
</graphicData>
<thingClass>MoteThrownAttached</thingClass>
<altitudeLayer>MoteLow</altitudeLayer>
<mote>
<fadeInTime>0.1</fadeInTime>
<fadeOutTime>0.6</fadeOutTime>
<growthRate>-6.0</growthRate>
</mote>
</ThingDef>

<ThingDef ParentName="MoteBase">
<defName>LevelUpAnimation_UpwardChevron</defName>
<label>Upward chevron</label>
<modExtensions>
<li Class="LevelUp.AnimationDefExtension">
<velocitySpeed>1</velocitySpeed>
</li>
</modExtensions>
<graphicData>
<texPath>LevelUp/Mote/DoubleChevron</texPath>
<shaderType>MoteGlow</shaderType>
<color>(255,255,0,100)</color>
</graphicData>
<thingClass>MoteThrownAttached</thingClass>
<altitudeLayer>MoteOverhead</altitudeLayer>
<mote>
<fadeInTime>1.5</fadeInTime>
<fadeOutTime>1.5</fadeOutTime>
</mote>
</ThingDef>

<ThingDef ParentName="MoteBase">
<defName>LevelUpAnimation_DownwardChevron</defName>
<label>Downward chevron</label>
<modExtensions>
<li Class="LevelUp.AnimationDefExtension">
<velocitySpeed>1</velocitySpeed>
<velocityAngle>180</velocityAngle>
<rotation>180</rotation>
</li>
</modExtensions>
<graphicData>
<texPath>LevelUp/Mote/DoubleChevron</texPath>
<shaderType>MoteGlow</shaderType>
<color>(255,0,0,100)</color>
</graphicData>
<thingClass>MoteThrownAttached</thingClass>
<altitudeLayer>MoteOverhead</altitudeLayer>
<mote>
<fadeInTime>1.3</fadeInTime>
<fadeOutTime>1.3</fadeOutTime>
<unattachedDrawOffset>(0,0,2)</unattachedDrawOffset>
</mote>
</ThingDef>
</Defs>
198 changes: 198 additions & 0 deletions v1.2/Defs/Sounds.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<SoundDef>
<defName>LevelUpSound_Ding</defName>
<label>Ding</label>
<modExtensions>
<li Class="LevelUp.SoundDefExtension" />
</modExtensions>
<subSounds>
<li>
<onCamera>True</onCamera>
<sustainLoop>False</sustainLoop>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>LevelUp/Ding</clipPath>
</li>
</grains>
</li>
</subSounds>
</SoundDef>

<SoundDef>
<defName>LevelUpSound_Classic</defName>
<label>Classic</label>
<modExtensions>
<li Class="LevelUp.SoundDefExtension" />
</modExtensions>
<subSounds>
<li>
<onCamera>True</onCamera>
<sustainLoop>False</sustainLoop>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>LevelUp/Classic</clipPath>
</li>
</grains>
</li>
</subSounds>
</SoundDef>

<SoundDef>
<defName>LevelUpSound_Negative</defName>
<label>Negative</label>
<modExtensions>
<li Class="LevelUp.SoundDefExtension" />
</modExtensions>
<subSounds>
<li>
<onCamera>True</onCamera>
<sustainLoop>False</sustainLoop>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>LevelUp/Negative</clipPath>
</li>
</grains>
</li>
</subSounds>
</SoundDef>

<!-- Credit: Scott Wilco -->
<SoundDef>
<defName>LevelUpSound_Punchy</defName>
<label>Punchy</label>
<modExtensions>
<li Class="LevelUp.SoundDefExtension" />
</modExtensions>
<subSounds>
<li>
<onCamera>True</onCamera>
<sustainLoop>False</sustainLoop>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>LevelUp/Punchy</clipPath>
</li>
</grains>
</li>
</subSounds>
</SoundDef>

<!-- Credit: likmask -->
<SoundDef>
<defName>LevelUpSound_DistortedSiren</defName>
<label>Distorted Siren</label>
<modExtensions>
<li Class="LevelUp.SoundDefExtension" />
</modExtensions>
<subSounds>
<li>
<onCamera>True</onCamera>
<sustainLoop>False</sustainLoop>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>LevelUp/DistortedSiren</clipPath>
</li>
</grains>
</li>
</subSounds>
</SoundDef>

<!-- Credit: nomiqbomi -->
<SoundDef>
<defName>LevelUpSound_Dissonance</defName>
<label>Dissonance</label>
<modExtensions>
<li Class="LevelUp.SoundDefExtension" />
</modExtensions>
<subSounds>
<li>
<onCamera>True</onCamera>
<sustainLoop>False</sustainLoop>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>LevelUp/Dissonance</clipPath>
</li>
</grains>
</li>
</subSounds>
</SoundDef>

<SoundDef>
<defName>LevelUpSound_Deception</defName>
<label>Deception</label>
<modExtensions>
<li Class="LevelUp.SoundDefExtension" />
</modExtensions>
<subSounds>
<li>
<onCamera>True</onCamera>
<sustainLoop>False</sustainLoop>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>LevelUp/Deception</clipPath>
</li>
</grains>
</li>
</subSounds>
</SoundDef>

<!-- Credit: NenadSimic -->
<SoundDef>
<defName>LevelUpSound_Jazzy</defName>
<label>Jazzy</label>
<modExtensions>
<li Class="LevelUp.SoundDefExtension" />
</modExtensions>
<subSounds>
<li>
<onCamera>True</onCamera>
<sustainLoop>False</sustainLoop>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>LevelUp/Jazzy</clipPath>
</li>
</grains>
</li>
</subSounds>
</SoundDef>

<SoundDef>
<defName>LevelUpSound_Strum</defName>
<label>Strum</label>
<modExtensions>
<li Class="LevelUp.SoundDefExtension" />
</modExtensions>
<subSounds>
<li>
<onCamera>True</onCamera>
<sustainLoop>False</sustainLoop>
<grains>
<li Class="AudioGrain_Clip">
<clipPath>LevelUp/Strum</clipPath>
</li>
</grains>
</li>
</subSounds>
</SoundDef>

<!-- Credit: plasterbrain -->
<SoundDef>
<defName>LevelUpSound_TadaFanfare</defName>
<label>Tada Fanfare</label>
<modExtensions>
<li Class="LevelUp.SoundDefExtension" />
</modExtensions>
<subSounds>
<li>
<onCamera>True</onCamera>
<sustainLoop>False</sustainLoop>
<grains>
<li Class="AudioGrain_Folder">
<clipFolderPath>LevelUp/TadaFanfare</clipFolderPath>
</li>
</grains>
</li>
</subSounds>
</SoundDef>

</Defs>
5 changes: 5 additions & 0 deletions v1.2/Languages/ChineseSimplified/Keyed/ChineseSimplified.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<LevelUp.DefaultLevelUpMessage><![CDATA[升级! <color=orange>{PAWN}</color> 的{SKILL}技能到达{LEVEL}级。]]></LevelUp.DefaultLevelUpMessage>
<LevelUp.DefaultLevelDownMessage><![CDATA[降级! <color=orange>{PAWN}</color> 的{SKILL}技能降至{LEVEL}级。]]></LevelUp.DefaultLevelDownMessage>
</LanguageData>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<LanguageData>

<!-- This file is ignored if the language is English. Then the values on the defs are used directly. -->
<!-- This is here for translation reference only. -->

<LevelUpActionDef_Sound.label>Sound</LevelUpActionDef_Sound.label>
<LevelUpActionDef_Sound.description>Plays a sound.</LevelUpActionDef_Sound.description>

<LevelUpActionDef_Animation.label>Animation</LevelUpActionDef_Animation.label>
<LevelUpActionDef_Animation.description>Displays a simple, possibly animated, graphic on the pawn.</LevelUpActionDef_Animation.description>

<LevelUpActionDef_Message.label>Text message</LevelUpActionDef_Message.label>
<LevelUpActionDef_Message.description>Displays a text message in the top-left corner of the screen.</LevelUpActionDef_Message.description>

<LevelUpActionDef_OverheadMessage.label>Overhead message</LevelUpActionDef_OverheadMessage.label>
<LevelUpActionDef_OverheadMessage.description>Displays a text message on the colonist.</LevelUpActionDef_OverheadMessage.description>

</LanguageData>
18 changes: 18 additions & 0 deletions v1.2/Languages/English/DefInjected/SoundDefs/SoundDefs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<LanguageData>

<!-- This file is ignored if the language is English. Then the values on the defs are used directly. -->
<!-- This is here for translation reference only. -->

<LevelUpSound_Classic.label>Classic</LevelUpSound_Classic.label>
<LevelUpSound_Ding.label>Ding</LevelUpSound_Ding.label>
<LevelUpSound_Negative.label>Negative</LevelUpSound_Negative.label>
<LevelUpSound_Punchy.label>Punchy</LevelUpSound_Punchy.label>
<LevelUpSound_DistortedSiren.label>Distorted Siren</LevelUpSound_DistortedSiren.label>
<LevelUpSound_Dissonance.label>Dissonance</LevelUpSound_Dissonance.label>
<LevelUpSound_Deception.label>Deception</LevelUpSound_Deception.label>
<LevelUpSound_Jazzy.label>Jazzy</LevelUpSound_Jazzy.label>
<LevelUpSound_Strum.label>Strum</LevelUpSound_Strum.label>
<LevelUpSound_TadaFanfare.label>Tada Fanfare</LevelUpSound_TadaFanfare.label>

</LanguageData>
12 changes: 12 additions & 0 deletions v1.2/Languages/English/DefInjected/ThingDefs/ThingDefs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<LanguageData>

<!-- This file is ignored if the language is English. Then the values on the defs are used directly. -->
<!-- This is here for translation reference only. -->

<LevelUpAnimation_Radiance.label>Radiance</LevelUpAnimation_Radiance.label>
<LevelUpAnimation_Drain.label>Drain</LevelUpAnimation_Drain.label>
<LevelUpAnimation_UpwardChevron.label>Upward Chevron</LevelUpAnimation_UpwardChevron.label>
<LevelUpAnimation_DownwardChevron.label>Downward Chevron</LevelUpAnimation_DownwardChevron.label>

</LanguageData>
Loading

0 comments on commit c0bd90c

Please sign in to comment.