Giter Site home page Giter Site logo

haxeui-nme's People

Contributors

aw4kening avatar elnabo avatar hoseyjoe avatar ianharrigan avatar ibilon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

haxeui-nme's Issues

Compiling to NME erroring

nm build nme.nmml windows

haxe/ui/core/Component.hx:3: characters 8-37 : Type not found : haxe.ui.backend.ComponentImpl
bin/windows/haxe/ApplicationMain.hx:26: lines 26-265 : Defined in this class

sample.zip

Fix for NME target

cant compile currently need to add return types. if you need a project:
HaxeUITest.zip

haxe/ui/backend/ScreenImpl.hx:67: lines 67-73 : Field addComponent overrides parent class with different or incomplete type

Fix is to add
return component;

...
public override function addComponent(component:Component) {
		component.scaleX = Toolkit.scaleX;
		component.scaleY = Toolkit.scaleY;
		_topLevelComponents.push(component);
		container.addChild(component);
		onContainerResize(null);
		return component;
	}

	public override function removeComponent(component:Component) {
		_topLevelComponents.remove(component);
		container.removeChild(component);
		return component;
	}
...

Error compiling "Invalid character: :"

Application works in openfl but nme is not compileDoing:
nme test application_nme.xml windows
returns
Error: Could not process argument C:\SDKs\Haxe\haxe\lib\haxeui-core\git
Invalid character: :

nmetest.zip

TextArea doesnt wrap

TextArea doesnt wrap. Works as expected in HTML target but not in NME or Openfl Windows (or html)

Expected Behavior

Text should wrap when it meets width

Current Behavior

Text continues>

Steps to Reproduce (for bugs)

  1. Compile to NME windows

Media

HTML
image

NME
image

Test app / minimal test case

Full.zip

Width of component blocks graphics drawing

I was trying to use the nme drawing (Sprite.graphics) and it appeared to work with some issue.

Expected Behavior

component.graphics.drawRect(0,0,200,200) should draw a 200x200 pixel square

Current Behavior

a little bit is shown

Possible Solution

I added width and height and nothing showed. However just adding height allowed the box to be shown.

Steps to Reproduce (for bugs)

Where mainConent is a ScrollView
var s:Component = new Component();
// s.width = 200;
// s.height = 200;
s.graphics.beginFill(0);
s.graphics.drawRect(0, 0, 200, 200);
s.graphics.endFill();
s.includeInLayout = true;
mainContent.addComponent(s);

  1. this should display a little
  2. Uncomment s.height and the component will display
  3. uncomment s.width and s.height and nothing appears
  • I needed to explicitly add s.width and s.height for the ScrollView to display scrollbars when appropriate (instead of 200x200 try 1000x1000)

Your Environment

windows

scale on mobile

Mobile compiles fine but scale is 25%(?) of expected. Mostly making this ticket for tracking purposes

Expected Behavior

prefection

Current Behavior

mostly good

Steps to Reproduce (for bugs)

  1. Compile with nme android
  2. everything appears to work but...small

screen.Dialog.show displaying textfield as if hidden

NM windows has the issue. Openfl windows & html5 has similar issue (flash works).

Run the application and the dialog box appears without form fields. Click where the form fields should be and they appear.

Expected Behavior

Textfield appears with out clicking in them

Media

image
image

Test app / minimal test case

ContinioiusTest.zip

images with http

Need to allow http requests for images. Mostly for mobile but openfl has html5 also

I was looking at iconpath of buttons but....

font size incorrect

Using included project. Font size of buttons is way to small. It doesn't appear to pick up the CSS when using NME.

-Note
I forced the size to 12 by changing TextDisplayBase at line 103 by adding the trace statements
if (style.fontSize != null) {
format.size = style.fontSize;trace("before="+format.size);format.size=12;trace("now="+format.size);
}
this traces
before=_hx_float(12)
now=12

not sure why the before traces _hx_float may be related to the issue?

Test app / minimal test case

HaxeuiTest.zip

UniversalFonttest.zip

Textfield not appearing on first pass

This appears to be an NME only issue (ok maybe hxWidgets)

  1. First pass textfield is missing
  2. Click where textfield should be and it appears
  3. BONUS points!! Highlighted text disappears. Can we fix it?

NME Missing textfield
image

NME after click
image

NME highlighting "ss"
image

OpenFL working
image

Project
ContinioiusTest.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.