Răsfoiți Sursa

provides a general Playgui_onWake callback for modules
any module with a modulename::Playgui_onWake now has the capacity to layer thier gui elements on playgui

AzaezelX 4 ani în urmă
părinte
comite
27a35ff104
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      Templates/BaseGame/game/data/gameUI/GUIs/playGui.cs

+ 2 - 0
Templates/BaseGame/game/data/gameUI/GUIs/playGui.cs

@@ -49,6 +49,8 @@ function PlayGui::onWake(%this)
       schedule(0, 0, "refreshCenterTextCtrl");
    if ( isFunction( "refreshBottomTextCtrl" ) )
       schedule(0, 0, "refreshBottomTextCtrl");
+      
+   callOnModules("Playgui_onWake");
 }
 
 function PlayGui::onSleep(%this)