Coder Social home page Coder Social logo

haxeui-raylib's People

Contributors

ianharrigan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

haxeui-raylib's Issues

Compile error

I did
haxe.exe --connect 6000 raylib.hxml

and got

C:\SDKs\Haxe\haxe\lib\haxeui-raylib/git/haxe/ui/backend/AssetsImpl.hx:20: characters 73-74 : cpp.Pointer<cpp.UInt8> should be cpp.RawConstPointer<Int>
C:\SDKs\Haxe\haxe\lib\haxeui-raylib/git/haxe/ui/backend/AssetsImpl.hx:20: characters 73-74 : ... For function argument 'fileData'
The terminal process "C:\SDKs\Haxe\haxe\haxe.exe '--connect', '6000', 'raylib.hxml'" terminated with exit code: 1.

Let me know if we need more info. I not sure what is causing this as it ran before

Crash on textarea custom component

The crash occurs on a custom component Text that extends the textarea. Text doesnt do anything but assign the below style. Removing that and I believe it wont crash.

style="height:auto;min-height:26px;max-height:85px;width:100%;"

Also the crash doesn't occur when I add width="100%" to the component like in mainView

<text text="rief" "></text>
to
<text text="rief" width="100%"></text>

Crash only seems to occur when inside scrollview? Change main-view.xml to the below and it doesnt crash

<vbox width="100%" height="100%" style="padding: 5px;">
    <text text="rief"></text>
</vbox>

ScrollBarCrash_original.zip

Abstract for Textfield not matching Abstract

I got this error
haxeui-raylib/git/haxe/ui/backend/raylib/TextField.hx:679: characters 36-50 : Abstract has no field KEY_LEFT_SHIFT

I fixed it by changing code in Textfield to match the abstract.

This is from the abstract
@:native("KEY_LEFT") public static var LEFT:Int;

So I changed from KEY_LEFT_SHIFT to LEFT_SHIFT

Or something like that. anyways I created a patch file which I have never done before.

patch.txt

Timer doesnt work??

It never says hi??

import haxe.Timer;
import haxe.ui.Toolkit;
import haxe.ui.HaxeUIApp;

class Main {
	public static function main() {
		Toolkit.theme = "dark";
		var app = new HaxeUIApp();
		app.ready(function() {
			app.addComponent(new MainView());
			app.start();
		});
		var timer = new Timer(Math.floor(1000));
		timer.run = () -> {
			trace("hi");
		}
	}
}

Enable file formats

It appears jpg arent accepted by raylib but they can be by passing in defines?

Someone said You can build Raylib with support for JPG by changing the properties in config.h

Resizing image doesnt work

Setting height/width of Image does work in RayLib. Same lines work in HL. The monkey, in this case, loads but is not resized. The image layers under other items so HaxeUI thinks of it as resized. The code in question is in F2.hx

var layer = addImage("library/monkey.png", 6);
layer.component.width = 40;
layer.component.height = 40;

project.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.