-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indicate settings that need a mission restart #894
Conversation
Seems to work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code style/syntax wise this looks good ¯_(ツ)_/¯
Is that good enough? 😂 🔨 |
addons/settings/script_component.hpp
Outdated
@@ -108,8 +115,9 @@ | |||
#define GET_TEMP_NAMESPACE_VALUE(setting,source) (GET_TEMP_NAMESPACE(source) getVariable [setting, [nil, nil]] select 0) | |||
#define GET_TEMP_NAMESPACE_PRIORITY(setting,source) (GET_TEMP_NAMESPACE(source) getVariable [setting, [nil, nil]] select 1) | |||
|
|||
#define SET_TEMP_NAMESPACE_VALUE(setting,value,source) (GET_TEMP_NAMESPACE(source) setVariable [setting, [value, GET_TEMP_NAMESPACE_PRIORITY(setting,source)]]) | |||
#define SET_TEMP_NAMESPACE_PRIORITY(setting,priority,source) (GET_TEMP_NAMESPACE(source) setVariable [setting, [GET_TEMP_NAMESPACE_VALUE(setting,source), priority]]) | |||
#define SET_TEMP_NAMESPACE_AWAITING_RESTART(setting) if (toLower setting in GVAR(needRestart)) then {GVAR(awaitingRestartTemp) pushBackUnique toLower setting} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could skip showing in 3den
#define SET_TEMP_NAMESPACE_AWAITING_RESTART(setting) if ((toLower setting in GVAR(needRestart)) && {!is3den}) then {GVAR(awaitingRestartTemp) pushBackUnique toLower setting}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Combination of this and #952 give some great color-based feedback as to what settings are doing
* origin/master: XEH - Compatiblity for Encore (1.84) (#953) indicate settings that need a mission restart (#894) don't skip next PFH if current one is removed while iterating through (#950) change color of name of temporarily changed settings (#952) handle input gracefully in keybinding editKey ui function (#951) Update fnc_deleteEntity.sqf (#949)
@commy2 - Should the icon also change when the setting is changed, not just override checkboxes? |
It should be shown when either the setting is changed, or the settings priority is changed, or both I'd say. |
When merged this pull request will:
needs testing >.<