Adjustor mod plugin for VS
Revisão | 61a322a8e869075c5d93c78d16d5a7b12fbe53b4 (tree) |
---|---|
Hora | 2020-06-28 05:19:28 |
Autor | melchior <melchior@user...> |
Commiter | melchior |
PR V1.10 - fixed rotation mode ordering
@@ -19,24 +19,29 @@ namespace AdjustorMod | ||
19 | 19 | { |
20 | 20 | SkillItem[ ] cachedModes = ObjectCacheUtil.GetOrCreate<SkillItem[ ]>(capi, @"adjustorToolModes", ( ) => { |
21 | 21 | |
22 | - return new Collection<SkillItem> | |
22 | + /* | |
23 | + public enum RotationModes | |
23 | 24 | { |
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 | + }; | |
40 | 45 | |
41 | 46 | }); |
42 | 47 |
@@ -13,4 +13,9 @@ | ||
13 | 13 | "adjustor:rotation-down":"DOWN", |
14 | 14 | "adjustor:rotation-free":"FREE", |
15 | 15 | "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.", | |
16 | 21 | } |