#DDUI General
1 messages · Page 2 of 1
Check the pins.
67
I haven't seen anyone done it like an inventory here but I think it's doable
@hollow crane
What?
You're looking at the wrong pin.
I see
oh it's on the very bottom
second to the bottom
thanks a lot
also we got bad apple immediately dang...
DDUI using textures/ui?
what is this
DDUI files for the in-game containers.
Is it ready to be used?
Idk.
which character are you using for caolid colors?
is it modifiable with a resource pack already?
█
No
are you using a custom font to make it fill the edges though?
if you use json ui, you can display a second map on top with reduced alpha to mix colors together
but you would lose the real time display and the ability to move the map
In json ui you already need a second layer to fill the gap, that will make it 4
oh, so those characters only fill the gaps in oreUI?
not really possible then, because you can't have the translucent characters overlap or it will miss up the colors
Yeah
CubeCraft has DDUI in Egg Wars, how is that possible?
not only does it have real-time updates, it also has custom style and a synchronized copy of the player inventory
that isn't DDUI
That's JSON UI
I think you forgot that people love to theme their UIs into Ore-UI style.
And someone hates that
I
that's me lmao
genuinely almost every showcases ive seen are literally just Ore-UI themed with different layout and im not even exaggerating.
i don't even know if i can call it Ore-UI themed since its literally feels like a aseprite theme.
Valid
I took am getting sick of it
welp, here you go
another one
believe it or not its actually a chest
they just do their weird packet stuff to detect certain slot aka button clicks
ok, but how does it run give players items a melee second they click a button without closing?
i have made chest json ui myself where i transformed clicking an item into a button click, and it wasn't like theirs.
it didn't feel the same
regardless, it can't be ddui anyway since it was only added 2 previews ago
read my message above
*millisecond
why do you assume that i haven't read it?
Because you asked how it gave items when pressing a button without closing
And if you wanna test that it’s really a form just delete the pack out of your pack cache folder and re join without restarting the game
no
dead chat
nothing more to do with DDUI rn ig
Cap
yeah, right now
Real
For now, that is
Better then the default actionfromdata menus I’m using now
No duh. It's basically in alpha phase atm
Some Mojangsters have talked about some of the stuff that will come soon enough, in the preview chat it was first shown in preview
Plus, currently you can do more with just 1 DDUI modal than any ActionForm available atm as it combines all 3
Undocumented mess that is being deprecated...
😭😭
Also the most unpredictable and hard to debug ui ever created
Is this forgotten now
@vast hull
Haha no
There’s just not much to talk abt since we really went over it
yes
dead but not forgotten
waiting it to released into stable
and have more api
and can be stylized/customize
etc etc
you
nah
yes
did we already do everything possible with the ddui?
I think so at the moment.
Fun interface, everyone must have already played around with it.
I’m just getting started now :3
Also, does anyone know if unsubscribe from an Observable works as it should?
I’ve been trying it, and it seems like it won’t stop emitting events when using subscribe
can confirm that it doesn't and never has worked
Hey, is this still an issue? we are not able to reproduce this from our side, we have placed some fixes around this
I'm not sure, I'll do a test here.
Tx
It seems to be working now.
Awesome, thank you so much!!
That delay is rough 😩🙏
Oh gosh, I hope we get a textAlignment property added
Justify superiority
i wonder how that would work considering its ddui as of now
I mean the workaround is fairly easy just need to measure the text
What we really need is layout but I’m starting to doubt anything will be added
Gonna put my money in layout files after gta 6, and css json bs after pc port releases
Is there somewhere I can bet on this!?
I didnt know they had updated the module
this is amazing
what characters do they use for displaying images?
§a█
thanks
can i ask if DDUI can like.. generate a new button, label, dropdown and such.. while the form is open?..
no
the only way to do this is to pre include the elements and only set visibility to true when needed
keep in mind you can change the button title dynamicly
guys
what
is it just me or observable unsubscribe doesnt works as it should?
system.run(() => {
const v = Observable.create<number>(0)
system.runInterval(() => {
v.setData(v.getData() + 1)
}, 20)
const subs = v.subscribe((v) => {
console.log("V changed to", v)
})
system.runTimeout(() => {
v.unsubscribe(subs)
console.log("UNSUBSCRIBED")
}, 5 * 20)
})
that
.
oh alr thank you
alrr thanks!
Is it stable yet ?
Huh? It is beta
That how things work, we get APIs in preview, they get to stable beta, and stay there until they are fully implemented with as little bugs as possible
DDUI is far from done
uh no, preview shouldve been the beta stage of this, now its pushed to stable
when its nowhere near stable ready
doesnt really matter if its beta apis its still not close to being ready for stable
That how things worked for ages
There is only handful of stuff that stayed in preview, like the editor
Most stuff that is not ready or stable do require a experimental toggle (that do warn you about this)
Really, but maybe this year we can achieve something basic like stability.
Well, hopefully
there is a bug
I feel like those observable for visible text etc.. are too much confusing and unreadable im making a class to handle them
I ve made it if someone wants to try it #1486800687424606440
is subscribing to many observables causes lags?
It shouldnt, at least of you re not subscribing the same obs every time
it shouldnt and it does not can be 2 very different things xd
if you arent doing an infinite list of buttons etc its almost impossible
sorry for ping i forgot to unping the reply
Thankss!
is unsubscribing from observables not working for anyone else?
yes, that is a bug
also why \n not work for this?
msg for saving
can DDUI be used for custom HUD elements?
no
not yet
Currently, DDUi can only be used by server-ui forms.
It'll all come later 🤞
Keep in mind, later could be a few more weeks to a few more months, or even a year 😅
Need Block UI ASAP
Gotchu, thanks guys
I need Block UI also.
🙏
We need block-entity first
Block UI is more important
Yessss
Or even just inventory slots with DDUI. And we can use that for block UI with what Smokey said
🙏
Precisely, We need not to storing items as a first pass. All that needs is slots to put items and then when closed the items go into your inventory. Also allows for per player.
We could use dynamic properties, with it right (if it ever happens)?
Or even save it through block location is possible
For saving block "inventory"? Sure.
Yeah
I just need the most basic of basics which is just non persisting slots. Hook the slot into an observable, peak.
Yes, I too need something akin to a crafting table.
I'm really curious to know how the custom block-entity will work. Do they intend to release fields that vanilla users already use? Because normally everything is saved in the NBT.
I guess for now though we could use https://discord.com/channels/523663022053392405/1350130244111040593
But well, not blocks ofc
Requires an entity. #bleak
Yeah 😔
Does anyone know what the DDUI roadmap is like atm?
Is there anything public about what's next for it?
All the info is pinned.
I hope that adding images to the form will come soon.
its actually not that unstable. i've tried many stuff with it so far and it isnt too buggy
yeah its not too bad its just very slow opening and closing
thats the only thing thats wrong
just to confirm, we will get container UI as in chest ui displayed without needing to do hacky workarounds? similar to java.
Eventually, yes
That could be weeks, months or even a whole year btw
Hopefully now that DDUI is out of preview, we could hopefully see something from DDUI either today or next week 🙏
yeah, its great that they're thinking of adding these.
hopefully they wont have the slow close -> open animation for when sending an inventory UI while 1 is already open 😓
and not limited to the current container UIs, a 1-2-4-5 row chest ui would also be great. again, similar to java
It is now possible to skip lines.
Yeah, they added the \n for it today!
Yea
is it necessary to unsubscribe Observable subscribed functions regardless of the instance being unused?
How do you make it so only button in a given group of buttons can be disabled at a time?
use boolean Observable and use it in {disabled}
Yeah I know that but how would I make it so that one button in a given group of say 5 buttons can be disabled at a given time
And if you disable one button the previously disabled button will be enabled
Is there like some simple way that doesnt involve making like 5 different observeables for each button and creation a specific function
U can compress em in a class instance if u want.
The api doesnt have any other way to categorize them in one.
Why I am I getting error with my code
Like I don't even know what specifically I'm getting problems with
closeButton().show().then()
Nope 😭
and this
But I'm using js
So basically it has to be a number
Observable<number>
u can try number if u wana see the error
That's
Annoying
Also the slider was giving issue about something in there not being a function
;-;
2(radius...) ;-;
Thanks
perhaps use this package https://discord.com/channels/523663022053392405/1434799340278382684
I'll try that
How to switch form with this? for example you have a Main Form, then there is a Option button, after press that you will open Option Form
I hope DDGUI will let us add custom components in the future since well, it's OreUI
I need this for geyser computercraft bedrock integration addon 🤑
Custom Components as in?
I need this UI to be possible for a CCBE clientside port for geyser
curse...
not really
you have the terminal, your inventory, and the turtle's inventory on the bottom right
we know
I honestly only do bedrock addon things for geyser
If I've written a mod on Java that is mostly serverside logic with a bit of client logic I usually write a geyser extension that contains a bedrock addon
then again...
Is it ok to not unsubscribe Observable instances regardless of them being unused (e.g. the form has been closed, the observable is unreachable)
It does leave the object have subscribe functions in them, is it safe to leave them without unsubscribing other than it being part of the logic?
How do I close the customform within a function? I tried CustomForm.close()
How do I close a customform in general
r u sure it's form.close() and not like form.show().close()?
SOLUTION:
const form = CustomForm.create(…);
…
form.close();
Am I able to update the amount of buttons dynamically?
You can't add buttons after creating the form but you can make hidden buttons visible
combined with changing the label of the button it is possible to add a button semi "dynamically"
And you are positive?@nova sparrow
Will a button visibility update if the visible option is an observable with a string as it’s data?
Can it evaluate to a Boolean?
it throws error iirc
Why is it that when a custom form closes, an action form doesn’t open when requested?
I think it's because custom forms take a second to close
You’re right about that.
Waiting 6 ticks did the trick for me.
Is DDUI a form of ore UI?
yes
Is it worth learning now so I can apply it to resource pack stuff when that becomes an option?
from what we (i) know, this will be script side only
we can't customize it yet
"yet"
Json UI is getting replaced so should I start learning the new system early or wait till it's resource applicable?
you can't do anything in the resource pack right now anyways, and the new system we have is only for scripting forms right now
Ah
You need to wait, as we are still in a very early stage.
Yeah I figured, is the system at least better then Json UI so far?
Im hoping to make something like this eventually
When support exists for it
People say yes because it's web-based, but it depends on the individual; for some it is, for others it isn't. In the case of a form created with server-ui, it is indeed better since you can update the screen in real time without having to reopen the form.
I just hope it won't stay limited to server forms
If it's closer to web stuff then that's a good skill to learn anyways
Well, in that case, DDUI needs to evolve to other screens. A Mojang employee said that it will indeed evolve to them, but at the moment we don't have much of a basis to follow to determine if it will be better or worse.
According to them, no, it will not be limited only to forms.
Look
I just gotta wait a couple years
Yes, but I hope it doesn't take that long. They're already finalizing the settings UI, and there are indications of pathways to the Marketplace in the ore UI.
In addition to screens already existing for containers
Stable in 26.30
world.afterEvents.itemUse.subscribe((event) => {
const { itemStack: item, source } = event;
const player = source as Player;
if (!player) return;
if (item.typeId !== 'minecraft:stick') return;
const formTitle = new ObservableString('MessageBox');
const form = new MessageBox(player, formTitle);
form.show();
});```
Why is this what an empty `MessageBox` looks like!?
I also think it's quite weird that we can't provide a .closeButton() or that the x close button isn't there in the form. It would also be nice to be able to make the 2 visible buttons side by side instead of stacked vertically.
So §o and §l doesn't seem to do anything but §k actually tries to do something by replacing all letters with a . which is strange. Obviously I expected §r to work as intended. I hope we see strikethrough or underline at some point with this new UI.
-# Edit: I also noticed that the new colour code §w following the new Party Chat text colour doesn't seem to be working in DDUI just yet. Now we just have §x, §y and §z left. What will Mojang do with them? 🤔
kkkkkkkkkkkkkkkkkk
xd
Ddui is great, now I just need image support to make it work.
When that happens, I can do a full port of the old form to the new one. 👀
Is there a way to add a DDUI to a pre-existing screen? Like the inventory screen? Or just always on?
