Skip to content

Commit

Permalink
Merge pull request #207 from FFXIV-CombatReborn/mergeWIP2
Browse files Browse the repository at this point in the history
added option to flip map by 180°
  • Loading branch information
CarnifexOptimus authored Jul 21, 2024
2 parents f24711e + 848547b commit eacd064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions BossMod/BossModule/BossModuleConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public class BossModuleConfig : ConfigNode
[PropertyDisplay("Rotate map to match camera orientation")]
public bool RotateArena = true;

[PropertyDisplay("Rotate map by 180° if rotating map is off")]
public bool FlipArena = false;

[PropertyDisplay("Expand space reserved for map to allow arbitrary rotations")]
public bool AddSlackForRotations = true;

Expand Down
2 changes: 1 addition & 1 deletion BossMod/BossModule/BossModuleMainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public override void Draw()
{
try
{
_mgr.ActiveModule.Draw(_mgr.Config.RotateArena ? _mgr.WorldState.Client.CameraAzimuth : default, PartyState.PlayerSlot, !_mgr.Config.HintsInSeparateWindow, true);
_mgr.ActiveModule.Draw(_mgr.Config.RotateArena ? _mgr.WorldState.Client.CameraAzimuth : _mgr.Config.FlipArena ? 180.Degrees() : default, PartyState.PlayerSlot, !_mgr.Config.HintsInSeparateWindow, true);
if (_mgr.Config.ShowWorldArrows && _mgr.WorldState.Party[PartyState.PlayerSlot] is var pc && pc != null)
DrawMovementHints(_mgr.ActiveModule.CalculateMovementHintsForRaidMember(PartyState.PlayerSlot, pc), pc.PosRot.Y);
}
Expand Down

0 comments on commit eacd064

Please sign in to comment.