samp.directory
← Scripts y librerías

Alf21/textdraw-system

Sin descripción en GitHub.

Herramienta★ 4actualizado dic 2017GPL-3.0Java
Abrir en GitHub

README.md

Example how to create a panel with a list, a panelDialog and a MessageBox:

Panel panel = TextdrawSystem.createPanel(player);
		TextdrawSystem.setPanel(player, panel);

		panel.setDialogLayout(DialogLayout.FORM);
		panel.getLeftButton().setText(localizedStringSet.get(player, "Dialogs.Back"));
		panel.getRightButton().setText(localizedStringSet.get(player, "Dialogs.Next"));

//example panelDialog
PanelDialog panelDialog = TextdrawSystem.createPanelDialog(player);

		List list = panelDialog.addList("optionList");
		//create group
		list.addListItem("createGroup")
				.setClickHandler(handler -> createGroupDialog());

			//delete group
			list.addListItem("deleteGroup")
					.setClickHandler(handler -> deleteGroupDialog());

			//edit group
			list.addListItem("EditGroup")
					.setClickHandler(handler -> editGroupDialog());
		//edit player
		list.addListItem("EditPlayer")
				.setClickHandler(handler -> editPlayerOptionDialog());

		panelDialog.toggleOkButton(false);
		panelDialog.setCaption("Caption");

		panelDialog.show();

//MsgBox
MsgBox msgBox = new MsgBox(player, "Caption", "Message", groupName));
			msgBox.setCancelButton("No");
			msgBox.setOkButton("Yes");
			msgBox.setClickOkHandler(msgBoxHandler -> createGroupDialog());
			msgBox.setClickCancelHandler(msgBoxHandler -> createOptions());
			msgBox.show(); //also possible to use the panel with content !

gtasaguijavapluginsampshoebillshoebill-plugin

Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha