Jump to content
Sign in to follow this  
Pac Man

stringtable.csv

Recommended Posts

I want to set up a stringtable.csv for a button control. How does stringTable.csv work / impliment? I've exhausted my attempts to make it show what's in the stringtable.

stringtable.csv

language,	"english"
QN_dialog_btn_help,	 "Help"

button control

class QN_btn_help: RscButton
{
idc = 1605;
text = $STR_QN_dialog_btn_help;
x = 0.254943 * safezoneW + safezoneX;
y = 0.6092 * safezoneH + safezoneY;
w = 0.053967 * safezoneW;
h = 0.028 * safezoneH;
};

Share this post


Link to post
Share on other sites

Personally, I prefer the stringtable.xml (example in that wiki article) - it's easier to setup and in my eyes easier to read.

The use is actually pretty easy. You define a string as shown in the wiki example and in the SQF script, you simply call it by localize "My_Stringtable_String" where "My_Stringtable_String" is the ID for the string you want to show there.

Regards,

waltenberg aka Johnny

Edited by waltenberg

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×