Skip to content

Commit

Permalink
moved buttons around for #7
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboy8625 committed Jan 17, 2024
1 parent 4b5ca5d commit ee458fd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -280,18 +280,18 @@ pub fn main() !void {
};
button_y += button_play.height();

var button_plus_frame = gui.Button{
.text = "Plus",
.position = .{ .x = 0, .y = button_y },
.texture = textures.get(.Plus),
};

var button_minus_frame = gui.Button{
.text = "Minus",
.position = .{ .x = button_plus_frame.width(), .y = button_y },
.position = .{ .x = 0, .y = button_y },
.texture = textures.get(.Minus),
};

var button_plus_frame = gui.Button{
.text = "Plus",
.position = .{ .x = button_minus_frame.width(), .y = button_y },
.texture = textures.get(.Plus),
};

button_y += button_plus_frame.height();

const colors = [_]ray.Color{ ray.BLACK, ray.DARKGRAY, ray.GRAY, ray.DARKBLUE, ray.MAGENTA, ray.YELLOW, ray.WHITE, ray.BLUE, ray.RED, ray.GREEN };
Expand Down

0 comments on commit ee458fd

Please sign in to comment.