|
@@ -6,6 +6,8 @@ import com.badlogic.gdx.graphics.g3d.ModelInstance;
|
|
|
import imgui.ImGui;
|
|
|
import imgui.extension.imguizmo.ImGuizmo;
|
|
|
import imgui.flag.ImGuiWindowFlags;
|
|
|
+import imgui.type.ImDouble;
|
|
|
+import imgui.type.ImFloat;
|
|
|
import imgui.type.ImInt;
|
|
|
import imgui.type.ImString;
|
|
|
import xyz.tbvns.Editor.ModelsManager;
|
|
@@ -40,7 +42,7 @@ public class Timeline implements Element {
|
|
|
ImGui.labelText("##", "Frame skip:");
|
|
|
ImGui.sameLine();
|
|
|
ImGui.pushItemWidth(100);
|
|
|
- ImGui.labelText("##", "Start frame:");
|
|
|
+ ImGui.labelText("##", "Start percent:");
|
|
|
|
|
|
for (ModelInstance model : ModelsManager.getLoadedModels()) {
|
|
|
GDInstance instance = ((GDInstance) model.userData);
|
|
@@ -63,10 +65,10 @@ public class Timeline implements Element {
|
|
|
instance.setFrameSkip(skipFrame.get());
|
|
|
|
|
|
ImGui.sameLine();
|
|
|
- ImInt startFrame = new ImInt(instance.getStart());
|
|
|
+ ImDouble startPercent = new ImDouble(instance.getStart());
|
|
|
ImGui.pushItemWidth(100);
|
|
|
- ImGui.inputInt("##startFrame" + instance.getId(), startFrame);
|
|
|
- instance.setStart(startFrame.get());
|
|
|
+ ImGui.inputDouble("##startPercent" + instance.getId(), startPercent);
|
|
|
+ instance.setStart(startPercent.get());
|
|
|
|
|
|
ImGui.sameLine();
|
|
|
if (ImGui.checkbox("Expand", instance.isExpanded())) {
|