ambitious-knife-25690
05/06/2023, 11:33 AMhttps://cdn.discordapp.com/attachments/853414608747364352/1104370379700580372/image.png▾
ambitious-knife-25690
05/06/2023, 11:33 AMambitious-knife-25690
05/06/2023, 11:34 AMambitious-knife-25690
05/06/2023, 11:41 AMbright-gpu-74537
05/06/2023, 12:06 PMbright-gpu-74537
05/06/2023, 12:06 PMvictorious-architect-82648
05/06/2023, 11:14 PMhaxe
class AnimationEditor extends Scene
{
    var allAssets : Array<String> = [];
    var seletedAsset : Int = -1;
    [...]
    override function create()
    {
        allAssets = Assets.all.filter((a) -> a.indexOf(".png") >= 0);
    }
    override function update(delta : Float)
    {
        Im.begin("Animation Editor", width, height);
        Im.position(0, 0);
        {
            Im.beginTabs(Im.string());
            {
                if (Im.tab("Animation Editor"))
                {
                }
                if (Im.tab("Sprite Sheet Settings"))
                {
                    Im.text('Asset selection');
                    Im.list(300, Im.array(allAssets), Im.int(seletedAsset));
                    Im.beginRow();
                    {
                        Im.editInt("Frame Size X", Im.int(frameSizeX));
                        Im.editInt("Frame Size Y", Im.int(frameSizeY));
                    }
                    Im.endRow();
                }
            }
            Im.endTabs();
        }
        Im.end();
    }
    [...]
}billowy-waiter-28954
05/07/2023, 7:38 AMallAssets at each frame? Can't say for sure with the code I see there anywayvictorious-architect-82648
05/07/2023, 3:26 PMallAssets during create. On a Mac if that helps, but this is happening in Electron so it shouldn't matter?billowy-waiter-28954
05/07/2023, 4:44 PMelements pluginvictorious-architect-82648
05/07/2023, 6:46 PMImGui.showDemoWindow(); in the main scene update but only on the web target (it works fine on the native target). You can repro that behavior by commenting out the - USE_ELEMENTS define in ceramic.yaml
https://cdn.discordapp.com/attachments/853414608747364352/1104841778223390850/ElementsIssue.zipbillowy-waiter-28954
05/07/2023, 9:22 PMimgui-hx) is not exhaustively tested, especially on the web target. As Ceramic comes with its own solution (with elements), I have no plan to improve/debug Dear ImGUI integration at the moment (but pull requests are welcome), so you are a bit on your own if you use that.
Will take a look at the elements thing howeverbillowy-waiter-28954
05/07/2023, 9:57 PMheight to your window. Adding a scrollbar that conflicts with the list view. I'd like to improve how explicit window height is handled in elements, but this won't change short term so I'd advise not to use an explicit height as a workaround, that should make the list work for nowgifted-whale-78169
05/08/2023, 12:17 AMgifted-whale-78169
05/08/2023, 12:18 AMgifted-whale-78169
05/08/2023, 12:21 AMvictorious-architect-82648
05/08/2023, 12:45 AMambitious-knife-25690
05/08/2023, 12:59 AMgifted-whale-78169
05/08/2023, 1:05 AMgifted-whale-78169
05/08/2023, 1:05 AMgifted-whale-78169
05/08/2023, 1:05 AMgifted-whale-78169
05/08/2023, 1:06 AMambitious-knife-25690
05/08/2023, 1:18 AMambitious-knife-25690
05/08/2023, 1:20 AMhttps://cdn.discordapp.com/attachments/853414608747364352/1104940886388916234/gif.gif▾
ambitious-knife-25690
05/08/2023, 1:21 AMambitious-knife-25690
05/08/2023, 1:22 AMRESIZEgifted-whale-78169
05/08/2023, 1:25 AMgifted-whale-78169
05/08/2023, 1:25 AMambitious-knife-25690
05/08/2023, 1:29 AMgifted-whale-78169
05/08/2023, 1:31 AM