#LemonUI

1 messages · Page 1 of 1 (latest)

past kestrel
native roost
feral turtle
#

I'm waiting for the API documentation before using this.

paper pagoda
#

it could help

#

Also pretty cool!

native roost
feral turtle
#

Did I use it correctly?

north raptor
past kestrel
#

but yeah that should work

fallow jolt
#

do yall plan to like support other frameworks?

#

like with abstracting away the rendering and main core stuff to a backend class

#

just how haxeui or polymod does

north raptor
#

lemonui on haxe3ds 🤤

#

anyways this works right

past kestrel
#
<menubar>
    <menu>
        <menuitem />
    </menu>
</menubar>
north raptor
#

oh right

#

what do i do with a lemonui.xml.XMLResult tho alieniki~1

past kestrel
#

add(result.data)

north raptor
#

thanks

past kestrel
#

if you need help woth anything feel free to ping

north raptor
#

oki

#

well thats interesting

#

does it run fine on flixel 5.8.0 or do i need newer versions

#

this is how i set up the xml

code:

var tabs = [{name: 'Ghost', label: 'Ghost'}, {name: 'Settings', label: 'Settings'}];

var topBox = XMLBuilder.buildFromAsset('assets/xml/ui/charactereditor/uibox.xml', this);
        uibox = topBox.root.findElement('menu');
        uibox.cameras = [camHUD];
        uibox.setPosition(FlxG.width - 275, 25);
        final tabpanel:TabPanel = uibox.findElement('tabs');
        for (tab in tabs)
            tabpanel.addTab(tab.label);
        add(uibox);
#

flixel 5.8.0 @past kestrel

past kestrel
#

maybe like

#

why the hell you putting a tab window in the menubar

north raptor
#

i uh

#

im smoothbrained

#

is that why it broke

past kestrel
#

<!DOCTYPE charactereditor>
<tabpanel id='tabs' width="250" height="120">

</tabpanel>

#

look in

north raptor
#

oh now i feel even more stupid

#

i think i got it?

past kestrel
#

yuh

#

also you can do
<tab-panel> instead of <tabpanel> if you prefer it being formatted like that

#

that applies to all multi word elements

north raptor
north raptor
#

it works lel

past kestrel
#

you GOTS to change the font

north raptor
#

tab 1 done

#

slowly rewriting parts of the editors to get rid of flixel ui

#

how for example do i get the tickbox from a tab like to register callbacks

past kestrel
north raptor
#

oh

#

thanksies

past kestrel
#

wait it might be .findElement

#

I forget lol lemme check

#

yeah it is find

feral turtle
#

Can I make a PR?

past kestrel
#

any and all contributions are welcome

past kestrel
faint saffron
#

How done is this again?

feral turtle
#

I sent PR

#

and I go to bed

faint saffron
#

Why does the build.xml reference hxhardware?

#

@past kestrel

past kestrel
#

gang idk

#

file don't get used anyway

past kestrel
feral turtle
# past kestrel can you show example on how to use said pr
import lemonui.themes.ThemeManager;
import lemonui.themes.Theme;
import lemonui.themes.Theme.LightTheme;
import lemonui.themes.Theme.BlueTheme;

ThemeManager.setTheme(Theme.defaultTheme); // Default Theme
ThemeManager.setTheme(LightTheme.instance); // Light Theme
ThemeManager.setTheme(BlueTheme.instance); // BlueTheme
var theme = ThemeManager.createTheme(?backgroundColor:FlxColor, ?textColor:FlxColor, ?hoverColor:FlxColor, ?activeColor:FlxColor, ?borderColor:FlxColor, ?disabledColor:FlxColor, ?accentColor:FlxColor, ?fontRegular:String, ?fontBold:String, ?fontSize:Int, ?titleSize:Int, ?smallSize:Int);
ThemeManager.setTheme(theme);
past kestrel
#

thank you 💖

past kestrel
#

but uh

#

setTheme don't exist cuz @faint saffron removed it

#

oh you have to set the theme AFTER adding the elements

#

I really like the blue theme

#

it doesn't update every element tho

#

at least I think

past kestrel
#

I cannot figure out why the bar and button are so dark

#

the fuk

#

WHY ARE YOU DARKKKK

faint saffron
past kestrel
#

thats why I said it

past kestrel
#

thinkin I might revert the pr

#

or move it to a different branch

#

@feral turtle unless you wanna work to fix it

#

cuz like 💀

feral turtle