Toggle search
Search
Toggle menu
Toggle personal menu
Editing
Template:BuildingsNavNext/doc
Template page
Read
Edit source
View history
Template
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Description == This navbox goal is to mimick the game build UI in what categories and items are shown. == Dev notes == * Game orders category just by declaring them in order in data.categories * Order within a category seems to be done with some "id" of who registered first? Not implemented here. ** (but if we need that, maybe it's enough to just add an ordering field with the same logic as the one for filter categories.) * In game code, BuildView.lua is where most of the stuff happens * Game filters entities by: ** only stuff that is unlocked by faction ** `if not frame_def.construction_recipe then return end -- not a building` -> This one matches our `entity.recipeType != Construction` in the sub template (BuildingsNavCat) ** `if not bp_frame_def and not def.visual then return end -- no default visual` -> Extract code already skips this
Summary:
Please note that all contributions to Desynced Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Desynced Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)