December 30, 2014
On Tuesday, 30 December 2014 at 10:28:53 UTC, Vadim Lopatin wrote:
> On Tuesday, 30 December 2014 at 09:37:09 UTC, ketmar via Digitalmars-d-announce wrote:
>> otherwise it's not crashing anymore, yet it still looks very funny:
>> http://ketmar.no-ip.org/2014-12-30-11-35-26_700x500.png
>> is it supposed to look like this?
>
> It looks like resources from dlangui/lib are not loaded. I see only ones from examples/example1/res
>
> Can you try to copy dlangui/res directory to directory where executable is located?

Sorry, from dlangui/res, not from dlangui/lib
December 30, 2014
On Tue, 30 Dec 2014 10:28:52 +0000
Vadim Lopatin via Digitalmars-d-announce
<digitalmars-d-announce@puremagic.com> wrote:

> On Tuesday, 30 December 2014 at 09:37:09 UTC, ketmar via Digitalmars-d-announce wrote:
> > otherwise it's not crashing anymore, yet it still looks very
> > funny:
> > http://ketmar.no-ip.org/2014-12-30-11-35-26_700x500.png
> > is it supposed to look like this?
> 
> It looks like resources from dlangui/lib are not loaded. I see only ones from examples/example1/res
> 
> Can you try to copy dlangui/res directory to directory where executable is located?
sure, no prob.

yes, after i coped dlangui res/ dir to the directory where example1 binary resides, everything is working as it should.

(actually, i copied it to "dlangui/examples/example1/bin", where dub creates symlink to the real binary)

p.s. there is small glitch with checked checkboxes though: image is not transparent.

p.p.s. can i turn that $#&#%^%@#@ font antialiasing off? ;-)


December 30, 2014
On Monday, 29 December 2014 at 09:50:23 UTC, ketmar via Digitalmars-d-announce wrote:
> it would be not that hard to write a native D png loader

Here is some already:
https://github.com/adamdruppe/arsd/blob/master/png.d

I've used it successfully. Just one thing: it uses GC heap very actively (causing leaks on 32 bits), so I had to work around that.

December 30, 2014
On Tue, 30 Dec 2014 10:39:39 +0000
thedeemon via Digitalmars-d-announce
<digitalmars-d-announce@puremagic.com> wrote:

> On Monday, 29 December 2014 at 09:50:23 UTC, ketmar via Digitalmars-d-announce wrote:
> > it would be not that hard to write a native D png loader
> 
> Here is some already: https://github.com/adamdruppe/arsd/blob/master/png.d
> 
> I've used it successfully. Just one thing: it uses GC heap very actively (causing leaks on 32 bits), so I had to work around that.

and i bet that there is 'stb_image.d' somewhere on github, which does jpg and bmp.


December 30, 2014
On Tue, 30 Dec 2014 10:39:39 +0000
thedeemon via Digitalmars-d-announce
<digitalmars-d-announce@puremagic.com> wrote:

> On Monday, 29 December 2014 at 09:50:23 UTC, ketmar via Digitalmars-d-announce wrote:
> > it would be not that hard to write a native D png loader
> 
> Here is some already: https://github.com/adamdruppe/arsd/blob/master/png.d
> 
> I've used it successfully. Just one thing: it uses GC heap very actively (causing leaks on 32 bits), so I had to work around that.

p.s. i'm using some of Adam's modules, but keep forgetting to look in arsd to check if it has something handy that i never used. ;-)


December 30, 2014
On Tuesday, 30 December 2014 at 10:37:14 UTC, ketmar via Digitalmars-d-announce wrote:
> On Tue, 30 Dec 2014 10:28:52 +0000
>> On Tuesday, 30 December 2014 at 09:37:09 UTC, ketmar via Can you try to copy dlangui/res directory to directory where executable is located?
> sure, no prob.
>
> yes, after i coped dlangui res/ dir to the directory where example1
> binary resides, everything is working as it should.

BTW, new release of DUB will include my pull request to support directories as items in copyFiles - resources will be copied automatically.

