Frictional Games Forum (read-only)
void SetMessage(string& asTextCategory, string& asTextEntry, float afTime); - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: void SetMessage(string& asTextCategory, string& asTextEntry, float afTime); (/thread-16507.html)



void SetMessage(string& asTextCategory, string& asTextEntry, float afTime); - Jagsrs28 - 06-26-2012

void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
Displays a message on the screen.

asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length.

Now, when it says "the category in the .lang file" what do I name the category? Can I name it anything I want?
Also, when it says "the entry in the .lang file" what do I name the entry? Can I name it anything I want? (I think I can)




Thank You


RE: void SetMessage(string& asTextCategory, string& asTextEntry, float afTime); - GoranGaming - 06-26-2012

Yes, you can name the category file whatever you want, I suggest you should name it "Messages". You can also name the entry whatever you want! Smile Hope I helped


RE: void SetMessage(string& asTextCategory, string& asTextEntry, float afTime); - MaZiCUT - 06-26-2012

asTextCategory - // aka "Messages" "Descriptions" "Inventory" and so on. Basicly categories in the .lang file.
asTextEntry - the entry in the .lang file // entry name, for example Category: Inventory Entry name: >"Key_1"<
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length. // TIME: HOW MUCH TIME THIS MESSAGE OF YOURS WILL BE DISPLAYED


RE: void SetMessage(string& asTextCategory, string& asTextEntry, float afTime); - Jagsrs28 - 06-26-2012

(06-26-2012, 02:22 PM)CrazyArts Wrote: asTextCategory - // aka "Messages" "Descriptions" "Inventory" and so on. Basicly categories in the .lang file.
asTextEntry - the entry in the .lang file // entry name, for example Category: Inventory Entry name: >"Key_1"<
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length. // TIME: HOW MUCH TIME THIS MESSAGE OF YOURS WILL BE DISPLAYED



I already knew that lol... I have it all documented into my computer. Its much easier to find things that way.