-- @/lua/ge/extensions/core/quickAccess.lua:2496
local function toggle(level)
if isEnabled() then
setEnabled(false)
else
setEnabled(true, level)
end
end
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this.representedObject.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, WI.debuggerManager.breakpointsEnabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this.representedObject.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, WI.debuggerManager.breakpointsEnabled);
}
"actionMap": "Global",
"onDown": "ui_visibility.toggle()",
"order": 11,
"title": "ui.inputActions.debug.cycle_metrics.title",
"onDown": "extensions.core_metrics.toggle()",
"order": 1,
"title": "ui.inputActions.camera.enableHeadset.title",
"onDown": "if OpenXR then extensions.load('render_openxr') OpenXR.toggle() end",
"order": 70,
"title": "ui.inputActions.gameplay.toggleTraffic.title",
"onDown": "if gameplay_traffic then gameplay_traffic.toggle(true) end",
"order": 96,
"actionMap": "Global",
"onDown": "extensions.ui_console.toggle()",
"order": 16,
this._showGridButtonNavigationItem.activated = activated;
this._imageElement.classList.toggle("show-grid", activated);
}
element.setAttribute("dir", "ltr");
element.classList.toggle("read-only", options.readOnly);
item[WI.NavigationBar.ForceHiddenSymbol] = hidden;
item.element.classList.toggle("force-hidden", hidden);
}
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this._breakpoint.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageAutoContinueStyleClassName, this._breakpoint.autoContinue);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this._breakpoint.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageAutoContinueStyleClassName, this._breakpoint.autoContinue);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, this._breakpoint.resolved && WI.debuggerManager.breakpointsEnabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageAutoContinueStyleClassName, this._breakpoint.autoContinue);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, this._breakpoint.resolved && WI.debuggerManager.breakpointsEnabled);
}
this.element.classList.toggle("single-tab", !this._hasMoreThanOneNormalTab());
var hasMoreThanOneNormalTab = this._hasMoreThanOneNormalTab();
this.element.classList.toggle("single-tab", !hasMoreThanOneNormalTab);
function forceItemHidden(item, hidden) {
item.element.classList.toggle("hidden", !!hidden);
}
* $mdSidenav(componentId)
* .toggle()
* .then(function(){
toggle: function() {
return instance ? instance.toggle() : $q.reject(errorMsg);
},
* $scope.openLeftMenu = function() {
* $mdSidenav('left').toggle();
* };
function setInvalidCharacterClassName() {
document.body.classList.toggle("show-invalid-characters", WI.settings.showInvalidCharacters.value);
}
function setWhitespaceCharacterClassName() {
document.body.classList.toggle("show-whitespace-characters", WI.settings.showWhitespaceCharacters.value);
}
document.body.classList.toggle("alt-key-pressed", WI.modifierKeys.altKey);
document.body.classList.toggle("ctrl-key-pressed", WI.modifierKeys.ctrlKey);
document.body.classList.toggle("alt-key-pressed", WI.modifierKeys.altKey);
document.body.classList.toggle("ctrl-key-pressed", WI.modifierKeys.ctrlKey);
document.body.classList.toggle("meta-key-pressed", WI.modifierKeys.metaKey);
document.body.classList.toggle("ctrl-key-pressed", WI.modifierKeys.ctrlKey);
document.body.classList.toggle("meta-key-pressed", WI.modifierKeys.metaKey);
document.body.classList.toggle("shift-key-pressed", WI.modifierKeys.shiftKey);
document.body.classList.toggle("meta-key-pressed", WI.modifierKeys.metaKey);
document.body.classList.toggle("shift-key-pressed", WI.modifierKeys.shiftKey);
this._collapsed = flag || false;
this.element.classList.toggle(WI.Sidebar.CollapsedStyleClassName);
let hasFilter = typeof this._panel.filterDidChange === "function";
this.contentView.element.classList.toggle("has-filter-bar", hasFilter);
if (this._filterBar)
if (this._filterBar)
this.contentView.element.classList.toggle(WI.GeneralStyleDetailsSidebarPanel.FilterInProgressClassName, hasFilter && this._filterBar.hasActiveFilters());
this.contentView.element.classList.toggle("supports-new-rule", typeof this._panel.newRuleButtonClicked === "function");
this._panel.shown();
{
this._classToggleButton.classList.toggle("selected");
this._classListContainer.hidden = !this._classListContainer.hidden;
{
this.contentView.element.classList.toggle(WI.GeneralStyleDetailsSidebarPanel.FilterInProgressClassName, this._filterBar.hasActiveFilters());
const isRadial = this._gradient instanceof WI.RadialGradient;
this._element.classList.toggle("radial-gradient", isRadial);
if (this.didInitialLayout && !isNaN(this._index))
this._previewContainer.firstElementChild.classList.toggle("show-grid", activated);
}
this._element.append(childElement);
this._element.classList.toggle("expanded", this._expandedSetting.value);
}
{
this._element.classList.toggle("expanded", shouldExpand);
this._expandedSetting.value = shouldExpand;
toggle()
{
let empty = this._needleValue === null;
this.element.classList.toggle("empty", empty);
let singleThreadShowing = WI.targets.length <= 1;
this._callStackTreeOutline.element.classList.toggle("single-thread", singleThreadShowing);
if (this._mainTargetTreeElement)
toggleRadialMenuMulti = function()
M.toggle()
end,
this._enabled = flag;
this.element.classList.toggle("disabled", !this._enabled);
}
let editingInstruments = this._timelineOverview.editingInstruments;
this.element.classList.toggle(WI.TimelineOverview.EditInstrumentsStyleClassName, editingInstruments);
this._hidden = flag;
this._element.classList.toggle("hidden", this._hidden);
}
this._collapsed = flag;
this._element.classList.toggle("collapsed", this._collapsed);
}
this._element.classList.toggle("show-selector-arrows", !!this._selectorArrows);
}
var toggle = value ? on : off
toggle(cm.display.scroller, "dragstart", funcs.start)
toggle(cm.display.scroller, "dragenter", funcs.enter)
toggle(cm.display.scroller, "dragstart", funcs.start)
toggle(cm.display.scroller, "dragenter", funcs.enter)
toggle(cm.display.scroller, "dragover", funcs.over)
toggle(cm.display.scroller, "dragenter", funcs.enter)
toggle(cm.display.scroller, "dragover", funcs.over)
toggle(cm.display.scroller, "dragleave", funcs.leave)
toggle(cm.display.scroller, "dragover", funcs.over)
toggle(cm.display.scroller, "dragleave", funcs.leave)
toggle(cm.display.scroller, "drop", funcs.drop)
toggle(cm.display.scroller, "dragleave", funcs.leave)
toggle(cm.display.scroller, "drop", funcs.drop)
}
async function toggle() {
isShow.value = !isShow.value
if (body) {
body.classList.toggle("screen-locked", lock)
}
let allowed = WI.isNewTabWithTypeAllowed(tabClass.Type);
tabItemElement.classList.toggle(WI.NewTabContentView.DisabledStyleClassName, !allowed);
}
let properties = this.propertiesToRender;
this.element.classList.toggle("no-properties", !properties.length);
this.element.classList.toggle("debug-style-locked", this._style.locked);
}
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this.representedObject.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, WI.debuggerManager.breakpointsEnabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this.representedObject.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, WI.debuggerManager.breakpointsEnabled);
}
label = 'ui.menu.openRadialMenu.name',
onClick = "core_quickAccess.toggle()",
},
this.representedObject.toggleDisabled(() => {
this._listItemNode.classList.toggle("disabled", !!this.representedObject.disabled);
this._disabledImageElement.title = this.representedObject.disabled ? WI.UIString("Enable Program") : WI.UIString("Disable Program");
{
this._element.classList.toggle("selected", selected);
{
this._element.classList.toggle("disabled", disabled);
}
{
this._element.classList.toggle("default-tab", isDefaultTab);
}
let matchesName = this._nameElement.textContent.includes(filterText);
this._nameElement.classList.toggle(WI.GeneralStyleDetailsSidebarPanel.FilterMatchSectionClassName, !!matchesName);
let matchesValue = this._valueElement.textContent.includes(filterText);
this._valueElement.classList.toggle(WI.GeneralStyleDetailsSidebarPanel.FilterMatchSectionClassName, !!matchesValue);
let matches = matchesName || matchesValue;
this._contentElement.classList.toggle(WI.GeneralStyleDetailsSidebarPanel.NoFilterMatchInPropertyClassName, !matches);
return matches;
{
this.element.classList.toggle(WI.ActivateButtonNavigationItem.ActivatedStyleClassName, flag);
{
this.element.classList.toggle(WI.RadioButtonNavigationItem.ActiveStyleClassName, flag);
}
element[propertyName] = this.displayLocationString(columnStyle, nameStyle, prefix);
element.classList.toggle(WI.SourceCodeLocation.DisplayLocationClassName, this.hasDifferentDisplayLocation());
} else if (this.hasDifferentDisplayLocation()) {
this._enabled = x;
this.element.classList.toggle(WI.TreeElementStatusButton.DisabledStyleClassName, !this._enabled);
}
this.element.classList.toggle("allows-time-range-selection", this._allowsTimeRangeSelection);
this.element.classList.toggle("selection-hidden", this.entireRangeSelected);
this.element.classList.toggle("both-handles-clamped", startTimeClamped && endTimeClamped);
this._leftSelectionHandleElement.classList.toggle("clamped", startTimeClamped);
this._leftSelectionHandleElement.classList.toggle("hidden", startTimeClamped && endTimeClamped && this._selectionStartTime < this._startTime);
this._leftSelectionHandleElement.classList.toggle("clamped", startTimeClamped);
this._leftSelectionHandleElement.classList.toggle("hidden", startTimeClamped && endTimeClamped && this._selectionStartTime < this._startTime);
this._leftSelectionHandleElement.title = formattedStartTimeText;
this._rightSelectionHandleElement.classList.toggle("clamped", endTimeClamped);
this._rightSelectionHandleElement.classList.toggle("hidden", startTimeClamped && endTimeClamped && this._selectionEndTime > this._endTime);
this._rightSelectionHandleElement.classList.toggle("clamped", endTimeClamped);
this._rightSelectionHandleElement.classList.toggle("hidden", startTimeClamped && endTimeClamped && this._selectionEndTime > this._endTime);
this._rightSelectionHandleElement.title = formattedEndTimeText;
function C:toggle()
if editor.isWindowVisible(self.windowName) then
this._visible = x;
this.element.classList.toggle("hidden", !this._visible);
}
this._element.classList.toggle(WI.GradientSliderKnob.SelectedClassName, selected);
this._element.classList.toggle("default-item-selected", this._defaultItem.selected);
}
this._element.classList.toggle("default-item-selected", this._defaultItem.selected);
}
{
this._element.classList.toggle("indicating-progress", !!progress);
}
{
this._element.classList.toggle("active", !!active);
}
if (navigationItem instanceof WI.FilterBarButton)
navigationItem.toggle(false);
}
var filterBarButton = event.target;
filterBarButton.toggle();
}
{
this._element.classList.toggle("hidden", flag);
}
if (entry.resource)
cell.classList.toggle("error", entry.resource.hadLoadingError());
disclosureElement.classList.add("disclosure");
disclosureElement.classList.toggle("expanded", !!entry.expanded);
disclosureElement.addEventListener("click", (event) => {
lineElement.classList.add("dom-activity");
lineElement.classList.toggle("playing", playing);
positionByStartOffset(lineElement, startTimestamp);
if (this._previewImageElement)
this._previewImageElement.classList.toggle("show-grid", activated);
}
this._refreshButtonNavigationItem.enabled = !recordingActive;
this.element.classList.toggle("recording-active", recordingActive);
}
this._codeMirror.setOption("readOnly", readOnly);
this._codeMirror.getWrapperElement().classList.toggle("read-only", !!readOnly);
}
scope:{mdOnLayout:"&"},link:a}}function n(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=t.noop}function o(e){function n(t,n){var o,a,d,c,l,m;return c=e.time(function(){a=r(t,n)}),o={layoutInfo:function(){return a},map:function(t){return l=e.time(function(){var e=o.layoutInfo();d=t(e.positioning,e.rowCount)}),o},reflow:function(t){return m=e.time(function(){var e=t||i;e(d.grid,d.tiles)}),o},performance:function(){return{tileCount:n.length,layoutTime:c,mapTime:l,reflowTime:m,totalTime:c+l+m}}}}function o(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}function r(e,t){function n(t,n){if(t.col>e)throw"md-grid-list: Tile at position "+n+" has a colspan ("+t.col+") that exceeds the column count ("+e+")";for(var a=0,m=0;m-a=e?o():(a=l.indexOf(0,d),-1!==a&&-1!==(m=i(a+1))?d=m+1:(a=m=0,o()));return r(a,t.col,t.row),d=a+t.col,{col:a,row:c}}function o(){d=0,c++,r(0,e,-1)}function r(e,t,n){for(var o=e;e+t>o;o++)l[o]=Math.max(l[o]+n,0)}function i(e){var t;for(t=e;tn;n++)t.push(0);return t}var d=0,c=0,l=a();return{positioning:t.map(function(e,t){return{spans:e,position:n(e,t)}}),rowCount:c+Math.max.apply(Math,l)}}var i=o;return n.animateWith=function(e){i=t.isFunction(e)?e:o},n}function r(e){function n(n,o,r,i){o.attr("role","listitem");var a=e.watchResponsiveAttributes(["md-colspan","md-rowspan"],r,t.bind(i,i.invalidateLayout));i.invalidateTiles(),n.$on("$destroy",function(){a(),i.invalidateLayout()}),t.isDefined(n.$parent.$index)&&n.$watch(function(){return n.$parent.$index},function(e,t){e!==t&&i.invalidateTiles()})}return{restrict:"E",require:"^mdGridList",template:" ",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:n}}function i(){return{template:" ",transclude:!0}}t.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",r).directive("mdGridTileFooter",i).directive("mdGridTileHeader",i).factory("$mdGridLayout",o),e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],n.$inject=["$mdUtil"],n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(t.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}},o.$inject=["$mdUtil"],r.$inject=["$mdMedia"]}(),function(){function e(e,t,n){function o(o,r,i){function a(){var e=r.parent();return e.attr("aria-label")||e.text()?!0:e.parent().attr("aria-label")||e.parent().text()?!0:!1}function d(){function t(){return!o.fontIcon&&!o.fontSet&&!i.hasOwnProperty("class")}o.svgIcon||o.svgSrc||(o.fontIcon&&r.addClass("md-font "+o.fontIcon),o.fontSet&&r.addClass(e.fontSet(o.fontSet)),t()&&r.addClass(e.fontSet()))}t(r),d();var c=i.alt||o.fontIcon||o.svgIcon||r.text(),l=i.$normalize(i.$attr.mdSvgIcon||i.$attr.mdSvgSrc||"");i["aria-label"]||(""==c||a()?r.text()||n.expect(r,"aria-hidden","true"):(n.expect(r,"aria-label",c),n.expect(r,"role","img"))),l&&i.$observe(l,function(t){r.empty(),t&&e(t).then(function(e){r.append(e)})})}return{scope:{fontSet:"@mdFontSet",fontIcon:"@mdFontIcon",svgIcon:"@mdSvgIcon",svgSrc:"@mdSvgSrc"},restrict:"E",link:o}}t.module("material.components.icon",["material.core"]).directive("mdIcon",e),e.$inject=["$mdIcon","$mdTheming","$mdAria"]}(),function(){function e(){}function n(e,t){this.url=e,this.viewBoxSize=t||r.defaultViewBoxSize}function o(e,n,o,r,i){function a(e){return e=e||"",E[e]?o.when(E[e].clone()):v.test(e)?s(e).then(c(e)):(-1==e.indexOf(":")&&(e="$default:"+e),l(e)["catch"](m)["catch"](u)["catch"](p).then(c(e)))}function d(n){var o=t.isUndefined(n)||!(n&&n.length);if(o)return e.defaultFontSet;var r=n;return t.forEach(e.fontSets,function(e){e.alias==n&&(r=e.fontSet||r)}),r}function c(t){return function(n){return E[t]=f(n)?n:new h(n,e[t]),E[t].clone()}}function l(t){var n=e[t];return n?s(n.url).then(function(e){return new h(e,n)}):o.reject(t)}function m(t){function n(e){var n=t.slice(t.lastIndexOf(":")+1),r=e.querySelector("#"+n);return r?new h(r,i):o.reject(t)}var r=t.substring(0,t.lastIndexOf(":"))||"$default",i=e[r];return i?s(i.url).then(n):o.reject(t)}function s(e){return n.get(e,{cache:i}).then(function(e){return t.element("").append(e.data).find("svg")[0]})}function u(e){var n;return t.isString(e)&&(n="icon "+e+" not found",r.warn(n)),o.reject(n||e)}function p(e){var n=t.isString(e)?e:e.message||e.data||e.statusText;return r.warn(n),o.reject(n)}function f(e){return t.isDefined(e.element)&&t.isDefined(e.config)}function h(e,n){"svg"!=e.tagName&&(e=t.element('