Ui
The overlay: ImGui drawing helpers, toasts, the cursor and game input, and Wraith’s own UI.
ImGui itself is the imgui area.
WorkbenchTab
Section titled “WorkbenchTab”A tab in the Workbench, or a kind of them, from Ui.addWorkbenchTab. All on the Workbench’s thread. id
is empty unless it’s multi. Only describe and draw are needed; without the rest, it has no New, keeps
its label and closes when asked.
describe(): Wraith.WorkbenchTab.Infodraw(id: string): voidstatus(id: string): Wraith.WorkbenchTab.Statecreate(): stringkeepOpen(id: string): booleandescribe(): Wraith.WorkbenchTab.Infodraw(id: string)status(id: string): Wraith.WorkbenchTab.Statecreate(): stringkeepOpen(id: string): booleanWraith.WorkbenchTab.Info Describe()void Draw(string id)Wraith.WorkbenchTab.State Status(string id)string Create()bool KeepOpen(string id)Wraith::WorkbenchTab_Info describe() constvoid draw(std::string_view id) constWraith::WorkbenchTab_State status(std::string_view id) conststd::string_view create() constbool keepOpen(std::string_view id) constpub fn describe(&self) -> wraith::WorkbenchTabInfopub fn draw(&self, id: &str)pub fn status(&self, id: &str) -> wraith::WorkbenchTabStatepub fn create(&self) -> &strpub fn keep_open(&self, id: &str) -> boolfn describe(self: Wraith.WorkbenchTab) Wraith.WorkbenchTab.Infofn draw(self: Wraith.WorkbenchTab, id: []const u8) voidfn status(self: Wraith.WorkbenchTab, id: []const u8) Wraith.WorkbenchTab.Statefn create(self: Wraith.WorkbenchTab) []const u8fn keepOpen(self: Wraith.WorkbenchTab, id: []const u8) boolWraith_WorkbenchTab_Info Wraith_WorkbenchTab_describe(Wraith_WorkbenchTab self)void Wraith_WorkbenchTab_draw(Wraith_WorkbenchTab self, sal_string id)Wraith_WorkbenchTab_State Wraith_WorkbenchTab_status(Wraith_WorkbenchTab self, sal_string id)sal_string Wraith_WorkbenchTab_create(Wraith_WorkbenchTab self)bool Wraith_WorkbenchTab_keepOpen(Wraith_WorkbenchTab self, sal_string id)describe
Section titled “describe”Asked once, as it’s added
Uses WorkbenchTab.Info.
status
Section titled “status”Asked each frame it shows
Uses WorkbenchTab.State.
create
Section titled “create”For multi, from View’s New: a new one’s id, or empty for none
keepOpen
Section titled “keepOpen”Its close button was pressed. True keeps it open, like to ask about saving first, then
Contribution.close it. For multi, a closed one’s gone; else it comes back from View
WorkbenchPanel
Section titled “WorkbenchPanel”A panel of the plugin’s in the Workbench.
isOpen(): booleanfocus(): voidremove(): voidisOpen(): booleanfocus()remove()bool IsOpen()void Focus()void Remove()bool isOpen() constvoid focus() constvoid remove() constpub fn is_open(&self) -> boolpub fn focus(&self)pub fn remove(&self)fn isOpen(self: Wraith.WorkbenchPanel) boolfn focus(self: Wraith.WorkbenchPanel) voidfn remove(self: Wraith.WorkbenchPanel) voidbool Wraith_WorkbenchPanel_isOpen(Wraith_WorkbenchPanel self)void Wraith_WorkbenchPanel_focus(Wraith_WorkbenchPanel self)void Wraith_WorkbenchPanel_remove(Wraith_WorkbenchPanel self)isOpen
Section titled “isOpen”Opens it and brings its tab to the front
remove
Section titled “remove”Waits for a draw under way, except from inside a draw or a script. Fine to call twice.
Window
Section titled “Window”A window of the plugin’s on the overlay. It starts closed.
isOpen(): booleansetOpen(open: boolean): voidfocus(): voidsetUnsaved(unsaved: boolean): voidremove(): voidisOpen(): booleansetOpen(open: boolean)focus()setUnsaved(unsaved: boolean)remove()bool IsOpen()void SetOpen(bool open)void Focus()void SetUnsaved(bool unsaved)void Remove()bool isOpen() constvoid setOpen(bool open) constvoid focus() constvoid setUnsaved(bool unsaved) constvoid remove() constpub fn is_open(&self) -> boolpub fn set_open(&self, open: bool)pub fn focus(&self)pub fn set_unsaved(&self, unsaved: bool)pub fn remove(&self)fn isOpen(self: Wraith.Window) boolfn setOpen(self: Wraith.Window, open: bool) voidfn focus(self: Wraith.Window) voidfn setUnsaved(self: Wraith.Window, unsaved: bool) voidfn remove(self: Wraith.Window) voidbool Wraith_Window_isOpen(Wraith_Window self)void Wraith_Window_setOpen(Wraith_Window self, bool open)void Wraith_Window_focus(Wraith_Window self)void Wraith_Window_setUnsaved(Wraith_Window self, bool unsaved)void Wraith_Window_remove(Wraith_Window self)isOpen
Section titled “isOpen”setOpen
Section titled “setOpen”Opens it and brings it to the front
setUnsaved
Section titled “setUnsaved”A dot in its title, for unsaved changes
remove
Section titled “remove”Fine to call twice, or from inside its draw.
Handles over the game, drawn with the game plugin’s camera. Only the last shown one shows. Any thread. Draggable while the overlay has the mouse.
show(): voidhide(): voidplace(world: import("salamander").Given<Wraith.Mat4>): voidsetTool(tool: Wraith.Gizmo.Tool | Wraith.Gizmo.ToolName): voidsetWorldAxes(on: boolean): voidmoved(): Wraith.Mat4 | nulldragging(): booleanhovered(): booleanremove(): voidshow()hide()place(world: Wraith.Mat4)setTool(tool: Wraith.Gizmo.Tool|Wraith.Gizmo.ToolName)setWorldAxes(on: boolean)moved(): Wraith.Mat4|nildragging(): booleanhovered(): booleanremove()void Show()void Hide()void Place(Wraith.Mat4 world)void SetTool(Wraith.Gizmo.Tool tool)void SetWorldAxes(bool on)Wraith.Mat4? Moved()bool Dragging()bool Hovered()void Remove()void show() constvoid hide() constvoid place(Wraith::Mat4 world) constvoid setTool(Wraith::Gizmo_Tool tool) constvoid setWorldAxes(bool on) conststd::optional<Wraith::Mat4> moved() constbool dragging() constbool hovered() constvoid remove() constpub fn show(&self)pub fn hide(&self)pub fn place(&self, world: wraith::Mat4)pub fn set_tool(&self, tool: wraith::GizmoTool)pub fn set_world_axes(&self, on: bool)pub fn moved(&self) -> Option<wraith::Mat4>pub fn dragging(&self) -> boolpub fn hovered(&self) -> boolpub fn remove(&self)fn show(self: Wraith.Gizmo) voidfn hide(self: Wraith.Gizmo) voidfn place(self: Wraith.Gizmo, world: Wraith.Mat4) voidfn setTool(self: Wraith.Gizmo, tool: Wraith.Gizmo.Tool) voidfn setWorldAxes(self: Wraith.Gizmo, on: bool) voidfn moved(self: Wraith.Gizmo) ?Wraith.Mat4fn dragging(self: Wraith.Gizmo) boolfn hovered(self: Wraith.Gizmo) boolfn remove(self: Wraith.Gizmo) voidvoid Wraith_Gizmo_show(Wraith_Gizmo self)void Wraith_Gizmo_hide(Wraith_Gizmo self)void Wraith_Gizmo_place(Wraith_Gizmo self, Wraith_Mat4 world)void Wraith_Gizmo_setTool(Wraith_Gizmo self, Wraith_Gizmo_Tool tool)void Wraith_Gizmo_setWorldAxes(Wraith_Gizmo self, bool on)Opt_Wraith_Mat4 Wraith_Gizmo_moved(Wraith_Gizmo self)bool Wraith_Gizmo_dragging(Wraith_Gizmo self)bool Wraith_Gizmo_hovered(Wraith_Gizmo self)void Wraith_Gizmo_remove(Wraith_Gizmo self)Shows it in front of any other. Needs a place.
Till the next show. Whichever was shown before shows again.
Its world transform, each tick, row-vector. Ignored while it’s dragged.
Uses Mat4.
setTool
Section titled “setTool”Uses Gizmo.Tool.
setWorldAxes
Section titled “setWorldAxes”Along the world’s axes rather than its own
Where it’s been dragged to since last asked, or null, including a drag’s end. Move yours there.
Uses Mat4.
dragging
Section titled “dragging”hovered
Section titled “hovered”The mouse was on it last frame, so a click there is for it.
remove
Section titled “remove”Fine to call twice.
Plugins built against an older order still work, since tables are matched by name
Get it with Api.ui().
available(): booleandisplaySize(): Wraith.ImVec2windowDrawList(): Wraith.ImDrawList | nullforegroundDrawList(): Wraith.ImDrawList | nullbackgroundDrawList(): Wraith.ImDrawList | nullinputText(label: string | null, text: string, flags: Wraith.ImGuiInputTextFlags | Wraith.ImGuiInputTextFlagsName): stringinputMultiline(label: string | null, text: string, size: import("salamander").Given<Wraith.ImVec2>, flags: Wraith.ImGuiInputTextFlags | Wraith.ImGuiInputTextFlagsName): stringcopyableText(id: string | null, text: string): voidclip(count: number, row: Wraith.Ui.ClipRow): voidtableSortedBy(): Wraith.Ui.SortSpec | nulleditStruct(type: string, address: number | bigint): booleantoast(toast: import("salamander").Given<Wraith.Toast>): numberupdateToast(id: number, toast: import("salamander").Given<Wraith.Toast>): booleandismissToast(id: number): voidshowCursor(show: boolean): voidsetCursorHint(hint: Wraith.Ui.CursorHint | Wraith.Ui.CursorHintName): voidsetMouseFree(free: boolean): voidtakeInput(device: Wraith.Ui.InputDevice | Wraith.Ui.InputDeviceName, take: boolean): voidinputTaken(device: Wraith.Ui.InputDevice | Wraith.Ui.InputDeviceName): booleanholdMouse(hold: boolean): voidmouseMotion(): Wraith.PointaddGizmo(): Wraith.Gizmoslots(): Array<Wraith.Slot.Info>addWindow(options: import("salamander").Given<Wraith.Window.Options>, draw: Wraith.Window.Draw): Wraith.WindowonOpenSettings(open: Wraith.Ui.OpenSettings): voidaddWorkbenchPanel(options: import("salamander").Given<Wraith.WorkbenchPanel.Options>, draw: Wraith.WorkbenchPanel.Draw): Wraith.WorkbenchPaneladdWorkbenchTab(tab: Wraith.WorkbenchTab | null): Wraith.ContributioncontributeTo(slot: string, contribution: object | null): Wraith.ContributiondefineSlot(definition: import("salamander").Given<Wraith.Slot.Definition>): Wraith.SlotshowClass(class_name: string): voidimguiProc(name: string): numberimguiVersion(): numberavailable(): booleandisplaySize(): Wraith.ImVec2windowDrawList(): Wraith.ImDrawList|nilforegroundDrawList(): Wraith.ImDrawList|nilbackgroundDrawList(): Wraith.ImDrawList|nilinputText(label: string|nil, text: string, flags: Wraith.ImGuiInputTextFlags|Wraith.ImGuiInputTextFlagsName): stringinputMultiline(label: string|nil, text: string, size: Wraith.ImVec2, flags: Wraith.ImGuiInputTextFlags|Wraith.ImGuiInputTextFlagsName): stringcopyableText(id: string|nil, text: string)clip(count: integer, row: Wraith.Ui.ClipRow)tableSortedBy(): Wraith.Ui.SortSpec|nileditStruct(type: string, address: integer): booleantoast(toast: Wraith.Toast): integerupdateToast(id: integer, toast: Wraith.Toast): booleandismissToast(id: integer)showCursor(show: boolean)setCursorHint(hint: Wraith.Ui.CursorHint|Wraith.Ui.CursorHintName)setMouseFree(free: boolean)takeInput(device: Wraith.Ui.InputDevice|Wraith.Ui.InputDeviceName, take: boolean)inputTaken(device: Wraith.Ui.InputDevice|Wraith.Ui.InputDeviceName): booleanholdMouse(hold: boolean)mouseMotion(): Wraith.PointaddGizmo(): Wraith.Gizmoslots(): (Wraith.Slot.Info)[]addWindow(options: Wraith.Window.Options, draw: Wraith.Window.Draw): Wraith.WindowonOpenSettings(open: Wraith.Ui.OpenSettings)addWorkbenchPanel(options: Wraith.WorkbenchPanel.Options, draw: Wraith.WorkbenchPanel.Draw): Wraith.WorkbenchPaneladdWorkbenchTab(tab: Wraith.WorkbenchTab|nil): Wraith.ContributioncontributeTo(slot: string, contribution: any): Wraith.ContributiondefineSlot(definition: Wraith.Slot.Definition): Wraith.SlotshowClass(class_name: string)imguiProc(name: string): integerimguiVersion(): integerbool Available()Wraith.ImVec2 DisplaySize()Wraith.ImDrawList? WindowDrawList()Wraith.ImDrawList? ForegroundDrawList()Wraith.ImDrawList? BackgroundDrawList()string InputText(string? label, string text, Wraith.ImGuiInputTextFlags flags)string InputMultiline(string? label, string text, Wraith.ImVec2 size, Wraith.ImGuiInputTextFlags flags)void CopyableText(string? id, string text)void Clip(uint count, Wraith.Ui.ClipRow? row)Wraith.Ui.SortSpec? TableSortedBy()bool EditStruct(string type, nuint address)uint Toast(Wraith.Toast toast)bool UpdateToast(uint id, Wraith.Toast toast)void DismissToast(uint id)void ShowCursor(bool show)void SetCursorHint(Wraith.Ui.CursorHint hint)void SetMouseFree(bool free)void TakeInput(Wraith.Ui.InputDevice device, bool take)bool InputTaken(Wraith.Ui.InputDevice device)void HoldMouse(bool hold)Wraith.Point MouseMotion()Wraith.Gizmo? AddGizmo()Wraith.Slot.Info[] Slots()Wraith.Window? AddWindow(Wraith.Window.Options options, Wraith.Window.Draw? draw)void OnOpenSettings(Wraith.Ui.OpenSettings? open)Wraith.WorkbenchPanel? AddWorkbenchPanel(Wraith.WorkbenchPanel.Options options, Wraith.WorkbenchPanel.Draw? draw)Wraith.Contribution? AddWorkbenchTab(Wraith.WorkbenchTab? tab)Wraith.Contribution? ContributeTo(string slot, Salamander.AnyObject contribution)Wraith.Slot? DefineSlot(Wraith.Slot.Definition definition)void ShowClass(string class_name)nuint ImguiProc(string name)uint ImguiVersion()bool available() constWraith::ImVec2 displaySize() constWraith::ImDrawList windowDrawList() constWraith::ImDrawList foregroundDrawList() constWraith::ImDrawList backgroundDrawList() conststd::string_view inputText(const char * label, std::string_view text, Wraith::ImGuiInputTextFlags flags) conststd::string_view inputMultiline(const char * label, std::string_view text, Wraith::ImVec2 size, Wraith::ImGuiInputTextFlags flags) constvoid copyableText(const char * id, std::string_view text) constvoid clip(uint32_t count, Wraith::Ui_ClipRow row) conststd::optional<Wraith::Ui_SortSpec> tableSortedBy() constbool editStruct(std::string_view type, uintptr_t address) constuint32_t toast(Wraith::Toast toast) constbool updateToast(uint32_t id, Wraith::Toast toast) constvoid dismissToast(uint32_t id) constvoid showCursor(bool show) constvoid setCursorHint(Wraith::Ui_CursorHint hint) constvoid setMouseFree(bool free) constvoid takeInput(Wraith::Ui_InputDevice device, bool take) constbool inputTaken(Wraith::Ui_InputDevice device) constvoid holdMouse(bool hold) constWraith::Point mouseMotion() constWraith::Gizmo addGizmo() conststd::span<const Wraith::Slot_Info> slots() constWraith::Window addWindow(Wraith::Window_Options options, Wraith::Window_Draw draw) constvoid onOpenSettings(Wraith::Ui_OpenSettings open) constWraith::WorkbenchPanel addWorkbenchPanel(Wraith::WorkbenchPanel_Options options, Wraith::WorkbenchPanel_Draw draw) constsal::Result<Wraith::Contribution, Wraith::SlotError> addWorkbenchTab(Wraith::WorkbenchTab tab) constsal::Result<Wraith::Contribution, Wraith::SlotError> contributeTo(std::string_view slot, sal::Object contribution) constsal::Result<Wraith::Slot, Wraith::SlotError> defineSlot(Wraith::Slot_Definition definition) constvoid showClass(std::string_view class_name) constuintptr_t imguiProc(std::string_view name) constuint32_t imguiVersion() constpub fn available(&self) -> boolpub fn display_size(&self) -> wraith::ImVec2pub fn window_draw_list(&self) -> wraith::ImDrawListpub fn foreground_draw_list(&self) -> wraith::ImDrawListpub fn background_draw_list(&self) -> wraith::ImDrawListpub fn input_text(&self, label: *const u8, text: &str, flags: wraith::ImGuiInputTextFlags) -> &strpub fn input_multiline(&self, label: *const u8, text: &str, size: wraith::ImVec2, flags: wraith::ImGuiInputTextFlags) -> &strpub fn copyable_text(&self, id: *const u8, text: &str)pub fn clip(&self, count: u32, row: wraith::UiClipRow)pub fn table_sorted_by(&self) -> Option<wraith::UiSortSpec>pub fn edit_struct(&self, r#type: &str, address: usize) -> boolpub fn toast(&self, toast: wraith::Toast) -> u32pub fn update_toast(&self, id: u32, toast: wraith::Toast) -> boolpub fn dismiss_toast(&self, id: u32)pub fn show_cursor(&self, show: bool)pub fn set_cursor_hint(&self, hint: wraith::UiCursorHint)pub fn set_mouse_free(&self, free: bool)pub fn take_input(&self, device: wraith::UiInputDevice, take: bool)pub fn input_taken(&self, device: wraith::UiInputDevice) -> boolpub fn hold_mouse(&self, hold: bool)pub fn mouse_motion(&self) -> wraith::Pointpub fn add_gizmo(&self) -> wraith::Gizmopub fn slots(&self) -> &[wraith::SlotInfo]pub fn add_window(&self, options: wraith::WindowOptions, draw: wraith::WindowDraw) -> wraith::Windowpub fn on_open_settings(&self, open: wraith::UiOpenSettings)pub fn add_workbench_panel(&self, options: wraith::WorkbenchPanelOptions, draw: wraith::WorkbenchPanelDraw) -> wraith::WorkbenchPanelpub fn add_workbench_tab(&self, tab: wraith::WorkbenchTab) -> Result<wraith::Contribution, wraith::SlotError>pub fn contribute_to(&self, slot: &str, contribution: salamander::Object) -> Result<wraith::Contribution, wraith::SlotError>pub fn define_slot(&self, definition: wraith::SlotDefinition) -> Result<wraith::Slot, wraith::SlotError>pub fn show_class(&self, class_name: &str)pub fn imgui_proc(&self, name: &str) -> usizepub fn imgui_version(&self) -> u32fn available(self: Wraith.Ui) boolfn displaySize(self: Wraith.Ui) Wraith.ImVec2fn windowDrawList(self: Wraith.Ui) ?Wraith.ImDrawListfn foregroundDrawList(self: Wraith.Ui) ?Wraith.ImDrawListfn backgroundDrawList(self: Wraith.Ui) ?Wraith.ImDrawListfn inputText(self: Wraith.Ui, label: ?[*:0]const u8, text: []const u8, flags: Wraith.ImGuiInputTextFlags) []const u8fn inputMultiline(self: Wraith.Ui, label: ?[*:0]const u8, text: []const u8, size: Wraith.ImVec2, flags: Wraith.ImGuiInputTextFlags) []const u8fn copyableText(self: Wraith.Ui, id: ?[*:0]const u8, text: []const u8) voidfn clip(self: Wraith.Ui, count: u32, row: Wraith.Ui.ClipRow) voidfn tableSortedBy(self: Wraith.Ui) ?Wraith.Ui.SortSpecfn editStruct(self: Wraith.Ui, @"type": []const u8, address: usize) boolfn toast(self: Wraith.Ui, toast: Wraith.Toast) u32fn updateToast(self: Wraith.Ui, id: u32, toast: Wraith.Toast) boolfn dismissToast(self: Wraith.Ui, id: u32) voidfn showCursor(self: Wraith.Ui, show: bool) voidfn setCursorHint(self: Wraith.Ui, hint: Wraith.Ui.CursorHint) voidfn setMouseFree(self: Wraith.Ui, free: bool) voidfn takeInput(self: Wraith.Ui, device: Wraith.Ui.InputDevice, take: bool) voidfn inputTaken(self: Wraith.Ui, device: Wraith.Ui.InputDevice) boolfn holdMouse(self: Wraith.Ui, hold: bool) voidfn mouseMotion(self: Wraith.Ui) Wraith.Pointfn addGizmo(self: Wraith.Ui) Wraith.Gizmofn slots(self: Wraith.Ui) []const Wraith.Slot.Infofn addWindow(self: Wraith.Ui, options: Wraith.Window.Options, draw: Wraith.Window.Draw) Wraith.Windowfn onOpenSettings(self: Wraith.Ui, open: Wraith.Ui.OpenSettings) voidfn addWorkbenchPanel(self: Wraith.Ui, options: Wraith.WorkbenchPanel.Options, draw: Wraith.WorkbenchPanel.Draw) Wraith.WorkbenchPanelfn addWorkbenchTab(self: Wraith.Ui, tab: Wraith.WorkbenchTab) (Wraith.SlotError || rt.Failure)!Wraith.Contributionfn contributeTo(self: Wraith.Ui, slot: []const u8, contribution: rt.AnyObject) (Wraith.SlotError || rt.Failure)!Wraith.Contributionfn defineSlot(self: Wraith.Ui, definition: Wraith.Slot.Definition) (Wraith.SlotError || rt.Failure)!Wraith.Slotfn showClass(self: Wraith.Ui, class_name: []const u8) voidfn imguiProc(self: Wraith.Ui, name: []const u8) usizefn imguiVersion(self: Wraith.Ui) u32bool Wraith_Ui_available(Wraith_Ui self)Wraith_ImVec2 Wraith_Ui_displaySize(Wraith_Ui self)Wraith_ImDrawList Wraith_Ui_windowDrawList(Wraith_Ui self)Wraith_ImDrawList Wraith_Ui_foregroundDrawList(Wraith_Ui self)Wraith_ImDrawList Wraith_Ui_backgroundDrawList(Wraith_Ui self)sal_string Wraith_Ui_inputText(Wraith_Ui self, const char* label, sal_string text, Wraith_ImGuiInputTextFlags flags)sal_string Wraith_Ui_inputMultiline(Wraith_Ui self, const char* label, sal_string text, Wraith_ImVec2 size, Wraith_ImGuiInputTextFlags flags)void Wraith_Ui_copyableText(Wraith_Ui self, const char* id, sal_string text)void Wraith_Ui_clip(Wraith_Ui self, uint32_t count, Wraith_Ui_ClipRow row)Opt_Wraith_Ui_SortSpec Wraith_Ui_tableSortedBy(Wraith_Ui self)bool Wraith_Ui_editStruct(Wraith_Ui self, sal_string type, uintptr_t address)uint32_t Wraith_Ui_toast(Wraith_Ui self, Wraith_Toast toast)bool Wraith_Ui_updateToast(Wraith_Ui self, uint32_t id, Wraith_Toast toast)void Wraith_Ui_dismissToast(Wraith_Ui self, uint32_t id)void Wraith_Ui_showCursor(Wraith_Ui self, bool show)void Wraith_Ui_setCursorHint(Wraith_Ui self, Wraith_Ui_CursorHint hint)void Wraith_Ui_setMouseFree(Wraith_Ui self, bool free)void Wraith_Ui_takeInput(Wraith_Ui self, Wraith_Ui_InputDevice device, bool take)bool Wraith_Ui_inputTaken(Wraith_Ui self, Wraith_Ui_InputDevice device)void Wraith_Ui_holdMouse(Wraith_Ui self, bool hold)Wraith_Point Wraith_Ui_mouseMotion(Wraith_Ui self)Wraith_Gizmo Wraith_Ui_addGizmo(Wraith_Ui self)Slice_Wraith_Slot_Info Wraith_Ui_slots(Wraith_Ui self)Wraith_Window Wraith_Ui_addWindow(Wraith_Ui self, Wraith_Window_Options options, Wraith_Window_Draw draw)void Wraith_Ui_onOpenSettings(Wraith_Ui self, Wraith_Ui_OpenSettings open)Wraith_WorkbenchPanel Wraith_Ui_addWorkbenchPanel(Wraith_Ui self, Wraith_WorkbenchPanel_Options options, Wraith_WorkbenchPanel_Draw draw)uint32_t Wraith_Ui_addWorkbenchTab(Wraith_Ui self, Wraith_WorkbenchTab tab, Wraith_Contribution *out)uint32_t Wraith_Ui_contributeTo(Wraith_Ui self, sal_string slot, sal_object contribution, Wraith_Contribution *out)uint32_t Wraith_Ui_defineSlot(Wraith_Ui self, Wraith_Slot_Definition definition, Wraith_Slot *out)void Wraith_Ui_showClass(Wraith_Ui self, sal_string class_name)uintptr_t Wraith_Ui_imguiProc(Wraith_Ui self, sal_string name)uint32_t Wraith_Ui_imguiVersion(Wraith_Ui self)available
Section titled “available”False in games whose graphics it can’t hook
displaySize
Section titled “displaySize”The game window’s size in pixels. Zero outside a draw callback.
Uses ImVec2.
windowDrawList
Section titled “windowDrawList”The current window’s, foreground’s or background’s. Null outside a draw callback.
Uses ImDrawList.
foregroundDrawList
Section titled “foregroundDrawList”Uses ImDrawList.
backgroundDrawList
Section titled “backgroundDrawList”Uses ImDrawList.
inputText
Section titled “inputText”Any length. Keeps the edit by label while typing, so text only shows once it’s left.
Uses ImGuiInputTextFlags.
inputMultiline
Section titled “inputMultiline”Uses ImVec2, ImGuiInputTextFlags.
copyableText
Section titled “copyableText”Text with a copy button
Calls row for each on-screen row of count equal-height rows
Uses Ui.ClipRow.
tableSortedBy
Section titled “tableSortedBy”How the current table’s sorted, or null if the user hasn’t sorted it.
Uses Ui.SortSpec.
editStruct
Section titled “editStruct”A schema struct as live controls, shaped by [Label], [Range], [ReadOnly] and [Hidden]. 0
address uses its [Instance]. False if it’s unknown or not made yet
Its id, or 0 without an overlay
Uses Toast.
updateToast
Section titled “updateToast”False once it’s gone
Uses Toast.
dismissToast
Section titled “dismissToast”showCursor
Section titled “showCursor”While any plugin asks
setCursorHint
Section titled “setCursorHint”Uses Ui.CursorHint.
setMouseFree
Section titled “setMouseFree”For games that leave the cursor free, like FFXIV: Wraith only takes input over its windows. For game plugins; the player’s setting can override
takeInput
Section titled “takeInput”Hides it from the game while any plugin asks
Uses Ui.InputDevice.
inputTaken
Section titled “inputTaken”Uses Ui.InputDevice.
holdMouse
Section titled “holdMouse”Locks the cursor hidden in the window centre from next frame while any plugin asks, for mouse-look.
mouseMotion
Section titled “mouseMotion”Pixels moved since last frame while held, right and down positive. In a draw callback.
Uses Point.
addGizmo
Section titled “addGizmo”Handles for moving, turning or scaling something. Gone with the plugin. Any thread.
Uses Gizmo.
Where a plugin can add to Wraith’s UI, plugins’ own slots too, and what each takes. Any thread.
Uses Slot.Info.
addWindow
Section titled “addWindow”Drawn by draw while open; close, Esc, its hub tile and Settings button all just work. Gone with
the plugin. Any thread.
Uses Window.Options, Window.Draw, Window.
onOpenSettings
Section titled “onOpenSettings”What the plugin’s Settings button on the Mods page does, else Wraith’s Settings. Replaces any earlier one. Gone with the plugin
Uses Ui.OpenSettings.
addWorkbenchPanel
Section titled “addWorkbenchPanel”A tab of its own in the Workbench, drawn by draw on the Workbench’s thread while showing. For
tabs inside it, draw them with ImGui’s tab bars. Gone with the plugin. Any thread. The same as
contributing to the workbench slot, with kind/id as its id
Uses WorkbenchPanel.Options, WorkbenchPanel.Draw, WorkbenchPanel.
addWorkbenchTab
Section titled “addWorkbenchTab”A tab, or a kind of them, that tab draws and says more about, like several at once. In the
workbench slot. Gone with the plugin. Any thread.
Fails with SlotError. Uses WorkbenchTab, Contribution.
contributeTo
Section titled “contributeTo”Adds contribution, of the trait its slot says, like ScenePart, to a slot. Scripts name it,
like salamander.implement("Wraith.ScenePart", obj). Gone with the plugin. Any thread
Fails with SlotError. Uses Contribution.
defineSlot
Section titled “defineSlot”A slot of the plugin’s own, plugin.id to others, which they add objects of its trait to with
contributeTo. Any thread
Fails with SlotError. Uses Slot.Definition, Slot.
showClass
Section titled “showClass”Opens the Workbench’s Classes on a C# class by full name. Any thread.
imguiProc
Section titled “imguiProc”A dcimgui function’s address by name, or 0
imguiVersion
Section titled “imguiVersion”The hosted Dear ImGui version, like 19250
Toast.Kind
Section titled “Toast.Kind”An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | info |
|
| 1 | success |
|
| 2 | warning |
|
| 3 | failure |
A struct, 0x30 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | style |
Toast.Kind |
|
| 0x8 | title |
string |
Empty shows the plugin’s name |
| 0x18 | text |
string |
|
| 0x28 | seconds |
f32 |
Paused while hovered. 0 stays till clicked or dismissed. |
style: Wraith.Toast.Kind | Wraith.Toast.KindNametitle: stringtext: stringseconds: numberstyle: Wraith.Toast.Kind|Wraith.Toast.KindNametitle: stringtext: stringseconds: numberWraith.Toast.Kind Stylestring Titlestring Textfloat SecondsWraith::Toast_Kind stylesal::String titlesal::String textfloat secondspub style: wraith::ToastKindpub title: salamander::Strpub text: salamander::Strpub seconds: f32style: Wraith.Toast.Kindtitle: []const u8text: []const u8seconds: f32Wraith_Toast_Kind stylesal_string titlesal_string textfloat secondsWorkbenchPanel.Draw
Section titled “WorkbenchPanel.Draw”On the Workbench’s own thread, not the render or game thread. Read what game-thread code left and queue changes for it, rather than calling into the game.
Wraith.WorkbenchPanel.DrawWraith.WorkbenchPanel.DrawWraith.WorkbenchPanel.DrawWraith::WorkbenchPanel_Drawwraith::WorkbenchPanelDrawWraith.WorkbenchPanel.DrawWraith_WorkbenchPanel_DrawWorkbenchPanel.Place
Section titled “WorkbenchPanel.Place”top is with the documents, bottom with Addresses, left with Search
An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | top |
|
| 1 | bottom |
|
| 2 | left |
WorkbenchPanel.Options
Section titled “WorkbenchPanel.Options”A struct, 0x48 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | title |
string |
Its tab’s label |
| 0x10 | kind |
string |
What it is, like sheets. With id, how Wraith remembers where it was moved. Empty uses the title |
| 0x20 | id |
string |
Which one of its kind, for several at once, like an address. Can be empty |
| 0x30 | place |
WorkbenchPanel.Place |
Where it goes the first time it shows. Closed, it comes back from View, or with focus |
| 0x34 | order |
i32 |
Lower comes first among tabs in the same place. Wraith’s own are 100 apart, from 100, and 0 is after them |
| 0x38 | parent |
string |
Inside another tab, as one of its tabs: its kind for one of the plugin’s own, like ffxiv, else plugin/kind, like wraith/debug. Empty for one of its own |
title: stringkind: stringid: stringplace: Wraith.WorkbenchPanel.Place | Wraith.WorkbenchPanel.PlaceNameorder: numberparent: stringtitle: stringkind: stringid: stringplace: Wraith.WorkbenchPanel.Place|Wraith.WorkbenchPanel.PlaceNameorder: integerparent: stringstring Titlestring Kindstring IdWraith.WorkbenchPanel.Place Placeint Orderstring Parentsal::String titlesal::String kindsal::String idWraith::WorkbenchPanel_Place placeint32_t ordersal::String parentpub title: salamander::Strpub kind: salamander::Strpub id: salamander::Strpub place: wraith::WorkbenchPanelPlacepub order: i32pub parent: salamander::Strtitle: []const u8kind: []const u8id: []const u8place: Wraith.WorkbenchPanel.Placeorder: i32parent: []const u8sal_string titlesal_string kindsal_string idWraith_WorkbenchPanel_Place placeint32_t ordersal_string parentWorkbenchTab.Info
Section titled “WorkbenchTab.Info”A struct, 0x48 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | title |
string |
Its tab’s label. For multi, what View’s New item makes, and each one’s label till status says |
| 0x10 | kind |
string |
What it is, like sheets. How Wraith remembers where it was moved, with each one’s id. Empty uses the title |
| 0x20 | place |
WorkbenchPanel.Place |
|
| 0x24 | order |
i32 |
Lower comes first among tabs in the same place. Wraith’s own are 100 apart, from 100, and 0 is after them |
| 0x28 | multi |
bool |
Several at once, each with an id, and View has New for another. Else one, which View lists |
| 0x30 | parent |
string |
Inside another tab, as WorkbenchPanel.Options.parent says. Not with multi |
| 0x40 | parts |
bool |
Holds the tabs that name it as their parent, as tabs inside it, and isn’t drawn itself |
title: stringkind: stringplace: Wraith.WorkbenchPanel.Place | Wraith.WorkbenchPanel.PlaceNameorder: numbermulti: booleanparent: stringparts: booleantitle: stringkind: stringplace: Wraith.WorkbenchPanel.Place|Wraith.WorkbenchPanel.PlaceNameorder: integermulti: booleanparent: stringparts: booleanstring Titlestring KindWraith.WorkbenchPanel.Place Placeint Orderbool Multistring Parentbool Partssal::String titlesal::String kindWraith::WorkbenchPanel_Place placeint32_t orderbool multisal::String parentbool partspub title: salamander::Strpub kind: salamander::Strpub place: wraith::WorkbenchPanelPlacepub order: i32pub multi: boolpub parent: salamander::Strpub parts: booltitle: []const u8kind: []const u8place: Wraith.WorkbenchPanel.Placeorder: i32multi: boolparent: []const u8parts: boolsal_string titlesal_string kindWraith_WorkbenchPanel_Place placeint32_t orderbool multisal_string parentbool partsWorkbenchTab.State
Section titled “WorkbenchTab.State”A struct, 0x18 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | title |
string |
Its tab’s label, which can change. Empty keeps the one before |
| 0x10 | unsaved |
bool |
A dot on its tab, like for a file not saved |
title: stringunsaved: booleantitle: stringunsaved: booleanstring Titlebool Unsavedsal::String titlebool unsavedpub title: salamander::Strpub unsaved: booltitle: []const u8unsaved: boolsal_string titlebool unsavedWindow.Draw
Section titled “Window.Draw”Draws a window’s contents, on the render thread between its Begin and End.
Wraith.Window.DrawWraith.Window.DrawWraith.Window.DrawWraith::Window_Drawwraith::WindowDrawWraith.Window.DrawWraith_Window_DrawWindow.Options
Section titled “Window.Options”A struct, 0x48 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | title |
string |
Also tells it apart from the plugin’s other windows |
| 0x10 | size |
ImVec2 |
Starting size, unscaled. Zero lets ImGui pick |
| 0x18 | min_size |
ImVec2 |
|
| 0x20 | max_size |
ImVec2 |
Zero for no limit that way |
| 0x28 | flags |
ImGuiWindowFlags |
|
| 0x2c | no_close |
bool |
No close button in its title bar |
| 0x2d | keep_on_escape |
bool |
Esc doesn’t close it |
| 0x30 | icon |
string |
A Lucide icon’s name, like “user” (see lucide.dev/icons), for a tile on the overlay’s bar that toggles it, through the hub slot. Empty for none |
| 0x40 | settings |
bool |
The plugin’s Settings button on the Mods page opens it |
title: stringsize: Wraith.ImVec2min_size: Wraith.ImVec2max_size: Wraith.ImVec2flags: Wraith.ImGuiWindowFlags | Wraith.ImGuiWindowFlagsNameno_close: booleankeep_on_escape: booleanicon: stringsettings: booleantitle: stringsize: Wraith.ImVec2min_size: Wraith.ImVec2max_size: Wraith.ImVec2flags: Wraith.ImGuiWindowFlags|Wraith.ImGuiWindowFlagsNameno_close: booleankeep_on_escape: booleanicon: stringsettings: booleanstring TitleWraith.ImVec2 SizeWraith.ImVec2 MinSizeWraith.ImVec2 MaxSizeWraith.ImGuiWindowFlags Flagsbool NoClosebool KeepOnEscapestring Iconbool Settingssal::String titleWraith::ImVec2 sizeWraith::ImVec2 min_sizeWraith::ImVec2 max_sizeWraith::ImGuiWindowFlags flagsbool no_closebool keep_on_escapesal::String iconbool settingspub title: salamander::Strpub size: wraith::ImVec2pub min_size: wraith::ImVec2pub max_size: wraith::ImVec2pub flags: wraith::ImGuiWindowFlagspub no_close: boolpub keep_on_escape: boolpub icon: salamander::Strpub settings: booltitle: []const u8size: Wraith.ImVec2min_size: Wraith.ImVec2max_size: Wraith.ImVec2flags: Wraith.ImGuiWindowFlagsno_close: boolkeep_on_escape: boolicon: []const u8settings: boolsal_string titleWraith_ImVec2 sizeWraith_ImVec2 min_sizeWraith_ImVec2 max_sizeWraith_ImGuiWindowFlags flagsbool no_closebool keep_on_escapesal_string iconbool settingsGizmo.Tool
Section titled “Gizmo.Tool”An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | move |
|
| 1 | rotate |
|
| 2 | scale |
Ui.CursorHint
Section titled “Ui.CursorHint”An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | auto |
|
| 1 | visible |
|
| 2 | hidden |
Ui.InputDevice
Section titled “Ui.InputDevice”What the overlay can take from the game.
An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | keyboard |
|
| 1 | mouse |
|
| 2 | gamepad |
Ui.SortSpec
Section titled “Ui.SortSpec”A struct, 0x8 bytes, aligned to 4.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | column |
i32 |
In the order its columns were set up |
| 0x4 | descending |
bool |
column: numberdescending: booleancolumn: integerdescending: booleanint ColumnSalamander.Bool Descendingint32_t columnbool descendingpub column: i32pub descending: boolcolumn: i32descending: boolint32_t columnbool descendingUi.ClipRow
Section titled “Ui.ClipRow”One row of a clipped list.
Wraith.Ui.ClipRowWraith.Ui.ClipRowWraith.Ui.ClipRowWraith::Ui_ClipRowwraith::UiClipRowWraith.Ui.ClipRowWraith_Ui_ClipRowUi.OpenSettings
Section titled “Ui.OpenSettings”The Mods page’s Settings button, on the render thread inside a frame.
Wraith.Ui.OpenSettingsWraith.Ui.OpenSettingsWraith.Ui.OpenSettingsWraith::Ui_OpenSettingswraith::UiOpenSettingsWraith.Ui.OpenSettingsWraith_Ui_OpenSettingswraith.io · Mods on the Hub · Get Wraith
Made with ♥ by Asgard
