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

    clever-oil-61353

    06/01/2020, 6:19 PM
    i went ahead and installed it too..... Flixel uses openfl asset manager.... so the calls don't seem that different. We'll get something figured out.
  • m

    most-caravan-45834

    06/01/2020, 6:21 PM
    Flixel is built on top of openfl all the way
  • c

    clever-oil-61353

    06/01/2020, 6:21 PM
    would you be ok with sharing your code... i'll tinker with it directly that way if you want
  • c

    clever-oil-61353

    06/01/2020, 6:21 PM
    ah ok, i was doing some quick reading on flixel, its a neat setup
  • b

    bright-gpu-74537

    06/01/2020, 6:40 PM
    @User - any chance you could knock up a small sample? Just a haxeui over some rubbish flixel "game"... im certainly no flixel expert but might be easier to understand whats going on
  • m

    most-caravan-45834

    06/01/2020, 6:49 PM
    I'll try to come up with an example project tonight. Since I'm always running into one problem or another, might as well maintain a side sample project to replicate stuff
  • c

    clever-oil-61353

    06/01/2020, 6:53 PM
    lime and openfl want to give me issues with" lime build openfl Error: Could not find haxelib "haxeui-core", does it need to be installed?
  • c

    clever-oil-61353

    06/01/2020, 6:53 PM
    compiles the project i have been working on fine..... just not anything newly created it seems
  • m

    most-caravan-45834

    06/02/2020, 3:05 AM
    So I've tried using flixel backend, ran into some issues while trying to present the property grid in Hashlink target. In cpp target, I can't edit the textfield contained in the property grid. I'm creating now a sample project to try and replicate all those issues.
  • b

    brave-kangaroo-30399

    06/02/2020, 3:55 AM
    Input text doesn’t work on the flixel backend since there’s no easy native way to do it
  • b

    brave-kangaroo-30399

    06/02/2020, 3:55 AM
    The OpenFL-side fix was rejected, so idk
  • m

    most-caravan-45834

    06/02/2020, 4:49 AM
    One more reason not to use flixel backend hehe
  • m

    most-caravan-45834

    06/02/2020, 4:49 AM
    Error log
  • m

    most-caravan-45834

    06/02/2020, 4:50 AM
    Project
  • m

    most-caravan-45834

    06/02/2020, 4:51 AM
    Target Hashlink
  • m

    most-caravan-45834

    06/02/2020, 4:51 AM
    To reproduce, just click the File > Map Properties
  • m

    most-caravan-45834

    06/02/2020, 4:51 AM
    Haxe Compiler 4.0.5
  • m

    most-caravan-45834

    06/02/2020, 4:52 AM
    haxelib list
    Copy code
    flixel: 4.6.3 [4.7.0]
    haxelib: [3.3.0]
    haxeui-core: 1.0.25 [git]
    haxeui-openfl: 1.0.7 [git]
    hxcpp: 4.0.64 [4.1.1]
    lime: 7.6.3 [7.7.0]
    openfl: 8.9.5 [8.9.6]
  • m

    most-caravan-45834

    06/02/2020, 4:52 AM
    @User
  • m

    most-caravan-45834

    06/02/2020, 5:12 AM
    In this example you can see that haxeui displays no cursor.
  • b

    bright-gpu-74537

    06/02/2020, 7:07 AM
    thanks @User - ill look later today
  • c

    clever-oil-61353

    06/02/2020, 7:46 AM
    @User Notice where the cursor is?
  • c

    clever-oil-61353

    06/02/2020, 7:48 AM
    Need to update your mouse to regular cursor so it will show when needed...... FlxG.mouse.useSystemCursor = true;
  • c

    clever-oil-61353

    06/02/2020, 7:49 AM
    lol, my screen shot didnt capture the mouse.
  • c

    clever-oil-61353

    06/02/2020, 7:50 AM
    give me just a sec..... the mouse is not actually under the menu.... its on top of the menu for you, you just arent seeing it rendered..... try that MapEditor.hx file.
  • c

    clever-oil-61353

    06/02/2020, 7:56 AM
    That should have you fixed up.
  • c

    clever-oil-61353

    06/02/2020, 7:58 AM
    Thats what i was thinking it was earlier being an overlay and not a graphic part of the game.
  • c

    clever-oil-61353

    06/02/2020, 8:03 AM
    thats compiled to hl with no crashes when clicking menu.
  • b

    bright-gpu-74537

    06/02/2020, 8:07 AM
    when did you call
    FlxG.mouse.useSystemCursor = true;
    though?
  • c

    clever-oil-61353

    06/02/2020, 8:08 AM
    package ui; import haxe.ui.containers.VBox; import haxe.ui.containers.menus.Menu.MenuEvent; import flixel.util.FlxColor; using flixel.util.FlxSpriteUtil; import flixel.FlxG; @:build(haxe.ui.macros.ComponentMacros.build("assets/haxeui/xml/map_editor.xml")) class MapEditor extends VBox { public var delegate(null, default):MapEditorUIDelegate; public function new() { super(); percentWidth = 100; percentHeight = 100; FlxG.mouse.useSystemCursor = true; menu_bar.onMenuSelected = function(e:MenuEvent) { switch (e.menuItem.id) {
1...242243244...1687Latest