LiveSplit / asr

Helper crate to write auto splitters for LiveSplit One's auto splitting runtime.
https://livesplit.org/asr/asr
Apache License 2.0
10 stars 10 forks source link

Add FileSelection Widget #83

Closed AlexKnauth closed 9 months ago

AlexKnauth commented 9 months ago

A companion PR to https://github.com/LiveSplit/livesplit-core/pull/748.

Adds a FileSelection type that implements the Widget trait such that an auto-splitter can put it in their settings gui like this:

#[derive(Gui)]
pub struct SettingsGui {
    /// General Settings
    _general_settings: Title,
    /// Select a text file
    #[filter = "*.txt"]
    text_file: FileSelection,
}