Skip to content

Commit

Permalink
Remove 'Generate keyframe' button, because of converter code has been…
Browse files Browse the repository at this point in the history
… added to replace feature
  • Loading branch information
mchorse committed Aug 18, 2020
1 parent f827e4c commit 383e828
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion help/en_US/gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ aperture.gui:
angle: Angle
circle: Circle
selector: Entity target selector (you can also enter the name tag of the entity instead of target selector)\n\nClick "?" button for more information about syntax...
to_keyframe: Generate keyframe
use_speed: Velocity control

all: All
Expand Down
1 change: 0 additions & 1 deletion help/pt_BR/gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ aperture.gui:
circle: Círculo
selector: Seletor
per_point: Duração por ponto
to_keyframe: Gerar keyframe
use_speed: Controle de velocidade

all: Todos
Expand Down
1 change: 0 additions & 1 deletion help/ru_RU/gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ aperture.gui:
angle: Угол
circle: Круг
selector: Целевой селектор существ (вы также можете ввести именной тэг существа вместо целевого селектора)\n\nНажмите на кнопку "?", чтобы узнать больше о синтаксе...
to_keyframe: Сгенерировать ключ
use_speed: Контроль скорости

all: Всё
Expand Down
1 change: 0 additions & 1 deletion help/zh_CN/gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ aperture.gui:
angle: 角度
circle: 圆圈
selector: 实体目标选择器 (您也可以输入实体的名称标签来代替目标选择器)\n\n点击 "?" 按钮了解更多关于语法的信息...
to_keyframe: 生成关键帧
use_speed: 速率控制

all: 全部
Expand Down
1 change: 0 additions & 1 deletion help/zh_TW/gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ aperture.gui:
angle: 角度
circle: 圓圈
selector: 實體目標選擇器 (您也可以輸入實體的名稱標簽來代替目標選擇器)\n\n點擊 "?" 按鈕了解更多關於語法的信息...
to_keyframe: 生成關鍵幀
use_speed: 速率控制

all: 全部
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public class GuiPathFixturePanel extends GuiAbstractFixturePanel<PathFixture> im
public GuiPointsModule points;
public GuiInterpModule interp;
public GuiToggleElement useSpeed;
public GuiButtonElement toKeyframe;
public GuiCameraEditorKeyframesGraphEditor speed;

public Position position;
Expand All @@ -60,14 +59,13 @@ public GuiPathFixturePanel(Minecraft mc, GuiCameraEditor editor)
this.fixture.updateSpeedCache();
}
});
this.toKeyframe = new GuiButtonElement(mc, IKey.lang("aperture.gui.panels.to_keyframe"), (b) -> this.toKeyframe());
this.speed = new GuiCameraEditorKeyframesGraphEditor(mc, editor);

this.points.flex().relative(this.left.flex()).x(1F, 40).y(1F, -30).wTo(this.right.flex(), -80).h(20);
this.speed.flex().relative(this).y(0.55F, 0).w(1F).h(0.45F);
this.left.flex().w(140);

this.left.add(this.interp, this.useSpeed, this.toKeyframe);
this.left.add(this.interp, this.useSpeed);
this.left.markContainer();
this.right.add(this.point, this.angle);

Expand Down Expand Up @@ -102,16 +100,6 @@ public void profileWasUpdated()
}
}

private void toKeyframe()
{
KeyframeFixture fixture = this.fixture.toKeyframe();

if (fixture != null)
{
this.editor.createFixture(fixture);
}
}

@Override
public void pickPoint(GuiPointsModule module, int index)
{
Expand Down

0 comments on commit 383e828

Please sign in to comment.