translation complete but not tested
This commit is contained in:
@@ -17,7 +17,7 @@ export class MaterialGrabberForm {
|
||||
const selectedInstanceName = structureCollection.getInstanceNames()[response.selection];
|
||||
if (selectedInstanceName) {
|
||||
this.setActiveInstance(selectedInstanceName);
|
||||
this.player.sendMessage(`§7Selected instance for material grabber: §2${selectedInstanceName}`);
|
||||
this.player.sendMessage({ translate: 'construct.materials.grabber.menu.success' });
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -10,12 +10,13 @@ export class MaterialGrabberFormBuilder {
|
||||
const allInstanceNameForm = new ActionFormData()
|
||||
.title(this.menuTitle);
|
||||
const currInstanceName = Builders.get(player.id).materialInstanceName;
|
||||
let body = '§7Current instance: ';
|
||||
const body = { rawtext: [{ translate: 'construct.materials.grabber.menu.header' }] };
|
||||
if (currInstanceName)
|
||||
body += `§2${currInstanceName}`;
|
||||
body.rawtext.push({ text: `§2${currInstanceName}` });
|
||||
else
|
||||
body += '§7None';
|
||||
body += '\n§7Select an instance:';
|
||||
body.rawtext.push({ translate: 'construct.materials.grabber.menu.noinstance' });
|
||||
body.rawtext.push({ text: '\n' });
|
||||
body.rawtext.push({ translate: 'construct.materials.grabber.menu.selectinstance' });
|
||||
allInstanceNameForm.body(body);
|
||||
structureCollection.getInstanceNames().forEach(instanceName => {
|
||||
allInstanceNameForm.button(`§2${instanceName}`);
|
||||
|
||||
Reference in New Issue
Block a user