mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-02 14:38:50 +00:00
Improve UI scaling
This commit is contained in:
1 parent
809c4df917
commit
988e897cdc
3 files changed
+53
-42
No files matched your search
@@ -376,6 +376,10 @@ public class ReplayUI {
|
|||||||
return globalScale * contentScale;
|
return globalScale * contentScale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static int scaleUi(int v) {
|
||||||
|
return (int)(v * getUiScale());
|
||||||
|
}
|
||||||
|
|
||||||
public static double getNewMouseX(double x) {
|
public static double getNewMouseX(double x) {
|
||||||
return x - frameX;
|
return x - frameX;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import com.moulberry.flashback.combo_options.AudioCodec;
|
|||||||
import com.moulberry.flashback.combo_options.Sizing;
|
import com.moulberry.flashback.combo_options.Sizing;
|
||||||
import com.moulberry.flashback.combo_options.VideoCodec;
|
import com.moulberry.flashback.combo_options.VideoCodec;
|
||||||
import com.moulberry.flashback.combo_options.VideoContainer;
|
import com.moulberry.flashback.combo_options.VideoContainer;
|
||||||
|
import com.moulberry.flashback.editor.ui.ReplayUI;
|
||||||
import com.moulberry.flashback.exporting.ExportJobQueue;
|
import com.moulberry.flashback.exporting.ExportJobQueue;
|
||||||
import com.moulberry.flashback.state.EditorScene;
|
import com.moulberry.flashback.state.EditorScene;
|
||||||
import com.moulberry.flashback.state.EditorState;
|
import com.moulberry.flashback.state.EditorState;
|
||||||
@@ -225,10 +226,10 @@ public class StartExportWindow {
|
|||||||
ImGui.popTextWrapPos();
|
ImGui.popTextWrapPos();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.dummy(0, 10);
|
ImGui.dummy(0, 10 * ReplayUI.getUiScale());
|
||||||
|
|
||||||
float buttonSize = (ImGui.getContentRegionAvailX() - ImGui.getStyle().getItemSpacingX()) / 2f;
|
float buttonSize = (ImGui.getContentRegionAvailX() - ImGui.getStyle().getItemSpacingX()) / 2f;
|
||||||
if (ImGui.button("Start Export", buttonSize, 25)) {
|
if (ImGui.button("Start Export", buttonSize, ReplayUI.scaleUi(25))) {
|
||||||
createExportSettings(null).thenAccept(settings -> {
|
createExportSettings(null).thenAccept(settings -> {
|
||||||
if (settings != null) {
|
if (settings != null) {
|
||||||
close = true;
|
close = true;
|
||||||
@@ -238,7 +239,7 @@ public class StartExportWindow {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
ImGui.sameLine();
|
ImGui.sameLine();
|
||||||
if (ImGui.button("Add to Queue", buttonSize, 25)) {
|
if (ImGui.button("Add to Queue", buttonSize, ReplayUI.scaleUi(25))) {
|
||||||
jobName.set("Job #" + (ExportJobQueue.count()+1));
|
jobName.set("Job #" + (ExportJobQueue.count()+1));
|
||||||
ImGui.openPopup("QueuedJobName");
|
ImGui.openPopup("QueuedJobName");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,11 +109,12 @@ public class TimelineWindow {
|
|||||||
private static float zoomBarMax;
|
private static float zoomBarMax;
|
||||||
private static boolean zoomBarExpanded;
|
private static boolean zoomBarExpanded;
|
||||||
|
|
||||||
private static final int minorSeparatorHeight = 10;
|
private static int minorSeparatorHeight = 10;
|
||||||
private static final int majorSeparatorHeight = minorSeparatorHeight * 2;
|
private static int majorSeparatorHeight = minorSeparatorHeight * 2;
|
||||||
private static final int timestampHeight = 20;
|
private static int timestampHeight = 20;
|
||||||
private static final int middleY = timestampHeight + majorSeparatorHeight;
|
private static int middleY = timestampHeight + majorSeparatorHeight;
|
||||||
private static final int middleX = 240;
|
private static int middleX = 240;
|
||||||
|
private static int keyframeSize = 10;
|
||||||
|
|
||||||
private static final List<SelectedKeyframes> selectedKeyframesList = new ArrayList<>();
|
private static final List<SelectedKeyframes> selectedKeyframesList = new ArrayList<>();
|
||||||
private static int editingKeyframeTrack = 0;
|
private static int editingKeyframeTrack = 0;
|
||||||
@@ -122,10 +123,8 @@ public class TimelineWindow {
|
|||||||
private static int createKeyframeAtTick = 0;
|
private static int createKeyframeAtTick = 0;
|
||||||
private static int openCreateKeyframeAtTickTrack = -1;
|
private static int openCreateKeyframeAtTickTrack = -1;
|
||||||
|
|
||||||
|
|
||||||
private static final float[] replayTickSpeeds = new float[]{1.0f, 2.0f, 4.0f, 10.0f, 20.0f, 40.0f, 100.0f, 200.0f, 400.0f};
|
private static final float[] replayTickSpeeds = new float[]{1.0f, 2.0f, 4.0f, 10.0f, 20.0f, 40.0f, 100.0f, 200.0f, 400.0f};
|
||||||
|
|
||||||
private static final int KEYFRAME_SIZE = 10;
|
|
||||||
|
|
||||||
public static int getCursorTick() {
|
public static int getCursorTick() {
|
||||||
return cursorTicks;
|
return cursorTicks;
|
||||||
@@ -173,6 +172,13 @@ public class TimelineWindow {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
minorSeparatorHeight = ReplayUI.scaleUi(10);
|
||||||
|
majorSeparatorHeight = minorSeparatorHeight * 2;
|
||||||
|
timestampHeight = ReplayUI.scaleUi(20);
|
||||||
|
middleY = timestampHeight + majorSeparatorHeight;
|
||||||
|
middleX = ReplayUI.scaleUi(240);
|
||||||
|
keyframeSize = ReplayUI.scaleUi(10);
|
||||||
|
|
||||||
selectedKeyframesList.removeIf(k -> !k.checkValid(editorScene));
|
selectedKeyframesList.removeIf(k -> !k.checkValid(editorScene));
|
||||||
|
|
||||||
if (editingKeyframeTrack >= 0 && editingKeyframeTick >= 0) {
|
if (editingKeyframeTrack >= 0 && editingKeyframeTick >= 0) {
|
||||||
@@ -305,7 +311,7 @@ public class TimelineWindow {
|
|||||||
float markerX = x + replayTickToTimelineX(markerTick);
|
float markerX = x + replayTickToTimelineX(markerTick);
|
||||||
int colour = marker.colour();
|
int colour = marker.colour();
|
||||||
colour = ((colour >> 16) & 0xFF) | (colour & 0xFF00) | ((colour << 16) & 0xFF0000) | 0xFF000000; // change endianness
|
colour = ((colour >> 16) & 0xFF) | (colour & 0xFF00) | ((colour << 16) & 0xFF0000) | 0xFF000000; // change endianness
|
||||||
drawList.addCircleFilled(markerX, y+middleY, 5, colour);
|
drawList.addCircleFilled(markerX, y+middleY, ReplayUI.scaleUi(5), colour);
|
||||||
|
|
||||||
if (!ImGui.isAnyMouseDown() && marker.description() != null && Math.abs(markerX - mouseX) <= 5 && Math.abs(y+middleY - mouseY) <= 5) {
|
if (!ImGui.isAnyMouseDown() && marker.description() != null && Math.abs(markerX - mouseX) <= 5 && Math.abs(y+middleY - mouseY) <= 5) {
|
||||||
ImGuiHelper.drawTooltip(marker.description());
|
ImGuiHelper.drawTooltip(marker.description());
|
||||||
@@ -350,7 +356,7 @@ public class TimelineWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Pause/play button
|
// Pause/play button
|
||||||
int controlSize = 24;
|
int controlSize = ReplayUI.scaleUi(24);
|
||||||
int controlsY = (int) y + middleY/2 - controlSize/2;
|
int controlsY = (int) y + middleY/2 - controlSize/2;
|
||||||
|
|
||||||
// Skip backwards
|
// Skip backwards
|
||||||
@@ -402,7 +408,6 @@ public class TimelineWindow {
|
|||||||
drawList.addRectFilled(skipForwardsX + controlSize*2f/3f, controlsY,
|
drawList.addRectFilled(skipForwardsX + controlSize*2f/3f, controlsY,
|
||||||
skipForwardsX + controlSize, controlsY+controlSize, -1);
|
skipForwardsX + controlSize, controlsY+controlSize, -1);
|
||||||
|
|
||||||
|
|
||||||
hoveredControls = mouseY > controlsY && mouseY < controlsY + controlSize;
|
hoveredControls = mouseY > controlsY && mouseY < controlsY + controlSize;
|
||||||
hoveredSkipBackwards = hoveredControls && mouseX >= skipBackwardsX && mouseX <= skipBackwardsX+controlSize;
|
hoveredSkipBackwards = hoveredControls && mouseX >= skipBackwardsX && mouseX <= skipBackwardsX+controlSize;
|
||||||
hoveredSlowDown = hoveredControls && mouseX >= slowDownX && mouseX <= slowDownX+controlSize;
|
hoveredSlowDown = hoveredControls && mouseX >= slowDownX && mouseX <= slowDownX+controlSize;
|
||||||
@@ -596,7 +601,7 @@ public class TimelineWindow {
|
|||||||
float floorX = floor == null ? Float.NaN : x + replayTickToTimelineX(floor);
|
float floorX = floor == null ? Float.NaN : x + replayTickToTimelineX(floor);
|
||||||
float ceilX = ceil == null ? Float.NaN : x + replayTickToTimelineX(ceil);
|
float ceilX = ceil == null ? Float.NaN : x + replayTickToTimelineX(ceil);
|
||||||
|
|
||||||
Integer closest = Utils.chooseClosest(mouseX, floorX, floor, ceilX, ceil, KEYFRAME_SIZE);
|
Integer closest = Utils.chooseClosest(mouseX, floorX, floor, ceilX, ceil, keyframeSize);
|
||||||
if (closest != null) {
|
if (closest != null) {
|
||||||
if (closestTick == -1) {
|
if (closestTick == -1) {
|
||||||
closestTick = closest;
|
closestTick = closest;
|
||||||
@@ -928,7 +933,7 @@ public class TimelineWindow {
|
|||||||
float floorX = floor == null ? Float.NaN : x + replayTickToTimelineX(floor.getKey());
|
float floorX = floor == null ? Float.NaN : x + replayTickToTimelineX(floor.getKey());
|
||||||
float ceilX = ceil == null ? Float.NaN : x + replayTickToTimelineX(ceil.getKey());
|
float ceilX = ceil == null ? Float.NaN : x + replayTickToTimelineX(ceil.getKey());
|
||||||
|
|
||||||
Map.Entry<Integer, Keyframe> closest = Utils.chooseClosest(mouseX, floorX, floor, ceilX, ceil, KEYFRAME_SIZE);
|
Map.Entry<Integer, Keyframe> closest = Utils.chooseClosest(mouseX, floorX, floor, ceilX, ceil, keyframeSize);
|
||||||
if (closest != null) {
|
if (closest != null) {
|
||||||
boolean reuseOld = false;
|
boolean reuseOld = false;
|
||||||
for (SelectedKeyframes selectedKeyframes : oldSelectedKeyframesList) {
|
for (SelectedKeyframes selectedKeyframes : oldSelectedKeyframesList) {
|
||||||
@@ -1148,8 +1153,8 @@ public class TimelineWindow {
|
|||||||
for (int trackIndex = minTrackIndex; trackIndex <= maxTrackIndex; trackIndex++) {
|
for (int trackIndex = minTrackIndex; trackIndex <= maxTrackIndex; trackIndex++) {
|
||||||
KeyframeTrack keyframeTrack = editorScene.keyframeTracks.get(trackIndex);
|
KeyframeTrack keyframeTrack = editorScene.keyframeTracks.get(trackIndex);
|
||||||
|
|
||||||
int minTick = timelineXToReplayTick(dragMinX - KEYFRAME_SIZE);
|
int minTick = timelineXToReplayTick(dragMinX - keyframeSize);
|
||||||
int maxTick = timelineXToReplayTick(dragMaxX + KEYFRAME_SIZE);
|
int maxTick = timelineXToReplayTick(dragMaxX + keyframeSize);
|
||||||
|
|
||||||
IntSet intSet = new IntOpenHashSet();
|
IntSet intSet = new IntOpenHashSet();
|
||||||
|
|
||||||
@@ -1331,7 +1336,7 @@ public class TimelineWindow {
|
|||||||
float floorX = floor == null ? Float.NaN : x + replayTickToTimelineX(floor);
|
float floorX = floor == null ? Float.NaN : x + replayTickToTimelineX(floor);
|
||||||
float ceilX = ceil == null ? Float.NaN : x + replayTickToTimelineX(ceil);
|
float ceilX = ceil == null ? Float.NaN : x + replayTickToTimelineX(ceil);
|
||||||
|
|
||||||
Integer closest = Utils.chooseClosest(mouseX, floorX, floor, ceilX, ceil, KEYFRAME_SIZE);
|
Integer closest = Utils.chooseClosest(mouseX, floorX, floor, ceilX, ceil, keyframeSize);
|
||||||
if (closest != null) {
|
if (closest != null) {
|
||||||
if (closestTick == -1) {
|
if (closestTick == -1) {
|
||||||
closestTick = closest;
|
closestTick = closest;
|
||||||
@@ -1426,7 +1431,7 @@ public class TimelineWindow {
|
|||||||
if (keyframeTrack.keyframesByTick.size() == 1) {
|
if (keyframeTrack.keyframesByTick.size() == 1) {
|
||||||
colour = 0xFF155FFF;
|
colour = 0xFF155FFF;
|
||||||
|
|
||||||
if (Math.abs(mouseX - midX) < KEYFRAME_SIZE && Math.abs(mouseY - midY) < KEYFRAME_SIZE) {
|
if (Math.abs(mouseX - midX) < keyframeSize && Math.abs(mouseY - midY) < keyframeSize) {
|
||||||
ImGuiHelper.drawTooltip("Timelapse requires two keyframes");
|
ImGuiHelper.drawTooltip("Timelapse requires two keyframes");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -1435,7 +1440,7 @@ public class TimelineWindow {
|
|||||||
if (timelapseKeyframe.ticks >= ((TimelapseKeyframe) keyframe).ticks) {
|
if (timelapseKeyframe.ticks >= ((TimelapseKeyframe) keyframe).ticks) {
|
||||||
colour = 0xFF155FFF;
|
colour = 0xFF155FFF;
|
||||||
|
|
||||||
if (Math.abs(mouseX - midX) < KEYFRAME_SIZE && Math.abs(mouseY - midY) < KEYFRAME_SIZE) {
|
if (Math.abs(mouseX - midX) < keyframeSize && Math.abs(mouseY - midY) < keyframeSize) {
|
||||||
ImGuiHelper.drawTooltip("This keyframe's Time must be greater than the Time on the left.\nThe left keyframe must be set to the base time, e.g. 0s and the right keyframe must be set to the duration of the timelapse e.g. 10s");
|
ImGuiHelper.drawTooltip("This keyframe's Time must be greater than the Time on the left.\nThe left keyframe must be set to the base time, e.g. 0s and the right keyframe must be set to the duration of the timelapse e.g. 10s");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1484,10 +1489,10 @@ public class TimelineWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float startLine1 = x + leftX + KEYFRAME_SIZE;
|
float startLine1 = x + leftX + keyframeSize;
|
||||||
float endLine1 = x + midX - textWidth/2f - 5;
|
float endLine1 = x + midX - textWidth/2f - 5;
|
||||||
float startLine2 = x + midX + textWidth/2f + 5;
|
float startLine2 = x + midX + textWidth/2f + 5;
|
||||||
float endLine2 = x + rightX - KEYFRAME_SIZE;
|
float endLine2 = x + rightX - keyframeSize;
|
||||||
if (startLine1 < endLine1) {
|
if (startLine1 < endLine1) {
|
||||||
ImGui.getWindowDrawList().addLine(startLine1, midY, endLine1, midY, 0x80FFFFFF);
|
ImGui.getWindowDrawList().addLine(startLine1, midY, endLine1, midY, 0x80FFFFFF);
|
||||||
}
|
}
|
||||||
@@ -1501,45 +1506,45 @@ public class TimelineWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void drawKeyframe(ImDrawList drawList, InterpolationType interpolationType, float x, float y, int colour) {
|
private static void drawKeyframe(ImDrawList drawList, InterpolationType interpolationType, float x, float y, int colour) {
|
||||||
int easeSize = KEYFRAME_SIZE / 5;
|
int easeSize = keyframeSize / 5;
|
||||||
switch (interpolationType) {
|
switch (interpolationType) {
|
||||||
case SMOOTH -> {
|
case SMOOTH -> {
|
||||||
drawList.addCircleFilled(x, y, KEYFRAME_SIZE, colour);
|
drawList.addCircleFilled(x, y, keyframeSize, colour);
|
||||||
}
|
}
|
||||||
case LINEAR -> {
|
case LINEAR -> {
|
||||||
drawList.addTriangleFilled(x - KEYFRAME_SIZE, y, x, y - KEYFRAME_SIZE, x, y + KEYFRAME_SIZE, colour);
|
drawList.addTriangleFilled(x - keyframeSize, y, x, y - keyframeSize, x, y + keyframeSize, colour);
|
||||||
drawList.addTriangleFilled(x + KEYFRAME_SIZE, y, x, y + KEYFRAME_SIZE, x, y - KEYFRAME_SIZE, colour);
|
drawList.addTriangleFilled(x + keyframeSize, y, x, y + keyframeSize, x, y - keyframeSize, colour);
|
||||||
}
|
}
|
||||||
case EASE_IN -> {
|
case EASE_IN -> {
|
||||||
// Left inverted triangle
|
// Left inverted triangle
|
||||||
drawList.addTriangleFilled(x - KEYFRAME_SIZE, y - KEYFRAME_SIZE, x - easeSize, y - KEYFRAME_SIZE, x - easeSize, y, colour);
|
drawList.addTriangleFilled(x - keyframeSize, y - keyframeSize, x - easeSize, y - keyframeSize, x - easeSize, y, colour);
|
||||||
drawList.addTriangleFilled(x - KEYFRAME_SIZE, y + KEYFRAME_SIZE, x - easeSize, y, x - easeSize, y + KEYFRAME_SIZE, colour);
|
drawList.addTriangleFilled(x - keyframeSize, y + keyframeSize, x - easeSize, y, x - easeSize, y + keyframeSize, colour);
|
||||||
// Right triangle
|
// Right triangle
|
||||||
drawList.addTriangleFilled(x + KEYFRAME_SIZE, y, x + easeSize, y + KEYFRAME_SIZE, x + easeSize, y - KEYFRAME_SIZE, colour);
|
drawList.addTriangleFilled(x + keyframeSize, y, x + easeSize, y + keyframeSize, x + easeSize, y - keyframeSize, colour);
|
||||||
// Center
|
// Center
|
||||||
drawList.addRectFilled(x - easeSize, y - KEYFRAME_SIZE, x + easeSize, y + KEYFRAME_SIZE, colour);
|
drawList.addRectFilled(x - easeSize, y - keyframeSize, x + easeSize, y + keyframeSize, colour);
|
||||||
}
|
}
|
||||||
case EASE_OUT -> {
|
case EASE_OUT -> {
|
||||||
// Left triangle
|
// Left triangle
|
||||||
drawList.addTriangleFilled(x - KEYFRAME_SIZE, y, x - easeSize, y - KEYFRAME_SIZE, x - easeSize, y + KEYFRAME_SIZE, colour);
|
drawList.addTriangleFilled(x - keyframeSize, y, x - easeSize, y - keyframeSize, x - easeSize, y + keyframeSize, colour);
|
||||||
// Right inverted triangle
|
// Right inverted triangle
|
||||||
drawList.addTriangleFilled(x + KEYFRAME_SIZE, y - KEYFRAME_SIZE, x + easeSize, y, x + easeSize, y - KEYFRAME_SIZE, colour);
|
drawList.addTriangleFilled(x + keyframeSize, y - keyframeSize, x + easeSize, y, x + easeSize, y - keyframeSize, colour);
|
||||||
drawList.addTriangleFilled(x + KEYFRAME_SIZE, y + KEYFRAME_SIZE, x + easeSize, y + KEYFRAME_SIZE, x + easeSize, y, colour);
|
drawList.addTriangleFilled(x + keyframeSize, y + keyframeSize, x + easeSize, y + keyframeSize, x + easeSize, y, colour);
|
||||||
// Center
|
// Center
|
||||||
drawList.addRectFilled(x - easeSize, y - KEYFRAME_SIZE, x + easeSize, y + KEYFRAME_SIZE, colour);
|
drawList.addRectFilled(x - easeSize, y - keyframeSize, x + easeSize, y + keyframeSize, colour);
|
||||||
}
|
}
|
||||||
case EASE_IN_OUT -> {
|
case EASE_IN_OUT -> {
|
||||||
// Left inverted triangle
|
// Left inverted triangle
|
||||||
drawList.addTriangleFilled(x - KEYFRAME_SIZE, y - KEYFRAME_SIZE, x - easeSize, y - KEYFRAME_SIZE, x - easeSize, y, colour);
|
drawList.addTriangleFilled(x - keyframeSize, y - keyframeSize, x - easeSize, y - keyframeSize, x - easeSize, y, colour);
|
||||||
drawList.addTriangleFilled(x - KEYFRAME_SIZE, y + KEYFRAME_SIZE, x - easeSize, y, x - easeSize, y + KEYFRAME_SIZE, colour);
|
drawList.addTriangleFilled(x - keyframeSize, y + keyframeSize, x - easeSize, y, x - easeSize, y + keyframeSize, colour);
|
||||||
// Right inverted triangle
|
// Right inverted triangle
|
||||||
drawList.addTriangleFilled(x + KEYFRAME_SIZE, y - KEYFRAME_SIZE, x + easeSize, y, x + easeSize, y - KEYFRAME_SIZE, colour);
|
drawList.addTriangleFilled(x + keyframeSize, y - keyframeSize, x + easeSize, y, x + easeSize, y - keyframeSize, colour);
|
||||||
drawList.addTriangleFilled(x + KEYFRAME_SIZE, y + KEYFRAME_SIZE, x + easeSize, y + KEYFRAME_SIZE, x + easeSize, y, colour);
|
drawList.addTriangleFilled(x + keyframeSize, y + keyframeSize, x + easeSize, y + keyframeSize, x + easeSize, y, colour);
|
||||||
// Center
|
// Center
|
||||||
drawList.addRectFilled(x - easeSize, y - KEYFRAME_SIZE, x + easeSize, y + KEYFRAME_SIZE, colour);
|
drawList.addRectFilled(x - easeSize, y - keyframeSize, x + easeSize, y + keyframeSize, colour);
|
||||||
}
|
}
|
||||||
case HOLD -> {
|
case HOLD -> {
|
||||||
drawList.addRectFilled(x - KEYFRAME_SIZE, y - KEYFRAME_SIZE, x + KEYFRAME_SIZE, y + KEYFRAME_SIZE, colour);
|
drawList.addRectFilled(x - keyframeSize, y - keyframeSize, x + keyframeSize, y + keyframeSize, colour);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1966,8 +1971,9 @@ public class TimelineWindow {
|
|||||||
colour = 0x80FFFFFF;
|
colour = 0x80FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
drawList.addTriangleFilled(x + cursorX, y + middleY, x + cursorX -10, y + timestampHeight +5,
|
int size = ReplayUI.scaleUi(5);
|
||||||
x + cursorX +10, y + timestampHeight +5, colour);
|
drawList.addTriangleFilled(x + cursorX, y + middleY, x + cursorX - size*2, y + timestampHeight + size,
|
||||||
|
x + cursorX + size*2, y + timestampHeight + size, colour);
|
||||||
drawList.addRectFilled(x + cursorX -1, y + middleY -2, x + cursorX +1, y + height - zoomBarHeight, colour);
|
drawList.addRectFilled(x + cursorX -1, y + middleY -2, x + cursorX +1, y + height - zoomBarHeight, colour);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user