-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 1.1.0 - Speed Threshold setting and bugfixes
* Speed threshold as a setting and improved speed calculation * Hide element when moving backwards as well * Improved mouse movement handling * Restoring element visibility when plugin disabled
- Loading branch information
Showing
7 changed files
with
46 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// HUD Picker helpers | ||
Meta::PluginSetting@ FindHudPickerRecordsVisibleSetting(array<Meta::PluginSetting@> settings) { | ||
for (int i = 0; i < int(settings.Length); i++) { | ||
if ( | ||
settings[i].VarName == HUDPICKER_RECORD_VISIBLE_VARNAME | ||
&& settings[i].Type == Meta::PluginSettingType::Bool | ||
) { | ||
return settings[i]; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
bool IsHudPickerRecordsHidden() { | ||
if ( | ||
hudPickerPlugin !is null | ||
&& hudPickerPlugin.Enabled | ||
) { | ||
auto settings = hudPickerPlugin.GetSettings(); | ||
auto setting = FindHudPickerRecordsVisibleSetting(settings); | ||
if (setting !is null) { | ||
bool settingValue = setting.ReadBool(); | ||
return !settingValue; | ||
} | ||
} | ||
return false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// settings definition | ||
[Setting name="Is Enabled" category="General"] | ||
bool AutoHideRecords = true; | ||
|
||
[Setting name="Speed Threshold" min=1 max=100 description="The speed at which the UI will become hidden" category="General"] | ||
int SpeedThreshold = 1; |