File size: 8,574 Bytes
b6a38d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
-- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ==========
PlaceObj('XTemplate', {
group = "Shortcuts",
id = "CommonShortcuts",
save_in = "Common",
PlaceObj('XTemplateAction', {
'ActionId', "Tools",
'ActionTranslate', false,
'ActionName', "Tools",
'ActionMenubar', "DevMenu",
'OnActionEffect', "popup",
'replace_matching_id', true,
}, {
PlaceObj('XTemplateAction', {
'ActionId', "Tools.Extras",
'ActionTranslate', false,
'ActionName', "Extras ...",
'ActionIcon', "CommonAssets/UI/Menu/folder.tga",
'OnActionEffect', "popup",
'replace_matching_id', true,
}, {
PlaceObj('XTemplateAction', {
'comment', "Write screenshot (-PrtScr)",
'RolloverText', "Write screenshot (-PrtScr)",
'ActionId', "DE_Screenshot",
'ActionTranslate', false,
'ActionName', "Screenshot",
'ActionShortcut', "-PrtScr",
'OnAction', function (self, host, source, ...)
WriteScreenshot(GenerateScreenshotFilename("SS", "AppData/"))
end,
'replace_matching_id', true,
}),
PlaceObj('XTemplateAction', {
'comment', "Isolated object screenshot (-Ctrl-Alt-PrtScr)",
'RolloverText', "Isolated object screenshot (-Ctrl-Alt-PrtScr)",
'ActionId', "DE_Isolated_Object_Screenshot",
'ActionTranslate', false,
'ActionName', "Isolated Object Screenshot",
'ActionShortcut', "-Ctrl-Alt-PrtScr",
'OnAction', function (self, host, source, ...)
IsolatedObjectScreenshot()
end,
'replace_matching_id', true,
}),
PlaceObj('XTemplateAction', {
'comment', "Report Bug (Ctrl-F1)",
'RolloverText', "Report Bug (Ctrl-F1)",
'ActionId', "DE_BugReport",
'ActionTranslate', false,
'ActionName', "Report Bug",
'ActionIcon', "CommonAssets/UI/Icons/bacteria bug insect protection security virus.png",
'ActionShortcut', "Ctrl-F1",
'OnAction', function (self, host, source, ...)
CreateRealTimeThread(CreateXBugReportDlg)
end,
'__condition', function (parent, context) return not Platform.steamdeck and not Platform.demo or Platform.asserts end,
'replace_matching_id', true,
}),
PlaceObj('XTemplateAction', {
'comment', "Toggle UI in screenshots (-Ctrl-Shift-PrtScr)",
'RolloverText', "Toggle UI in screenshots (-Ctrl-Shift-PrtScr)",
'ActionId', "DE_ToggleScreenshotInterface",
'ActionTranslate', false,
'ActionName', "Toggle UI in screenshots",
'ActionShortcut', "-Ctrl-Shift-PrtScr",
'OnAction', function (self, host, source, ...)
hr.InterfaceInScreenshot = hr.InterfaceInScreenshot ~= 0 and 0 or 1
print("UI in screenshots is now", hr.InterfaceInScreenshot ~= 0 and "enabled" or "disabled")
end,
'replace_matching_id', true,
}),
PlaceObj('XTemplateAction', {
'comment', "Write upsampled screenshot (-Ctrl-PrtScr)",
'RolloverText', "Write upsampled screenshot (-Ctrl-PrtScr)",
'ActionId', "DE_UpsampledScreenshot",
'ActionTranslate', false,
'ActionName', "Upsampled Screenshot",
'ActionShortcut', "-Ctrl-PrtScr",
'OnAction', function (self, host, source, ...)
if Platform.developer then
CreateRealTimeThread(function()
WaitNextFrame(3)
LockCamera("Screenshot")
local store = {}
Msg("BeforeUpsampledScreenshot", store)
WaitNextFrame()
MovieWriteScreenshot(GenerateScreenshotFilename("SSAA", "AppData/"), 0, 64, false)
WaitNextFrame()
Msg("AfterUpsampledScreenshot", store)
UnlockCamera("Screenshot")
end)
end
end,
'replace_matching_id', true,
}),
}),
PlaceObj('XTemplateAction', {
'comment', "(Ctrl-Alt-K)",
'ActionId', "SVNShowLog",
'ActionTranslate', false,
'ActionName', "SVN Show Log",
'ActionIcon', "CommonAssets/UI/Icons/children flow.png",
'ActionShortcut', "Ctrl-Alt-K",
'OnAction', function (self, host, source, ...)
CreateRealTimeThread(function()
SVNShowLog(ConvertToOSPath("svnProject/") .. "..\\")
end)
end,
'__condition', function (parent, context) return Platform.developer end,
'replace_matching_id', true,
}),
PlaceObj('XTemplateAction', {
'comment', "Show game log",
'RolloverText', "Show game log",
'ActionId', "Log Viewer",
'ActionTranslate', false,
'ActionName', "Log Viewer",
'ActionIcon', "CommonAssets/UI/Icons/bullet list.png",
'ActionShortcut', "Ctrl-Alt-F2",
'ActionState', function (self, host)
if Platform.asserts then return end
return "hidden"
end,
'OnAction', function (self, host, source, ...)
ShowLog()
end,
'replace_matching_id', true,
}),
}),
PlaceObj('XTemplateAction', {
'comment', " (Ctrl-Alt-U)",
'ActionId', "DisableUIL",
'ActionTranslate', false,
'ActionShortcut', "Ctrl-Alt-U",
'OnAction', function (self, host, source, ...)
if Platform.publisher or Platform.developer then
rawset(_G, "OrgXRender", rawget(_G, "OrgXRender") or XRender)
if XRender == OrgXRender then
XRender = function() end
else
XRender = OrgXRender
end
UIL.Invalidate()
end
end,
'replace_matching_id', true,
}),
PlaceObj('XTemplateAction', {
'comment', "Shows console (Enter, Alt-Shift-C)",
'ActionId', "DE_Console",
'ActionTranslate', false,
'ActionShortcut', "Enter",
'ActionShortcut2', "Alt-Shift-C",
'OnAction', function (self, host, source, ...) ShowConsole(true) end,
'__condition', function (parent, context) return AreCheatsEnabled() or ConsoleEnabled or config.EnableHaerald end,
'replace_matching_id', true,
}),
PlaceObj('XTemplateAction', {
'comment', "Clear screen (F9)",
'ActionId', "DE_ClearScreen",
'ActionTranslate', false,
'ActionShortcut', "F9",
'OnAction', function (self, host, source, ...) cls() DbgClear() end,
'__condition', function (parent, context) return Platform.asserts or AreModdingToolsActive() end,
'replace_matching_id', true,
}),
PlaceObj('XTemplateAction', {
'comment', "Show/Hide the User Actions menu (~)",
'ActionId', "DE_Menu",
'ActionTranslate', false,
'ActionIcon', "CommonAssets/UI/Menu/default.tga",
'ActionShortcut', "-~",
'OnAction', function (self, host, source, ...)
if not Platform.ged and AreCheatsEnabled() then
if IsEditorActive() then
XShortcutsTarget:FocusSearch()
else
XShortcutsTarget:Toggle()
end
end
end,
'replace_matching_id', true,
}),
PlaceObj('XTemplateAction', {
'ActionId', "actionInGameMainMenu",
'ActionMode', "Game",
'ActionName', T(790736535889, --[[XTemplate CommonShortcuts ActionName]] "Main Menu"),
'ActionShortcut', "Escape",
'ActionGamepad', "Start",
'OnAction', function (self, host, source, ...)
if GetMap() == "" then return end
local modal = terminal.desktop:GetModalWindow()
if not modal or modal == terminal.desktop then
if not (rawget(_G, "CloseBuildMenu") and CloseBuildMenu()) then
OpenIngameMainMenu()
end
else
CloseIngameMainMenu()
end
end,
'IgnoreRepeated', true,
}),
PlaceObj('XTemplateAction', {
'ActionId', "actionToggleFullscreen",
'ActionMode', "Game",
'ActionName', T(638117129519, --[[XTemplate CommonShortcuts ActionName]] "Toggle Fullscreen"),
'ActionShortcut', "Alt-Enter",
'OnAction', function (self, host, source, ...)
DelayedCall(50, ToggleFullscreen)
end,
'IgnoreRepeated', true,
}),
PlaceObj('XTemplateAction', {
'ActionId', "Debug",
'ActionTranslate', false,
'ActionName', "Debug",
'ActionMenubar', "DevMenu",
'OnActionEffect', "popup",
'__condition', function (parent, context) return Platform.asserts end,
'replace_matching_id', true,
}, {
PlaceObj('XTemplateAction', {
'comment', "Invoke remote Lua debugger (F11)",
'RolloverText', "Invoke remote Lua debugger (F11)",
'ActionId', "DE_StartRemDebug",
'ActionTranslate', false,
'ActionName', "Start Remote Lua Debugger",
'ActionIcon', "CommonAssets/UI/Icons/media outline play.png",
'ActionShortcut', "F11",
'ActionGamepad', "LeftTrigger-RightTrigger-LeftShoulder-RightShoulder",
'OnAction', function (self, host, source, ...) StartDebugger() end,
'replace_matching_id', true,
}),
PlaceObj('XTemplateAction', {
'comment', "Stop Lua debugger (Shift-F11)",
'RolloverText', "Stop Lua debugger (Shift-F11)",
'ActionId', "DE_StopRemDebug",
'ActionTranslate', false,
'ActionName', "Stop Remote Lua Debugger",
'ActionIcon', "CommonAssets/UI/Icons/media stop.png",
'ActionShortcut', "Shift-F11",
'OnAction', function (self, host, source, ...) StopDebugger() end,
'replace_matching_id', true,
}),
}),
})
|