Skip to content

Commit

Permalink
AURORA: Add possibility to not hide parent gui while "subbing"
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Dec 23, 2017
1 parent f886943 commit b1ec811
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/engines/aurora/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,23 @@ uint32 GUI::sub(GUI &gui, uint32 startCode, bool showSelf) {
// Show the sub GUI
if (startCode == 0)
gui.show();
hide();

if (showSelf)
hide();

GfxMan.unlockFrame();

// Move the gui a bit behind the sub gui
float x, y, z;
getPosition(x, y, z);
setPosition(x, y, z + 100.0f);

// Run the sub GUI
uint32 code = gui.run(startCode);

// Reset the position
setPosition(x, y, z);

GfxMan.lockFrame();

// Hide the sub GUI
Expand Down

0 comments on commit b1ec811

Please sign in to comment.