• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Adjustor mod plugin for VS


Commit MetaInfo

Revisão61a322a8e869075c5d93c78d16d5a7b12fbe53b4 (tree)
Hora2020-06-28 05:19:28
Autormelchior <melchior@user...>
Commitermelchior

Mensagem de Log

PR V1.10 - fixed rotation mode ordering

Mudança Sumário

Diff

--- a/AdjustorMod/Skills/AdjustorSkills.cs
+++ b/AdjustorMod/Skills/AdjustorSkills.cs
@@ -19,24 +19,29 @@ namespace AdjustorMod
1919 {
2020 SkillItem[ ] cachedModes = ObjectCacheUtil.GetOrCreate<SkillItem[ ]>(capi, @"adjustorToolModes", ( ) => {
2121
22- return new Collection<SkillItem>
22+ /*
23+ public enum RotationModes
2324 {
24- new SkillItem() { Code = new AssetLocation("free"), Name = Lang.GetMatching("adjustor:rotation-free")
25- }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.Free)),
26- new SkillItem() { Code = new AssetLocation("up"), Name = Lang.GetMatching("adjustor:rotation-up")
27- }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.Up)),
28- new SkillItem() { Code = new AssetLocation("down"), Name = Lang.GetMatching("adjustor:rotation-down")
29- }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.Down)),
30- new SkillItem() { Code = new AssetLocation("east"), Name = Lang.GetMatching("adjustor:rotation-east")
31- }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.East)),
32- new SkillItem() { Code = new AssetLocation("west"), Name = Lang.GetMatching("adjustor:rotation-west")
33- }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.West)),
34- new SkillItem() { Code = new AssetLocation("south"), Name = Lang.GetMatching("adjustor:rotation-south")
35- }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.South)),
36- new SkillItem() { Code = new AssetLocation("north"), Name = Lang.GetMatching("adjustor:rotation-north")
37- }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.North))
38-
39- }.ToArray( );
25+ Free = 0,
26+ Up = 1,
27+ Down = 2,
28+ North = 3,
29+ East = 4,
30+ West = 5,
31+ South = 6,
32+ }
33+ */
34+
35+ return new SkillItem[ ]
36+ {
37+ new SkillItem() { Code = new AssetLocation("free"), Name = Lang.GetMatching("adjustor:rotation-free"), Description = Lang.GetMatching("adjustor:rotation-free-desc"), Data = RotationModes.Free }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.Free)),
38+ new SkillItem() { Code = new AssetLocation("up"), Name = Lang.GetMatching("adjustor:rotation-up") , Data = RotationModes.Up }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.Up)),
39+ new SkillItem() { Code = new AssetLocation("down"), Name = Lang.GetMatching("adjustor:rotation-down"), Data = RotationModes.Down }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.Down)),
40+ new SkillItem() { Code = new AssetLocation("north"), Name = Lang.GetMatching("adjustor:rotation-north"), Data = RotationModes.North }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.North)),
41+ new SkillItem() { Code = new AssetLocation("east"), Name = Lang.GetMatching("adjustor:rotation-east"), Data = RotationModes.East }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.East)),
42+ new SkillItem() { Code = new AssetLocation("west"), Name = Lang.GetMatching("adjustor:rotation-west") , Data = RotationModes.West }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.West)),
43+ new SkillItem() { Code = new AssetLocation("south"), Name = Lang.GetMatching("adjustor:rotation-south"), Data = RotationModes.South }.WithIcon(capi,(cr, x, y, w, h, c) => DrawTextGlyph(cr, x, y, w, h, c, RotationModes.South)),
44+ };
4045
4146 });
4247
--- a/AdjustorMod/assets/Adjustor/lang/en.json
+++ b/AdjustorMod/assets/Adjustor/lang/en.json
@@ -13,4 +13,9 @@
1313 "adjustor:rotation-down":"DOWN",
1414 "adjustor:rotation-free":"FREE",
1515 "adjustor:rotation-fixed":"FIXED",
16+ "adjustor:rotation-north":"NORTH",
17+ "adjustor:rotation-east":"EAST",
18+ "adjustor:rotation-south":"SOUTH",
19+ "adjustor:rotation-west":"WEST",
20+ "adjustor:rotation-free-desc":"Rotates 90 Degrees each time, hold (crouch) to swap into Up/Down mode.",
1621 }