Skip to content

Comments

Allow to reset or ignore ingame options from mod settings window#308

Merged
Shivansps merged 3 commits intoKnossosNET:mainfrom
Shivansps:allow-to-reset-ignore-ingame-options-mod-settings
Feb 22, 2025
Merged

Allow to reset or ignore ingame options from mod settings window#308
Shivansps merged 3 commits intoKnossosNET:mainfrom
Shivansps:allow-to-reset-ignore-ingame-options-mod-settings

Conversation

@Shivansps
Copy link
Member

Allows to have a toggle for "no ingame options" in mod settings.
Also allows to delete or view the file in question if it exist.

i really dont want to do much more otherwise the whole point of ingame options becomes irrelevant.

@Shivansps Shivansps added the cleanup Cleanup code or other aspect label Feb 19, 2025
</WrapPanel>
<!--Mod Engine Settings-->
<Label Margin="0,20,0,0" FontWeight="Black" FontSize="20">ENGINE SETTINGS</Label>
<CheckBox IsChecked="{Binding NoIngameOptions}" Margin="5" ToolTip.Tip="By disabling ingame options, launcher engine settings will be used instead. Only valid if the mod uses a FSO engine build equal or higher than version 24.2.0">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, just small suggestion: to make consistent with other public facing uses of the word it might be best to use in-game. Also do we want this tooltip sentence and the others to end in a period. Right now one does but others do not. That's of course very minor but just something I noticed :D

Disable ingame options
</CheckBox>
<WrapPanel IsVisible="{Binding !NoIngameOptions}">
<Label VerticalAlignment="Center" Margin="5" FontWeight="Bold" IsVisible="{Binding IngameOptionsFileExist}" Foreground="Yellow" ToolTip.Tip="This file is used to save ingame FSO engine settings not managed by Knossos.NET">Ingame options file detected</Label>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same note as above, suggestion to switch ingame to in-game

<WrapPanel IsVisible="{Binding !NoIngameOptions}">
<Label VerticalAlignment="Center" Margin="5" FontWeight="Bold" IsVisible="{Binding IngameOptionsFileExist}" Foreground="Yellow" ToolTip.Tip="This file is used to save ingame FSO engine settings not managed by Knossos.NET">Ingame options file detected</Label>
<Button Command="{Binding ViewIngameOptions}" IsVisible="{Binding IngameOptionsFileExist}" Margin="5" Classes="Option" ToolTip.Tip="Open the file in a text editor.">View</Button>
<Button Command="{Binding DeleteIngameOptions}" IsVisible="{Binding IngameOptionsFileExist}" Margin="5" Classes="Cancel" ToolTip.Tip="By deleting the FSO ingame options file all values will be reseted back to default the next time you launch this mod">Delete</Button>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same note as above, suggestion to switch ingame to in-game

Copy link
Contributor

@JohnAFernandez JohnAFernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@Shivansps Shivansps merged commit 8db25fd into KnossosNET:main Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Cleanup code or other aspect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants