Select Building Behind - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

CompProperties_SelectBuildingBehind adds a command button to the Building that allows the player to deselect it and select another building that is in the same tile. This is also done in the game by clicking in the same spot several times, so this class is mostly cosmetic. You can set via XML the button's graphic, text and description.

        public string buildingToSelect;
        public string commandButtonImage = "";
        public string commandButtonText = "";
        public string commandButtonDesc = "";

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example, we use it with Vanilla Furniture Expanded - Art's holograms, where a button appears on hologram to select the underneath hologram base.

<comps>
	<li Class="VEF.Buildings.CompProperties_SelectBuildingBehind">
		<buildingToSelect>HologramBase</buildingToSelect>
		<commandButtonImage>Buildings/Art/Hologram_Off</commandButtonImage>
		<commandButtonText>VFEArt_SelectHologramText</commandButtonText>
		<commandButtonDesc>VFEArt_SelectHologramDesc</commandButtonDesc>

	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️