haxeui / haxeui-raylib Goto Github PK
View Code? Open in Web Editor NEWRayLib backend for HaxeUI
License: MIT License
RayLib backend for HaxeUI
License: MIT License
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
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>
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.
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");
}
}
}
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
In the image you can see the scrollbar appear then disappear on resize
ScrollBarCrash.zip
Clicking the home button hard crashes raylib. no errors
raylibSidebar.zip
I removed unneeded things so I have no proof...but the same code worked in html
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;
from code layer.component.alpha = .4;
Let me know if you need a project. I assume this is known issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.