#Second Customui
1 messages · Page 1 of 1 (latest)
it can be another file or server_form.json
it doesnt really matter
but to have custom forms you want to not show the custom form's title or body, etc. inside of the standard vanilla long_form
use conditional rendering
what does that mean ?
because it is for a profil, so i need to show stats like kills etc..
so i need to do it in the hud_screen ?
well no
thats just showing you how to use conditional rendering
it can be done with any file really
oh okay
you'll want to do it in server_form.json
but then, how did i say that this custom is for the profilMenu ?
you gotta add a server form factory
or a new form in the default long form so it renders
so difficult
"@server_form.our_long_form_panel" but what does that mean ?
and, when did I mention the form name ?
@server_form is the namespace of the file
.our_long_form_panel is the element being referenced
which exists in that namespae
yes but i never mention the name of the form in the json ?
you're new to json ui aren't you
yes ofc
you've got a long way to go
dont start trying to use server forms without any json ui knowledge
that is not the problem about it, but i already make a custom ui etc.. and now, i want to know how to customize the second ui when i click on the profil button
Create ur custom form in another file and then define it in the server_form its tittle
{
"form_button@common_buttons.light_text_button": {
"$pressed_button_name": "button.form_button_click",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": "$button_size",
"$button_text": "#null",
"$button_text_binding_type": "collection",
"$button_text_grid_collection_name": "form_buttons",
"$button_text_max_size": ["100%", 20],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "form_buttons"
}
]
}
}
]
}
}
]
}
}
this is the end of my server_form file, where should i put the comma, and tell me what i need to write ? (for the custom form, it is written in : form/profilMenu/profilMenu.json
Im currently not from my pc ill reach u when i get back from my pc and send u an example
okay thx, i just need to know how to put the customization on the second form
mention me when u can @zinc rivet
@zinc rivet ?
What time zone you are @lofty sphinx? I can help you and show some of my work, so you will see it and have clearer view how to do it
i'm from europe
UTC +2
Amazing, I will have time in like 30 min, do you want quick meet to showcase you this?
I can't call srry but i can add in friend