Skip to content

ImGUI Window Definition (.wtfx)#

Notice

This entire page is a bunch of bullshit that doesn't exist and has no reason to ever exist. It exists for archival purposes and nothing more.

This content represents a planned feature and as such, the content is subject to change.

The name of this format started off as a typo within the Elaztek Discord one day. People said it sounded like a filetype of some sort, and so the acronym was saved and has been given this purpose.

WTFX is a format that can store IMGUI window definitions and dynamically load them into the engine. These can also be generated using the equivalent tag class within a cache file.

Sample wtfx definition file#

<Window Title="Window Title" Toggle="show_stats" SizeX="300" SizeY="400" Flags="ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings">
  <Text Content="This is a test string to display in a box!" />
  <Button Content="Test Button" SizeX="120" OnClick="CallFunction();"  />
</Window>

Interpreted code#

ImVec2 window_size (300, 400);
ImGui::Begin("Window Title", &show_stats, window_size, 0.0f, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings);

ImGui::Text("This is a test string to display in a box!");
if (ImGui::Button("Test Button", ImVec2(120, 0)))
{
    CallFunction();
}
ImGui::End();