Sarjuuk / aowow

Database viewer for TrinityCore based on aowow by @LordJZ, based on the JS-Engine of Wowhead
204 stars 217 forks source link

Not a bug, just a question about the SmartAI dropdown menu #412

Closed Thor1423 closed 6 months ago

Thor1423 commented 6 months ago

Is there a way to hide or remove the SmartAI window? Since many custom NPCS story elements contain elements, I don't want you to read through them beforehand

Screenshot 2024-05-12 095748

Sarjuuk commented 6 months ago

deleting or commenting these blocks here removes them for this page. https://github.com/Sarjuuk/aowow/blob/c87178c7919c268f5f26d88f847ec49658024ac3/pages/npc.php#L376-L395 https://github.com/Sarjuuk/aowow/blob/c87178c7919c268f5f26d88f847ec49658024ac3/pages/object.php#L248-L267

alternatvely if you just want the toggle to start closed, edit: https://github.com/Sarjuuk/aowow/blob/c87178c7919c268f5f26d88f847ec49658024ac3/includes/smartAI.class.php#L447

-        $return = '[style]#text-generic .grid { clear:left; } #text-generic .tabbed-contents { padding:0px; clear:left; }[/style][pad][h3][toggler id=sai]SmartAI'.(!empty($this->miscData['title']) ? $this->miscData['title'] : null).'[/toggler][/h3][div id=sai clear=left]%s[/div]';
+        $return = '[style]#text-generic .grid { clear:left; } #text-generic .tabbed-contents { padding:0px; clear:left; }[/style][pad][h3][toggler=hidden id=sai]SmartAI'.(!empty($this->miscData['title']) ? $this->miscData['title'] : null).'[/toggler][/h3][div=hidden id=sai clear=left]%s[/div]';
Thor1423 commented 6 months ago

thank you :-)