diff options
Diffstat (limited to 'anim/src/root.zig')
| -rw-r--r-- | anim/src/root.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/anim/src/root.zig b/anim/src/root.zig index e289641..7e4206a 100644 --- a/anim/src/root.zig +++ b/anim/src/root.zig @@ -35,6 +35,8 @@ const contexts = @import("context.zig"); pub const Registers = contexts.Registers; pub const Stack = contexts.Stack; pub const Backtrace = contexts.Backtrace; +/// A panel's `Ui` at its box on the stage now (in a dive, on its way out of its window on the map). +pub const panelAt = contexts.at; /// The registers' tag: what an address's ink says. pub const contextLegend = contexts.legend; pub const disasm = @import("disasm.zig"); @@ -275,15 +277,17 @@ pub fn context(s: *anim.Frame, cursor_: Cursor, options: Context.Options) Contex var at = cursor_; at.levels.crossings = options.syscalls; // The map first: while it fills the frame or falls to the minimap it is under the panels diving out of it. - const whole = s.new(map.Map{ .stage = Stage.init(s, map.split(at.rec, options.split.band.h > 0)), .frame = stage, .t = s.value(map.diving.land + map.diving.still), .cursor = at }); + const whole = s.new(map.Map{ .stage = Stage.init(s, map.split(at.rec, options.split.band.h > 0, .{ at.first, at.last })), .frame = stage, .t = s.value(map.diving.land + map.diving.still), .cursor = at }); whole.obj = s.custom(whole, .{ .x = -640, .y = -360, .scale = ui.scale }); whole.add(s, Source{ .cursor = at, .stage = whole.stage, .descent = options.descent }); + whole.add(s, Source{ .cursor = at, .stage = whole.stage, .descent = options.descent, .part = .source_more }); if (options.descent) whole.add(s, Descent{ .cursor = at, .stage = whole.stage }) else whole.add(s, Disasm{ .cursor = at, .stage = whole.stage }); whole.add(s, Registers{ .cursor = at, .stage = whole.stage, .syscalls = options.syscalls, .quiet = options.quiet }); whole.add(s, Stack{ .cursor = at, .stage = whole.stage, .above = theme.map.stack_above }); // The stack goes on in the rest of the memory's column, from where its own column ends. whole.add(s, Stack{ .cursor = at, .stage = whole.stage, .above = theme.map.stack_above - @as(i32, @intCast(theme.layout.rowsIn(whole.stage.first.stack.h))), .part = .more }); whole.add(s, Backtrace{ .cursor = at, .stage = whole.stage }); + whole.add(s, map.Spare{ .cursor = at, .stage = whole.stage, .map = whole }); return .{ .stage = stage, .map = whole, |
