- Added API for tooltips for custom elements (
ElementTooltip#getTooltip()andElementTooltip#setTooltip(String tooltip))
- Removed useless constructors and methods from CustomForm, ModalForm
- Removed dependence on Nukkit forms + added FormService class
- New form elements (Header & Divider)
- Removed useless method
Element#getIndex() - Added
FormService#closeForms(Player player)method - Moved
PlayerFormCloseEventandPlayerFormSendEventevent classes - Added method
ClosableForm#setCloseHandler(CloseReasonFormHandler closeHandler) - Added method
Form#sendUpdate(Player player)for form update - Added method
CustomForm#setSubmitButton(String submitButton)to change submit button text - Added support for 1.21.70x and 1.21.80x
- Renamed ButtonImage to ImageData
- Added method
setImage(Image image)in Button class
- Fixed Input#setDefaultValue method
- Changes in FormElement#setName method
General changes:
- Changed package from
ru.contentforge.formconstructortocom.formconstructor - Java 17 is now used as the main version
- All public and protected fields changed to private and added getters and setters
PlayerFormSendEventandPlayerFormCloseEventnow extendFormEvent- Added Javadoc
Changes in elements:
- All elements for simple form and custom form are allocated to the relevant packages
ImageButtonclass renamed toButtonImageCustomFormElementclass renamed toCustomElement- Added
ElementTypeenum. Now ElementType is used to specify the element type - Added
Sliderelement InputBuilderclass deleted. Now the Input is created from the same Input class- Added
setImage(ImageType, String)andonClick(SimpleFormHandler)methods to Button element - Renamed the
getText()method togetName()in the SelectableElement class - Renamed the
addElement()andaddElements()method toaddStep()andaddSteps()in the StepSlider class
Changes in forms:
- Added
FormTypeenum. Now FormType is used to specify the form type - Removed
addButton(SimpleFormHandler)method from SimpleForm class - Added
addButton(String)method to SimpleForm class - Added
addButton(String, ImageType, String)method to SimpleForm class - Removed
HashSet<String> containsIdfield from CustomForm class
Changes in responses:
- Response class renamed to FormResponse
- Renamed the
get(int),get(String), andget(String, Class)methods in CustomFormResponse class togetElement - Renamed the
get(Class)method in CustomFormResponse class togetElements - Added
getSlider(int),getSlider(String)andgetSliders()methods to CustomFormResponse class - CustomFormResponse class constructor changed from
CustomFormResponse(CustomFormHandler, ArrayList<CustomElement>, HashSet<String>, CustomForm)toCustomFormResponse(CustomFormHandler, List<CustomElement>, CustomForm)
- Added
PlayerFormSendEventclass - Added
PlayerFormCloseEventclass - Added
send(Player player, boolean async)method to Form class ModalFormclass now extendsClosableFormclass- Event handler moved from
FormConstructorclass toFormListenerclass