forked from Mirrors/openclonk
Fix HUD Adapter recreation on section change
parent
37bf5d3bb8
commit
31febf7a40
|
@ -16,7 +16,14 @@
|
||||||
|
|
||||||
local HUDselector, HUDcontroller;
|
local HUDselector, HUDcontroller;
|
||||||
|
|
||||||
public func SetSelector(object sel) { HUDselector = sel; }
|
public func SetSelector(object sel)
|
||||||
|
{
|
||||||
|
HUDselector = sel;
|
||||||
|
// Ensure controller is set if it was created after creation of this clonk (e.g. after section change)
|
||||||
|
if (!HUDcontroller) HUDcontroller = FindObject(Find_ID(GUI_Controller), Find_Owner(GetOwner()));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public func GetSelector() { return HUDselector; }
|
public func GetSelector() { return HUDselector; }
|
||||||
|
|
||||||
public func HUDAdapter()
|
public func HUDAdapter()
|
||||||
|
|
Loading…
Reference in New Issue