Browse Source

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 năm trước cách đây
mục cha
commit
27a35ff104
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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)