public void Berecne()
        {
            var uiElementBase = EWarElementAst?.AsUIElementIfVisible();

            if (uiElementBase == null)
            {
                return;
            }

            EWarButtonAst = EWarElementAst;

            IconAst =
                EWarElementAst?.FirstMatchingNodeFromSubtreeBreadthFirst(kandidaat =>
                                                                         (string.Equals("Icon", kandidaat.PyObjTypName, StringComparison.InvariantCultureIgnoreCase) ||
                                                                          string.Equals("EveIcon", kandidaat.PyObjTypName, StringComparison.InvariantCultureIgnoreCase)),
                                                                         3, 1);

            if (!(IconAst?.VisibleIncludingInheritance ?? false))
            {
                return;                 //	Annaame diise EWar Anzaige isc nit aktiiv.
            }
            var EWarTypeString = EWarElementAst?.Name;

            this.Ergeebnis = new ShipUiEWarElement(uiElementBase)
            {
                EWarType    = EWarTypeString,
                IconTexture = IconAst?.TextureIdent0?.AsObjectIdInMemory(),
            };
        }
Example #2
0
 static public BotEngine.EveOnline.Interface.MemoryStruct.ShipUiEWarElement AsOld(
     this ShipUiEWarElement ewarElement) =>
 ewarElement == null ? null :
 new BotEngine.EveOnline.Interface.MemoryStruct.ShipUiEWarElement
 {
     EWarType    = ewarElement.EWarType,
     IconTexture = ewarElement.IconTexture.AsOld(),
 };