Main Index : Reference :
class GeResource
{
public:
GeResource([Filename] path);
[string] GetString([int] id);
}
This class is used for accessing resource files on the harddrive, for example to load dialog resources or to access string tables.
GeResource([Filename] path);
Constructor. The filename path must point to the root directory of the plugin's folder. A good way to get this path is to use the GeGetRootFilename()
function:
var root = GeGetRootFileName();
root->RemoveLast(); // Remove the plugin name
var resource = new(GeResource, root);
[string] GetString([int] id);
Returns the string with the id id
from the file c4d_strings.str
in one of the strings_xx
folders. Depending on the language selected by the user you will automatically get the correct string, provided that the language is available in the resource. Otherwise you will get the english resource strings. If there is no english resource, you will get any language.