> (actually, i copied it to "dlangui/examples/example1/bin", where dub
> creates symlink to the real binary)

> p.s. there is small glitch with checked checkboxes though: image is not transparent.

Probably, it's issue of dlib png imported, but i'm not 100% sure.

> p.p.s. can i turn that $#&#%^%@#@ font antialiasing off? ;-)
I can implement such setting for you :)
Does it really look ugly with font antialiasing?

P.S: I've turned on JPEG support - from ~master of dlib.
December 30, 2014
On Friday, 26 December 2014 at 12:33:04 UTC, Vadim Lopatin wrote:
> DlangUI project is alive and under active development.
>
> https://github.com/buggins/dlangui

Update: FreeImage dependency is removed. dlib is now used to read images.

I'm trying to improve project documentation.
DDOC generates ugly unusable output.

DDOX is much better. But I cannot figure out how to embed custom navigation panel (e.g. like on vibed.org) on documentation pages (as I have for DDOC generated files).

dub --build=ddox produces pages with only navigation by generated documentation.
Ho do I add custom pages, with links to them from documentation pages?
It looks like ddox ignores .dd files from project.

Could someone help?

Best regards,
     Vadim
December 30, 2014
On Tue, 30 Dec 2014 12:59:18 +0000
Vadim Lopatin via Digitalmars-d-announce
<digitalmars-d-announce@puremagic.com> wrote:

> > p.p.s. can i turn that $#&#%^%@#@ font antialiasing off? ;-)
> I can implement such setting for you :)
> Does it really look ugly with font antialiasing?
it's looking $#^&#$%^%@&# @$#%^%&&%$& $#%%#&$@#^ UGLY. any font aliasing looks like this. my eyes bleeding when i looking at antialiased fonts. i either can turn that stupid thing off, or the program is completely unusable for me.

i read that you planning fontconfig support, so please just don't forget about aliasing and hinting options. there are some people that prefer to switch antialiasing off and turn full hinting on, as this is the best settings for free microsoft "core fonts for the web" set (or at least we believe that this is the best).


December 30, 2014
On Friday, 26 December 2014 at 12:33:04 UTC, Vadim Lopatin wrote:
> Hello!
>
> DlangUI project is alive and under active development.
>
> https://github.com/buggins/dlangui
>
> Recent changes:
> - new controls: ScrollWidget, TreeView, ComboBox, ...
> - new dialogs: FileOpenDialog, MessageBox
> - a lot of bugfixes
> - performance improvements in software renderer
> - killer app: new example - Tetris game :)
>
> Try Demos:
>     # download sources
>     git clone https://github.com/buggins/dlangui.git
>     cd dlangui
>     # example 1 - demo for most of widgets
>     dub run dlangui:example1 --build=release
>     # tetris - demo for game development
>     dub run dlangui:tetris --build=release
>
> DlangUI is cross-platform GUI library written in D.
> Main features:
> - cross platform: uses SDL for linux/macos, Win32 API or SDL for Windows
> - hardware acceleration: uses OpenGL for drawing when built with version USE_OPENGL
> - easy to extend: since it's native D library, you can add your own widgets and extend functionality
> - Unicode and internationalization support
> - easy to customize UI - look and feel can be changed using themes and styles
> - API is a bit similar to Android - two phase layout, styles
>
> Screenshots (a bit outdated): http://buggins.github.io/dlangui/screenshots.html
>
> See project page for details.
>
> I would like to get any feedback.
> Will be glad to see advises, bug reports, feature requests.
>
> Best regards,
>      Vadim

Is it possible to use your GUI for opengl game? I need to inject a gui in an existing main loop.
December 30, 2014
On Tue, 30 Dec 2014 18:18:38 +0000
MrSmith via Digitalmars-d-announce
<digitalmars-d-announce@puremagic.com> wrote:

> Is it possible to use your GUI for opengl game? I need to inject a gui in an existing main loop.
as it seems to have OpenGL as one of the backends, i think that it shouldn't be hard even if it is not supported directly right now. please write about your progress here (if there will be any).