https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    01/14/2020, 1:46 PM
    can i help with the overhaul in someway? Is it on a branch? Maybe its the actual haxeui-flixel lib that is out of date
  • b

    brave-kangaroo-30399

    01/15/2020, 12:46 AM
    Nah the overhaul is purely on the flixel side, making a new FlxSprite base class basically
  • b

    brave-kangaroo-30399

    01/15/2020, 12:55 AM
    It's on a local branch, I've also been meaning to publish progress even if it can't compile
  • b

    brave-kangaroo-30399

    01/16/2020, 1:54 AM
    @User what code are you using for your basic app? My local branch is the same as github
  • b

    brave-kangaroo-30399

    01/16/2020, 1:54 AM
    I am using spritesheets in this app, but a 9 slice texture gets used everywhere and it looks fine
  • b

    brave-kangaroo-30399

    01/16/2020, 1:56 AM
    Copy code
    haxe
    var ui = new FlxGroup();
    
    var graphics = FlxGraphic.fromAssetKey("assets/images/atlas.png");
    Toolkit.init( { container : ui, spritesheet : FlxAtlasFrames.fromTexturePackerJson(graphics, "assets/data/atlas.json") } );
    
    var layout = ComponentMacros.buildComponent("assets/xml/menu.xml");
    
    ui.add(layout);
    add(ui);
  • b

    brave-kangaroo-30399

    01/16/2020, 1:59 AM
    Minimal:```haxe Toolkit.init( { } ); var layout = ComponentMacros.buildComponent("assets/xml/menu.xml"); add(layout); ```
  • b

    bright-gpu-74537

    01/16/2020, 6:40 AM
    im basically using the result of "haxeui create flixel" (or "haxelib run haxeui-core create flixel" if you dont have the alias working)
  • b

    brave-kangaroo-30399

    01/16/2020, 12:25 PM
    Oh I'm gonna assume that uses HaxeUI app. I'll check it out, I don't typically use it
  • u

    user

    01/17/2020, 6:54 PM
    @User How do you integrate monaco with the haxeui-code-editor ? Do I put the monaco vs root in the same folder ?
  • u

    user

    01/17/2020, 7:03 PM
    or does the require handle getting monaco ?
  • u

    user

    01/17/2020, 7:07 PM
    Also, from reading the source it isnt apparent how we add a new Script tab(i.e. how would I open a file from monaco based on the implementation)
  • u

    user

    01/17/2020, 7:08 PM
    Seeing the source of hxIDE would probably help but if you havent released it yet its probably because its not ready 😛
  • b

    bright-gpu-74537

    01/18/2020, 10:07 AM
    you mean where do you put the extracted monaco js lib files?
  • b

    bright-gpu-74537

    01/18/2020, 10:07 AM
    They should be on the same level as the host .html page
  • b

    bright-gpu-74537

    01/18/2020, 10:07 AM
    the code editor loads the modules dynamically and expected them in that location
  • b

    bright-gpu-74537

    01/18/2020, 10:08 AM
    if you still get stuck ping me and ill knock up a quick example, its very straight forward
  • b

    bright-gpu-74537

    01/18/2020, 10:08 AM
    https://github.com/haxeui/haxeui-code-editor/blob/master/haxe/ui/editors/code/monaco/MonacoLoader.hx#L41
  • u

    user

    01/19/2020, 4:12 PM
    @User So I am using kha and its kind of nuisance that we have to add the directory considering how khamake works. I will try to find a way in my current context
  • u

    user

    01/19/2020, 4:13 PM
    because with khamake I could add the sources has assets... maybe I will try that
  • u

    user

    01/19/2020, 4:20 PM
    ah... the config probably needs the path to all the folders of the editor I guess
  • b

    bright-gpu-74537

    01/19/2020, 4:39 PM
    hold on though, how are you thinking to use the monaco editor inside kha?
  • u

    user

    01/19/2020, 4:43 PM
    I have a game editor made with kha; the editor is realtime(i.e. can modify the game while its playing
  • b

    bright-gpu-74537

    01/19/2020, 4:43 PM
    ah, and that is using haxeui-html? Or has it floating over the top of the kha app?
  • u

    user

    01/19/2020, 4:44 PM
    haxeui-kha
  • u

    user

    01/19/2020, 4:44 PM
    I render the haxeui to a rendertarget
  • u

    user

    01/19/2020, 4:45 PM
    wait... so when we see the editor I render the game to a render target but render haxeui to the main draw buffer and draw the game on top of haxeui\
  • b

    bright-gpu-74537

    01/19/2020, 4:46 PM
    sounds like an interesting use, but i dont quite understand how monaco fits in, it only works with html, therefore haxeui-html5. haxeui-code-editor works with all haxeui backends, but it uses scintilla on hxcpp, monaco for html5 and defaults to a textarea for everything else
  • u

    user

    01/19/2020, 4:46 PM
    The editor will run in the browser
  • u

    user

    01/19/2020, 4:47 PM
    we have a virtual filesystem and everything
1...162163164...1687Latest