Tutorial Coding Epic GauntletUI Tutorial (Custom Buttons and UIs)

Users who are viewing this thread

It currently isn't possible to modify the GauntletUI without Harmony. UIExtenderLib simplifies the use of Harmony patches so it is used in this tutorial. The goal of this guide is to help people create custom buttons and UI elements, so granular details of how it works (Such as the contributions of GameStateScreenManager) aren't covered.
 
It currently isn't possible to modify the GauntletUI without Harmony. UIExtenderLib simplifies the use of Harmony patches so it is used in this tutorial. The goal of this guide is to help people create custom buttons and UI elements, so granular details of how it works (Such as the contributions of GameStateScreenManager) aren't covered.
Where would I be able to find those granular details???
 
Hi @samdomino
Thank you for this tutorial! It is very informative.

I did notice something interesting on page 13 in the code for the OnDeactivate function:

this.OnDeactivate();
this.RemoveLayer((ScreenLayer) this._gauntletLayer);
this._gauntletLayer.IsFocusLayer = false;
ScreenManager.TryLoseFocus((ScreenLayer) this._gauntletLayer);

If I'm not mistaken, would this not result in an infinite loop? Shouldn't it be base.OnDeactivate() instead of this.OnDeactivate()?
 
Back
Top Bottom