Differential D3848 Diff 17125 binaries/data/mods/public/gui/session/developer_overlay/DeveloperOverlayCheckboxes.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/developer_overlay/DeveloperOverlayCheckboxes.js
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | DeveloperOverlayCheckboxes.prototype.PromoteSelectedUnits = class | ||||
} | } | ||||
checked() | checked() | ||||
{ | { | ||||
return false; | return false; | ||||
} | } | ||||
}; | }; | ||||
DeveloperOverlayCheckboxes.prototype.DisableThreadPool = class | |||||
{ | |||||
label() | |||||
{ | |||||
return translate("Disable Thread Pool"); | |||||
} | |||||
onPress(checked) | |||||
{ | |||||
if (checked) | |||||
Engine.ConfigDB_CreateValue("system", "thread_pool_threads", 0); | |||||
else | |||||
Engine.ConfigDB_CreateValue("system", "thread_pool_threads", -1); | |||||
} | |||||
checked() | |||||
{ | |||||
return +Engine.ConfigDB_GetValue("system", "thread_pool_threads") == 0; | |||||
Stan: Might be buggy with non 0 numbers? | |||||
Done Inline ActionsNot sure how? wraitii: Not sure how? | |||||
Not Done Inline ActionsMy bad it's above, it should reset to whatever is in the config not -1 Stan: My bad it's above, it should reset to whatever is in the config not -1 | |||||
Done Inline ActionsRight, I don't think I'm going to care because this isn't saved in the user's settings. Edit -> In fact I think this doesn't work for user settings, need to use COMMAND which isn't exposed to JS scripts :p wraitii: Right, I don't think I'm going to care because this isn't saved in the user's settings.
Edit… | |||||
} | |||||
}; | |||||
DeveloperOverlayCheckboxes.prototype.EnableCulling = class | DeveloperOverlayCheckboxes.prototype.EnableCulling = class | ||||
{ | { | ||||
label() | label() | ||||
{ | { | ||||
return translate("Enable culling"); | return translate("Enable culling"); | ||||
} | } | ||||
onPress(checked) | onPress(checked) | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Might be buggy with non 0 numbers?