Skip to content

Commit b140f83

Browse files
committed
Compatibility with redscript 1
1 parent 8b7db57 commit b140f83

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

scripts/UI/Core/inkCustomController.reds

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ public abstract class inkCustomController extends inkLogicController {
8888
this.m_gameController = gameController;
8989
}
9090
91-
protected func SetGameController(parentController: ref<inkCustomController>) {
92-
this.m_gameController = parentController.GetGameController();
93-
}
94-
9591
protected func CreateInstance() {
9692
if !this.m_isCreated {
9793
this.OnCreate();
@@ -133,7 +129,7 @@ public abstract class inkCustomController extends inkLogicController {
133129
customController = childController as inkCustomController;
134130
135131
if IsDefined(customController) {
136-
customController.SetGameController(this);
132+
customController.SetGameController(this.GetGameController());
137133
customController.InitializeInstance();
138134
}
139135
}

scripts/UI/Popups/CustomPopup.reds

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public abstract class CustomPopup extends inkCustomController {
115115
116116
protected cb func OnHidden() {
117117
this.ResetNotificationData();
118-
this.SetGameController(null as inkGameController);
118+
this.SetGameController(null);
119119
this.SetRootWidget(null);
120120
}
121121

0 commit comments

Comments
 (0)