فهرست منبع

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 سال پیش
والد
کامیت
27a35ff104
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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");
       schedule(0, 0, "refreshCenterTextCtrl");
    if ( isFunction( "refreshBottomTextCtrl" ) )
    if ( isFunction( "refreshBottomTextCtrl" ) )
       schedule(0, 0, "refreshBottomTextCtrl");
       schedule(0, 0, "refreshBottomTextCtrl");
+      
+   callOnModules("Playgui_onWake");
 }
 }
 
 
 function PlayGui::onSleep(%this)
 function PlayGui::onSleep(%this)