diff --git a/XIV on Mac.xcodeproj/project.pbxproj b/XIV on Mac.xcodeproj/project.pbxproj index a0a9de7..1000470 100644 --- a/XIV on Mac.xcodeproj/project.pbxproj +++ b/XIV on Mac.xcodeproj/project.pbxproj @@ -422,7 +422,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 2; + CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_TEAM = TQJJTJ6364; ENABLE_HARDENED_RUNTIME = YES; GENERATE_INFOPLIST_FILE = YES; @@ -440,7 +440,7 @@ "$(PROJECT_DIR)/XIV\\ on\\ Mac/wine/lib", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 2.6.2; + MARKETING_VERSION = 2.99; PRODUCT_BUNDLE_IDENTIFIER = "dezent.XIV-on-Mac"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -459,7 +459,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 2; + CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_TEAM = TQJJTJ6364; ENABLE_HARDENED_RUNTIME = YES; GENERATE_INFOPLIST_FILE = YES; @@ -477,7 +477,7 @@ "$(PROJECT_DIR)/XIV\\ on\\ Mac/wine/lib", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 2.6.2; + MARKETING_VERSION = 2.99; PRODUCT_BUNDLE_IDENTIFIER = "dezent.XIV-on-Mac"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/XIV on Mac.xcodeproj/project.xcworkspace/xcuserdata/marc_aurel.xcuserdatad/UserInterfaceState.xcuserstate b/XIV on Mac.xcodeproj/project.xcworkspace/xcuserdata/marc_aurel.xcuserdatad/UserInterfaceState.xcuserstate index d736969..9ee1828 100644 Binary files a/XIV on Mac.xcodeproj/project.xcworkspace/xcuserdata/marc_aurel.xcuserdatad/UserInterfaceState.xcuserstate and b/XIV on Mac.xcodeproj/project.xcworkspace/xcuserdata/marc_aurel.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/XIV on Mac/Base.lproj/Main.storyboard b/XIV on Mac/Base.lproj/Main.storyboard index a7d1d4f..f03d344 100644 --- a/XIV on Mac/Base.lproj/Main.storyboard +++ b/XIV on Mac/Base.lproj/Main.storyboard @@ -1149,7 +1149,7 @@ Gw - + @@ -1174,7 +1174,7 @@ Gw - + @@ -1412,7 +1412,7 @@ Gw - + @@ -1465,7 +1465,7 @@ Gw - + @@ -1485,12 +1485,77 @@ Gw + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1526,7 +1591,7 @@ Gw - + diff --git a/XIV on Mac/SettingsController.swift b/XIV on Mac/SettingsController.swift index 8fa44fb..80eb304 100644 --- a/XIV on Mac/SettingsController.swift +++ b/XIV on Mac/SettingsController.swift @@ -23,12 +23,19 @@ class SettingsController: NSViewController { @IBOutlet private var maxFPS: NSButton! @IBOutlet private var maxFPSField: NSTextField! @IBOutlet private var async: NSButton! + @IBOutlet private var esync: NSButton! @IBOutlet private var wineDebugField: NSTextField! @IBOutlet private var wineRetina: NSButton! + + @IBOutlet private var dalamud: NSButton! + @IBOutlet private var delay: NSTextField! + @IBOutlet private var crowdSource: NSButton! + @IBOutlet weak var discord: NSButton! private var mapping: [String : NSButton] = [:] + private var ffSettings = FFXIVSettings.storedSettings() override func viewDidAppear() { super.viewDidAppear() @@ -88,11 +95,17 @@ class SettingsController: NSViewController { maxFPS.state = limited ? NSControl.StateValue.on : NSControl.StateValue.off maxFPSField.isEnabled = limited maxFPSField.stringValue = String(Util.dxvkOptions.maxFramerate) - discord.state = SocialIntegration.discord.enabled ? NSControl.StateValue.on : NSControl.StateValue.off scale.doubleValue = Util.dxvkOptions.hudScale + + discord.state = SocialIntegration.discord.enabled ? NSControl.StateValue.on : NSControl.StateValue.off + esync.state = Wine.esync ? NSControl.StateValue.on : NSControl.StateValue.off wineRetina.state = Wine.retina ? NSControl.StateValue.on : NSControl.StateValue.off wineDebugField.stringValue = Wine.debug + + dalamud.state = ffSettings.dalamud ? NSControl.StateValue.on : NSControl.StateValue.off + crowdSource.state = Dalamud.mbCollection ? NSControl.StateValue.on : NSControl.StateValue.off + delay.stringValue = "\(Dalamud.delay)" } func saveState() { @@ -109,6 +122,12 @@ class SettingsController: NSViewController { SocialIntegration.discord.enabled = (discord.state == NSControl.StateValue.on) ? true : false SocialIntegration.discord.save() + + ffSettings = FFXIVSettings.storedSettings() + ffSettings.dalamud = (dalamud.state == NSControl.StateValue.on) ? true : false + ffSettings.serialize() + Dalamud.mbCollection = (crowdSource.state == NSControl.StateValue.on) ? true : false + Dalamud.delay = Double(delay.stringValue) ?? 7.0 } }