Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Stray black box on the 'Edit DMap' window

0 replies · 3,203 views · Started 24 February 2024

There is a stray black box on the "Edit DMap" window.

Steps to recreate:

[LIST=1]
[*]Quest->DMaps
[*]Click 'Edit' in the "Select DMap" window
[*]Make sure "Type:" is set to "Overworld"
[*]Observe black box immediately above the "Continue here" checkbox label
[/LIST]

Upon closer inspection, it appears to be the horizontal scrollbar which is only scrollable when "Type:" is set to:

  • NES Dungeon
  • Interior
  • BS Overworld

This is the code snippet that creates that slider:


dmap_slider = Slider(
colSpan = 2, fitParent = true,
disabled = !sm_dmap(local_dmap.type),
offset = local_dmap.xoff,
maxheight = 16_px,
minOffset = -7, maxOffset = 15,
onValChangedFunc = [&](int32_t offset)
{
local_dmap.xoff = offset;
dmap_mmap->setOffset(offset);
}),

which is declared in edit_dmap.h:


std::shared_ptr<GUI::Slider> dmap_slider;