SetClipboardText
Definition
-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:1170
function M.SetClipboardText(string_text)
if string_text == nil then log("E", "", "Parameter 'string_text' of function 'SetClipboardText' cannot be nil, as the c type is 'const char *'") ; return end
imgui.SetClipboardText(string_text)
end
Callers
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartList.lua
openPartWindows()
im.SetClipboardText(partName)
end
local _, filename, _ = path.split(tostring(v[3]))
im.SetClipboardText(filename)
end
@/lua/ge/extensions/editor/rallyEditor/pacenotes/pacenoteForm.lua
if editor.uiIconImageButton(editor.icons.play_circle_filled, im.ImVec2(20, 20), voicePlayClr) then
im.SetClipboardText(fname)
if file_exists then
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
if string_text == nil then log("E", "", "Parameter 'string_text' of function 'SetClipboardText' cannot be nil, as the c type is 'const char *'") ; return end
imgui.SetClipboardText(string_text)
end
@/lua/ge/extensions/editor/cameraTransform.lua
if im.Button("Copy") then
im.SetClipboardText(ffi.string(camTransfrom))
end
@/lua/ge/extensions/editor/assetManagementTool.lua
local folder, fileNameOnly, ext = path.split(record.suggestedFilename)
imgui.SetClipboardText(fileNameOnly)
end
if imgui.Button("Copy Path##btnCopyDelinkedFilename" .. idx) then
imgui.SetClipboardText(record.filename)
end
if imgui.Button("Copy Path##btnCopyRelinkedFilename" .. idx) then
imgui.SetClipboardText(record.filename)
end
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/vePropTransformer.lua
local copyText = string.format('"x":%0.3f, "y":%0.3f, "z":%0.3f', btgX, btgY, btgZ)
im.SetClipboardText(copyText)
end
local copyText = string.format('"x":%0.3f, "y":%0.3f, "z":%0.3f', btgRx * 180.0 / math.pi, btgRy * 180.0 / math.pi, btgRz * 180.0 / math.pi)
im.SetClipboardText(copyText)
end
@/lua/ge/extensions/editor/materialEditor.lua
if im.Selectable1("Copy"..suffix) then
im.SetClipboardText(tostring(res))
im.CloseCurrentPopup()
@/lua/ge/extensions/editor/rallyEditor/pacenotes/customForm.lua
if editor.uiIconImageButton(editor.icons.play_circle_filled, im.ImVec2(20, 20), voicePlayClr) then
im.SetClipboardText(fname)
if file_exists then
if editor.uiIconImageButton(editor.icons.content_copy, im.ImVec2(20, 20), im.ImVec4(1, 1, 1, 1)) then
im.SetClipboardText(path.dirname(fnames[1]))
end
@/lua/ge/extensions/editor/iconOverview.lua
menu()
M.drawContent(function(v) imgui.SetClipboardText(v) end)
end
@/lua/ge/extensions/editor/rallyEditor/pacenotes/structuredForm.lua
if editor.uiIconImageButton(editor.icons.play_circle_filled, im.ImVec2(20, 20), voicePlayClr) then
im.SetClipboardText(fname)
if file_exists then
if editor.uiIconImageButton(editor.icons.content_copy, im.ImVec2(20, 20), im.ImVec4(1, 1, 1, 1)) then
im.SetClipboardText(path.dirname(fnames[1]))
end
@/lua/ge/extensions/editor/assetBrowser.lua
name = "Copy path",
fn = function(dir) im.SetClipboardText(dir.path)
end
name = "Copy path",
fn = function(asset) im.SetClipboardText(asset.path) end
},
@/lua/ge/extensions/editor/flowgraph/main.lua
local txt = lpack.encode(self.fgEditor.copyData)
im.SetClipboardText(txt)
log("I","","Encoded Clipboard")
@/lua/ge/extensions/editor/audioEventsList.lua
if im.Selectable1("Copy to clipboard") then
im.SetClipboardText(event.eventName)
end
@/lua/ge/extensions/editor/resourceChecker.lua
end
if FS:fileExists(res) then im.SetClipboardText(res) else log('E', '', 'Path :'..tostring(res)..' does not exist' ) end
im.CloseCurrentPopup()