So I am working on adding new materials to base building 1.3. I have everything done save for the layout. What I want to do is only display the materials needed to build the object being viewed (done), and I want to use the five locations currently used for tank traps, wire kits, sand bags, scrap metal and grenades when I do so.
The problem arises when I want to show an image for the material, its name, and the tooltip. All of these are listed as class properties within the hpp. Is there a way to change these things dynamically...during the call to the class perhaps? I'm just not familiar with .hpp files, so I really don't know how to interact with them. I also am not sure if each class uses a constructor like in other languages for me to pass arguments to.
Here is an example class:
Any help will be greatly appreciated!
The problem arises when I want to show an image for the material, its name, and the tooltip. All of these are listed as class properties within the hpp. Is there a way to change these things dynamically...during the call to the class perhaps? I'm just not familiar with .hpp files, so I really don't know how to interact with them. I also am not sure if each class uses a constructor like in other languages for me to pass arguments to.
Here is an example class:
Code:
class GrenadeImage: RscPicture
{
idc = 1206;
text = "\CA\weapons\data\equip\m_M67_CA.paa";
//text = "buildRecipeBook\images\grenade.paa";
x = 0.313086 * safezoneW + safezoneX;
y = 0.610021 * safezoneH + safezoneY;
w = 0.019375 * safezoneW;
h = 0.0315319 * safezoneH;
tooltip = "Grenades";
};
Any help will be greatly appreciated!