mirror of https://github.com/stella-emu/stella.git
UA added to randomized startup bank types
This commit is contained in:
parent
a14fa6a3ea
commit
cdd4b4bf39
|
@ -44,6 +44,7 @@ RamWidget::RamWidget(GuiObject* boss, const GUI::Font& lfont, const GUI::Font& n
|
||||||
{
|
{
|
||||||
const int bwidth = lfont.getStringWidth("Compare "),
|
const int bwidth = lfont.getStringWidth("Compare "),
|
||||||
bheight = myLineHeight + 2;
|
bheight = myLineHeight + 2;
|
||||||
|
const int VGAP = 4;
|
||||||
|
|
||||||
int ypos = y + myLineHeight;
|
int ypos = y + myLineHeight;
|
||||||
|
|
||||||
|
@ -63,22 +64,22 @@ RamWidget::RamWidget(GuiObject* boss, const GUI::Font& lfont, const GUI::Font& n
|
||||||
"Undo", kUndoCmd);
|
"Undo", kUndoCmd);
|
||||||
myUndoButton->setTarget(this);
|
myUndoButton->setTarget(this);
|
||||||
|
|
||||||
by += bheight + 4;
|
by += bheight + VGAP;
|
||||||
myRevertButton = new ButtonWidget(boss, lfont, bx, by, bwidth, bheight,
|
myRevertButton = new ButtonWidget(boss, lfont, bx, by, bwidth, bheight,
|
||||||
"Revert", kRevertCmd);
|
"Revert", kRevertCmd);
|
||||||
myRevertButton->setTarget(this);
|
myRevertButton->setTarget(this);
|
||||||
|
|
||||||
by += bheight + 4 * 3;
|
by += bheight + VGAP * 6;
|
||||||
mySearchButton = new ButtonWidget(boss, lfont, bx, by, bwidth, bheight,
|
mySearchButton = new ButtonWidget(boss, lfont, bx, by, bwidth, bheight,
|
||||||
"Search", kSearchCmd);
|
"Search", kSearchCmd);
|
||||||
mySearchButton->setTarget(this);
|
mySearchButton->setTarget(this);
|
||||||
|
|
||||||
by += bheight + 4;
|
by += bheight + VGAP;
|
||||||
myCompareButton = new ButtonWidget(boss, lfont, bx, by, bwidth, bheight,
|
myCompareButton = new ButtonWidget(boss, lfont, bx, by, bwidth, bheight,
|
||||||
"Compare", kCmpCmd);
|
"Compare", kCmpCmd);
|
||||||
myCompareButton->setTarget(this);
|
myCompareButton->setTarget(this);
|
||||||
|
|
||||||
by += bheight + 4;
|
by += bheight + VGAP;
|
||||||
myRestartButton = new ButtonWidget(boss, lfont, bx, by, bwidth, bheight,
|
myRestartButton = new ButtonWidget(boss, lfont, bx, by, bwidth, bheight,
|
||||||
"Reset", kRestartCmd);
|
"Reset", kRestartCmd);
|
||||||
myRestartButton->setTarget(this);
|
myRestartButton->setTarget(this);
|
||||||
|
|
|
@ -35,6 +35,9 @@ CartridgeUA::CartridgeUA(const BytePtr& image, uInt32 size,
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void CartridgeUA::reset()
|
void CartridgeUA::reset()
|
||||||
{
|
{
|
||||||
|
// define startup bank
|
||||||
|
randomizeStartBank();
|
||||||
|
|
||||||
// Upon reset we switch to the startup bank
|
// Upon reset we switch to the startup bank
|
||||||
bank(myStartBank);
|
bank(myStartBank);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue