Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/options/options.js
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Lines | "initGUI": (option, control) => { | ||||
control.tooltip = item && item.tooltip || option.tooltip; | control.tooltip = item && item.tooltip || option.tooltip; | ||||
}; | }; | ||||
}, | }, | ||||
"timeout": (option, oldValue, hasChanges, newValue) => { | "timeout": (option, oldValue, hasChanges, newValue) => { | ||||
if (!option.timeout) | if (!option.timeout) | ||||
return; | return; | ||||
timedConfirmation( | timedConfirmation( | ||||
500, 200, | 500, 200, | ||||
translate("Do you want to keep changes?"), | translate("Changes will be reverted in %(time)s seconds. Do you want to keep changes?"), | ||||
500, | "time", | ||||
option.timeout, | |||||
translate("Warning"), | translate("Warning"), | ||||
[translate("No"), translate("Yes")], | [translate("No"), translate("Yes")], | ||||
[() => {this.revertChange(option, +oldValue, hasChanges);}, null] | [() => {this.revertChange(option, +oldValue, hasChanges);}, null] | ||||
); | ); | ||||
} | } | ||||
}, | }, | ||||
"slider": | "slider": | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 269 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator