#Server Form without reload anim
1 messages · Page 1 of 1 (latest)
@shy parcel you should be able to remove the anims from the screen itself. I haven't messed with the server form yet, but if you find the screen element (search base_screen, try putting "$screen_animations": []
@shy parcel here's what the base_screen anims look like:
"$screen_animations|default": [
"@common.screen_exit_animation_push_offset",
"@common.screen_exit_animation_pop_offset",
"@common.screen_entrance_animation_push_offset",
"@common.screen_entrance_animation_pop_offset",
"@common.screen_exit_animation_push_fade",
"@common.screen_exit_animation_pop_fade",
"@common.screen_entrance_animation_push_fade",
"@common.screen_entrance_animation_pop_fade"
],
"$background_animations|default": [
"@common.screen_exit_animation_push_alpha",
"@common.screen_exit_animation_pop_alpha",
"@common.screen_entrance_animation_push_alpha",
"@common.screen_entrance_animation_pop_alpha"
],
So you can add/remove any you want
I had tested this before by modifying it directly in base_screen and I swear I still had annoying lag, thx you!
Im sad that you didnt say you missed me, I guess you dont remember, there are many in line, right?

When I open the menu, the life/hunger/inventory disappears, I tested removing one by one and the animation continues, I wanted the background to continue after opening the menu, is there a way?
I do remember lol
There should be a screen property/variable for that. To render the screen below (i.e. hud screen). I would check the ui_common screen. I forgot what the property is called
I saw your message earlier, searched for it but didnt find it
Could you try these codes? It's work for me to remove pop in/up animations from server form ui.
{
"namespace": "server_form",
"[email protected]_screen": {
"$screen_content": "server_form.main_screen_content",
"$screen_animations": [],
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
]
}
// ..........
}
Look you inventory, he has animation
I dont want him to disappear
you want player can't close the form?
If it is correct, set "button_mappings" to an empty array?
or just like this?
{
"namespace": "server_form",
"[email protected]_screen": {
"$screen_content": "server_form.main_screen_content",
"force_render_below": true, //set true to render last ui that under the form
"$screen_animations": [],
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
]
}
}
How could I do this?
Is this
Thx!
Wait, render all last ui, Other menus for example?
I will test it later, thx you
{
"namespace": "server_form",
"[email protected]_screen": {
"$screen_content": "server_form.main_screen_content",
"force_render_below": true, //set true to render last ui that under the form
"$screen_animations": [],
"button_mappings": [ // set array of button_mappings to an empty array
//{
//"from_button_id": "button.menu_cancel",
//"to_button_id": "button.menu_exit",
//"mapping_type": "global"
//}
]
}
}
thx for all!
that works, but it still updates a small delay later. Is there a way to update it instantly?
Not sure that work, but you could add cache_screen under the third_party_server_screen control to test your result.
{
"namespace": "server_form",
"[email protected]_screen": {
"$screen_content": "server_form.main_screen_content",
"force_render_below": true, //set true to render last ui that under the form
"$screen_animations": [],
"cache_screen": true,
"button_mappings": [ // set array of button_mappings to an empty array
//{
//"from_button_id": "button.menu_cancel",
//"to_button_id": "button.menu_exit",
//"mapping_type": "global"
//}
]
}
}
Do you think that would remove the transition delay?
Do you mean the transition process when the server form is opened?
yes, or when a button is clicked to open another form
I guess this field could helps the player to get a faster response when reopening the UI afterward.
just tested, and it's a nope
there is still a 0.5s delay for the animation (which doesn't exist) to play
When the vanilla UI is opened for the first time, the opening speed is affected by the complexity of the UI controls.
· The more controls a UI screen contains, the slower the creation speed.
Or
· The larger the size of the total image resources a UI screen uses, the slower the creation speed.
In addition, one more question:
The speed conclusion you got in the previous test comes from opening the UI for the first time or opening the UI repeatedly?
it's not lag
or amount of buttons
it's a fixed 0.5s for the animation to play
the same happens when closing the form
it lingers for around 0.5s while you have the ability to move, since an animation should be playing
Is it work?
{
"namespace": "server_form",
"[email protected]_screen": {
"$screen_content": "server_form.main_screen_content",
"$screen_animations": [],
"$background_animations": []
}
}
that works! although there is a slight flicker
which I assume is the load time
is there any way to negate this?
I did use "cache_screen": true,
like maybe if I kept the delay for a much shorter time
I think a slight flicker is inevitable if you must manually close the server-form UI before opening it next time.
Because it is caused by the logic of opening the UI immediately after it is closed.
Then this process is done by your client telling the server to do such an operation. The communication time required for this operation is small, but it will be noticed if your standards are high.
And I think the main purpose of cache_screen is to improve the speed of the client opening this UI next time.
Hope this statement is helpful to you. Right now I don't know how to change it.
is it possible to 'hold' the previous ui until the next one is loaded?
Try it.
{
"namespace": "server_form",
"[email protected]_screen": {
"$screen_content": "server_form.main_screen_content",
// When set to false, the screen will be rendered even if other screens(ChatScreen, Inventory Screen etc.) cover it.
"render_only_when_topmost": false
}
}
maybe, disable screen animation in settings
Fixed that.
The issue is the loading time now
hey, do you know how to create a custom animation? Is is possible to shorten the background animation?
yeah, but currently I don’t have a pc to test the answer which is true of false . I am taking a vacation now. First, you could find all controls of background animation in ui_common.json. Second, change some of their durations. That’s all.
But don’t change durations of animations in there. You could copy and paste them to the form ui. Then change the durations here, and put the names of controls in background_animation variable.
Make a horizontal stack panel and only show scoreboard object names and value there.In this example, Trapper is the object name, 9 is the value. Other labels are fixed.
Okay..
But what is a Script?
I don't speak English, learn this language.
I speak Russian, and Hebrew.
I‘m not a English native speaker too. I think you should ask that at script channel.
when i click the button my mouse resets, it goes probably to the last button that the form has
when I have to click several times on the same button it ends up going to the end and I click on another, for other platforms like xbox you have to go back to the first button one by one
@azure trail can you help me with this?
do I annoy you with the mentions?
hm I'm not really sure what's causing that since I haven't used forms. Seems like a hardcoded issue if the mouse itself is disappearing between clicks
on Xbox, after clicking the last button is selected, which form do you use?
I'm gonna start using forms but I haven't yet. Just been using NPC screens
is there a way to put buttons without limits like server_form?
if I were to make a menu like this by the NPC screens, I would have to limit myself to the buttons, is its only defect
There is but it's kind of scuffed. I would recommend just using forms. I'm not sure what's up with the mouse glitch though
You could disable the mouse for the screen to force them to use buttons
it is not the mouse, it happens also by xbox
does not use mouse, uses buttons and automatically goes to the last button
by xbox and mouse or something with "selection"
Can you teach me? Please. dialogue without limit button
my npc screen crash with exact 20 index buttons
i love the npc screen but he have this problem with limits
Removing the limits is just a matter of using the skin buttons. But they can be annoying to work with in multiplayer and they recently limited it so player has to be in creative + operator to use them. I would personally just stick with form. Does the glitch with the mouse/xbox selection happen even with the vanilla forms (no modified UI)?
npc screen crash my game even without custom menu, only with 20 buttons
create a npc screen with 20 or 21 buttons, when opening the game closes
Hmm. Maybe they will fix it in the future then since even the vanilla version is buggy
Ah, I haven't tested with more than 20
before it would work and after trying to open the npc screen, it would close
now it doesnt open at all
but this error is something on the outside
max is exactly 20 for me
using "Pocketmine"
before it did not show this error and I could pass the pocketmine limit, but Minecraft crashed
now I cant even see minecraft crash oof
another problem I see in the npc screen is that the text there are limits of digits, now I remembered why I left it
:(
tysm for your attention and sorry for anything
❤️
np! hopefully they can fix the issue with the mouse/button glitching cuz server forms seem much easier to use
uhm, isnt that second form that shows up after you click e.g. 4th button in previous one? If thats second form, probably default button focus ID is first button and if you would like to select 4th button in this second form, unfortunately its not possible and everything you can do is defining only one button (e.g. first one from the list/grid or close button, whatever)
It’s possible to remove though
I’ve done it myself
However, there is a flicker that don’t like
Even if the second form is the same?
no matter which one I click, it always goes back to the last button
"$focus_enabled|default": false,
"focus_enabled": "$focus_enabled"
the focus problem is this
how can I make a command through / ? 
plugin
maybe try looking around, i never tried
yes
and yes
thats not this npc dialogue that isnt made like server form, form will reset everytime you click on something even when next one is literally same
in short, blame the greatest company in world, mojang

wait how can you change the stuff in the form?
like how are you are updating the form without opening new ones?
I am opening