Omar
@ocornut.bsky.social
3.3K followers 65 following 350 posts
programmer of things and stuff. dear imgui / the dragon’s trap / dreams / tearaway / pixeljunk shooter / soul bubbles / meka Paris, France https://www.miracleworld.net
Posts Media Videos Starter Packs
ocornut.bsky.social
And then you can call DockBuilderDockWindow() in the same block so you don't necessarily need to carry the ID around.

Embarrassingly those API are not public because they suck and I never spent the time to do better but eventually I will.
ocornut.bsky.social
Replace first_time by ImGui::DockBuilderGetNode(id) == NULL before the DockSpace submission.
ocornut.bsky.social
People of the future, rejoice! There is now dear imgui renderer for this fangled new graphics API... *cough*... DirectX7!
github.com/AndenDev/D3D...
GitHub - AndenDev/D3D7Imgui
Contribute to AndenDev/D3D7Imgui development by creating an account on GitHub.
github.com
ocornut.bsky.social
and you can use dl->PathArcTo(center, radius, angle_min, angle-max); dl->PathStroke(col, 0, thickness);
ocornut.bsky.social
Note that my version uses `io.MouseDownDuration[]` array which already update, and you can make a simpler version with zero state.
Reposted by Omar
wildsheepstudio.bsky.social
Did we just upload our demo to Steam? Are we excited?

Oh yes. 🤞 🤞🤞

We are so looking forward to putting the game in the hands of players! Those are the BEST moments. Seeing people play what you made.

#gamedev #indiegame
Screengrab from steamworks that says:

"Your demo build is in the review queue. This review typically takes 3-5 days, but please allow up to 7 business days in case feedback needs to be addressed. No further action is required until the review is complete. You may still upload updated builds at any time.

You can view and respond to feedback on the Steamworks Support site"
ocornut.bsky.social
Yearly reminder that: in web browsers and many apps, you can select text inside a link by holding the Alt key.
ocornut.bsky.social
I posted the code github.com/ocornut/imgu... if it happily works for you I could consider promoting it to some opt-in helper to call.? One advantage would be to be able to standardize a way for certain widgets to disable this by setting some variable (e.g. for widgets requiring long touch)
ocornut.bsky.social
A bunch of the input owner stuff are not fully exposed in imgui.h for.. reasons.. but they stable and working.

It is the backbone for e.g. ImGui::Shortcut(ImGuiMod_Ctrl | ImGuiKey_S) working, e.g. shortcut is routed to front most focused window so if two parented windows call this only 1 gets it.
ocornut.bsky.social
Adding this before io.AddMouseButtonEvent(0, false); will also eat the left click:

#include "imgui_internal.h"

ImGui::SetKeyOwner(ImGuiKey_MouseLeft, ImGuiKeyOwner_NoOwner, ImGuiInputFlags_LockUntilRelease);
ocornut.bsky.social
Hmm brb need to cancel the left button release too..
ocornut.bsky.social
This seems to work:

if (ImGui::IsMouseDown(0) && !ImGui::IsMouseDragging(0, -1.0f) && ImGui::GetIO().MouseDownDuration[0] > 1.0f)
{
io.AddMouseButtonEvent(0, false);
io.AddMouseButtonEvent(1, true);
io.AddMouseButtonEvent(1, false);
}
ocornut.bsky.social
Just call io.AddMouseButtonEvent() twice. I wouldn’t recommend writing into those other fields directly.
ocornut.bsky.social
which version are you on? Easier to fire mouse events should be 2 lines.
ocornut.bsky.social
どのバックエンドを使用していますか? どの OS ですか? 動作するはずです。
ocornut.bsky.social
適切なフォントをロードすれば日本語が使えます。
Reposted by Omar
mmalex.bsky.social
i started to make a live coding environment for myself! its currently basically shadertoy but on my mac with compiled c for the audio. its not a particularly unique wheel, but it's *my* wheel, so I am mostly experimenting with the details to see what makes me feel productive & creative.
ocornut.bsky.social
French post launched a cringe service where you can fill a virtual postcard on the web and it gets printed and mails to your recipient. Clearly they are struggling to find novel ways to attract young audience.
ocornut.bsky.social
This is not what I wish, but I imagine the natural outcome in 10-20 years for rural area will be centralized storage/post boxes eg next to nearby markets Hopefully not run by the private sector, and hopefully designed to facilitate people (who can) picking and bringing each others mails.
ocornut.bsky.social
As snail mail gets rarer and most parcels are delivered by private companies, every country is facing same problem :( and it may only grow in the future. Japan Post Office are selling random stuff now.. Trying to keep cost reasonable is sensible if only to not facilitate some gov canning the thing.
Reposted by Omar
wildsheepstudio.bsky.social
🌸We love using traditional methods to make content for our games. So we used watercolor painting for our in-game icons. We hope discovering these is as much fun as we had making them🎨🖌️
#Indiegames #watercolorpainting #wishlistwednesday
ocornut.bsky.social
I felt in the air a slight increase of people turning into their own engine or generally they own tools, both possibly pushed by the slow shift of whichever engine Is trendy. Anyhow, it was nice to hear recognition in place where I didn’t use to.