[Orxonox-commit 3236] r7927 - code/branches/usability/data/gui/scripts
landauf at orxonox.net
landauf at orxonox.net
Sun Feb 20 03:31:35 CET 2011
Author: landauf
Date: 2011-02-20 03:31:35 +0100 (Sun, 20 Feb 2011)
New Revision: 7927
Modified:
code/branches/usability/data/gui/scripts/GUISheet.lua
code/branches/usability/data/gui/scripts/NotificationLayer.lua
code/branches/usability/data/gui/scripts/SheetManager.lua
Log:
renamed afterHide()/onAfterHide() as quit()/onQuit() as this seems to fit the purpose better
Modified: code/branches/usability/data/gui/scripts/GUISheet.lua
===================================================================
--- code/branches/usability/data/gui/scripts/GUISheet.lua 2011-02-20 02:24:55 UTC (rev 7926)
+++ code/branches/usability/data/gui/scripts/GUISheet.lua 2011-02-20 02:31:35 UTC (rev 7927)
@@ -23,8 +23,8 @@
function P:onHide()
end
--- Override this function if you need to do work just after the sheet has been hidden
-function P:onAfterHide()
+-- Override this function if you need to do work on quit
+function P:onQuit()
end
-- show function for the GUI
@@ -48,13 +48,13 @@
self:onHide()
end
-function P:afterHide()
+function P:quit()
-- reset the selected button
if self.buttons then
self:resetSelection()
end
- self:onAfterHide()
+ self:onQuit()
end
function P:load()
Modified: code/branches/usability/data/gui/scripts/NotificationLayer.lua
===================================================================
--- code/branches/usability/data/gui/scripts/NotificationLayer.lua 2011-02-20 02:24:55 UTC (rev 7926)
+++ code/branches/usability/data/gui/scripts/NotificationLayer.lua 2011-02-20 02:31:35 UTC (rev 7927)
@@ -332,7 +332,7 @@
end
-- Is called after the sheet has been hidden.
-function P.onAfterHide()
+function P.onQuit()
-- If we leave the edit mode we show the sheet again.
if P.editMode then
P.leaveEditMode()
Modified: code/branches/usability/data/gui/scripts/SheetManager.lua
===================================================================
--- code/branches/usability/data/gui/scripts/SheetManager.lua 2011-02-20 02:24:55 UTC (rev 7926)
+++ code/branches/usability/data/gui/scripts/SheetManager.lua 2011-02-20 02:31:35 UTC (rev 7927)
@@ -206,7 +206,7 @@
hideCursor()
end
- sheetTuple.sheet:afterHide()
+ sheetTuple.sheet:quit()
end
-- Hides all menu GUI sheets
More information about the Orxonox-commit
mailing list