(WIP) Dear ImGui Clone
An implementation of the Dear ImGui API
favorite2favorites
thumb_up2upvotes
hard_drive
0 MB
folder
47 files
build
Engine v17
history
Last update 558d ago
About This Package
Summary
This library is a work-in-progress partial implementation of the features provided by Dear ImGui.
The aim of this project is to provide a faithful recreation of the functionality of Dear ImGui. Thus, any inconsistencies with the behavior of the original library should be regarded as a bug/oversight on my part.
Feel free to submit a bug report or feature request as an issue on the GitHub page for this project.
Source Code: https://github.com/chrisspieler/sbox-imgui
Known Issues
- Windows may not be collapsed, and users may not close or resize windows themselves
- Countless ImGui functions are not yet implemented
- Switching between game and UI input is not yet implemented
- Various slider features such as text input are not yet implemented
- Mouse inputs on multicomponent sliders may fall through to windows behind
Supported Widgets
- Text
- Button
- Checkbox
- SliderFloat, SliderFloat2, SliderFloat3, SliderFloat4
- DragInt
- Image
Example Usage
private void DrawWindow1()
{
ImGui.SetNextWindowPos( new Vector2( 300, 200 ) * ImGuiStyle.UIScale );
ImGui.Begin( "Window 1" );
if ( ImGui.Button( "Click me!" ) )
{
_clickCounter++;
}
ImGui.Text( "Clicked {0} times.", _clickCounter );
if ( ImGui.Button( "Focus Floating Window" ) )
{
_shouldFocusFloatingWindow = true;
}
ImGui.SliderFloat( "My Float", ref _myFloatValue, -128f, 256f );
ImGui.Button( "1" ); ImGui.SameLine();
ImGui.Button( "2" ); ImGui.SameLine();
ImGui.Button( "3" ); ImGui.SameLine();
ImGui.Button( "4" );
ImGui.Image( ExampleTexture, new Vector2( 128 ) * ImGuiStyle.UIScale, Color.White, ImGui.GetColorU32( ImGuiCol.Border ) );
ImGui.End();
}
No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
Package ID:
duccsoft.imgui
Created:
2024-12-17 15:48 UTC
Updated:
2024-12-29 17:43 UTC
Type:
library
Public:
Yes
Version:
82533
files:
47
Size:
0.2 MB
Engine Version:
17
Asset Version ID:
82533
Version Created:
2024-12-29 17:43 UTC
Hash:
-5121721465654444769
Manifest: Open manifest
Cs Proj Name:
Compiler:
Duccsoft.ImGui, SANDBOX;ADDON;DEBUG, 1701;1702;1591;, , , , 1, Debug, Array, Array, Array
Resources:
Code Package References:
82533
Dec 29, 2024
Mouse passthrough, WantCaptureMouse support
82524
Dec 29, 2024
A few bug fixes
81358
Dec 17, 2024
Changes on 2024-12-17