Changed: Use MCHAR and _M macros for 3dsmax SDK strings

This commit is contained in:
kervala 2016-12-02 17:20:25 +01:00
parent 0fb1fa5cc0
commit bb9cec5372
19 changed files with 125 additions and 125 deletions

View file

@ -105,11 +105,11 @@ class CNelExportClassDesc:public ClassDesc2
public: public:
int IsPublic() {return 1;} int IsPublic() {return 1;}
void * Create(BOOL loading = FALSE); void * Create(BOOL loading = FALSE);
const TCHAR * ClassName() {return _T("NeL Export");} const MCHAR * ClassName() {return _M("NeL Export");}
SClass_ID SuperClassID() {return UTILITY_CLASS_ID;} SClass_ID SuperClassID() {return UTILITY_CLASS_ID;}
Class_ID ClassID() {return CNELEXPORT_CLASS_ID;} Class_ID ClassID() {return CNELEXPORT_CLASS_ID;}
const TCHAR* Category() {return _T("NeL Tools");} const MCHAR* Category() {return _M("NeL Tools");}
const TCHAR* InternalName() { return _T("NeL export and view"); } // returns fixed parsable name (scripter-visible name) const MCHAR* InternalName() { return _M("NeL export and view"); } // returns fixed parsable name (scripter-visible name)
HINSTANCE HInstance() { return hInstance; } // returns owning module handle HINSTANCE HInstance() { return hInstance; } // returns owning module handle
}; };

View file

@ -90,13 +90,13 @@ class addSubLodNodeHitCallBack : public HitByNameDlgCallback
public: public:
INodeTab NodeTab; INodeTab NodeTab;
private: private:
virtual TCHAR *dialogTitle() virtual const MCHAR *dialogTitle()
{ {
return "Select sub lod objects to add"; return _M("Select sub lod objects to add");
} }
virtual TCHAR *buttonText() virtual const MCHAR *buttonText()
{ {
return "Add"; return _M("Add");
} }
virtual BOOL singleSelect() virtual BOOL singleSelect()
{ {

View file

@ -63,11 +63,11 @@ def_visible_primitive ( set_file_modification_date, "NeLSetFileModificationDate
def_visible_primitive ( force_quit_on_msg_displayer, "NelForceQuitOnMsgDisplayer"); def_visible_primitive ( force_quit_on_msg_displayer, "NelForceQuitOnMsgDisplayer");
def_visible_primitive ( force_quit_right_now, "NelForceQuitRightNow"); def_visible_primitive ( force_quit_right_now, "NelForceQuitRightNow");
char *sExportShapeErrorMsg = "NeLExportShape [Object] [Filename.shape]"; MCHAR *sExportShapeErrorMsg = _M("NeLExportShape [Object] [Filename.shape]");
char *sExportShapeExErrorMsg = "NeLExportShapeEx [Object] [Filename.shape] [bShadow] [bExportLighting] [sLightmapPath] [nLightingLimit] [fLumelSize] [nOverSampling] [bExcludeNonSelected] [bShowLumel]"; MCHAR *sExportShapeExErrorMsg = _M("NeLExportShapeEx [Object] [Filename.shape] [bShadow] [bExportLighting] [sLightmapPath] [nLightingLimit] [fLumelSize] [nOverSampling] [bExcludeNonSelected] [bShowLumel]");
char *sExportAnimationErrorMsg = "NelExportAnimation [node array] [Filename.anim] [bool_scene_animation]"; MCHAR *sExportAnimationErrorMsg = _M("NelExportAnimation [node array] [Filename.anim] [bool_scene_animation]");
char *sExportCollisionErrorMsg = "NelExportCollision [node array] [output directory]"; MCHAR *sExportCollisionErrorMsg = _M("NelExportCollision [node array] [output directory]");
char *sExportPACSPrimitivesErrorMsg = "NelExportPACSPrimitves [node array] [output filename]"; MCHAR *sExportPACSPrimitivesErrorMsg = _M("NelExportPACSPrimitves [node array] [output filename]");
extern CExportNelOptions theExportSceneStruct; extern CExportNelOptions theExportSceneStruct;
@ -207,8 +207,8 @@ Value* export_skeleton_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check (arg_list[0], MAXNode, "NelExportSkeleton [root node] [Filename]"); type_check (arg_list[0], MAXNode, _M("NelExportSkeleton [root node] [Filename]"));
type_check (arg_list[1], String, "NelExportSkeleton [root node] [Filename]"); type_check (arg_list[1], String, _M("NelExportSkeleton [root node] [Filename]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;
@ -298,7 +298,7 @@ Value* export_animation_cf (Value** arg_list, int count)
else else
{ {
// Error message // Error message
mprintf ("Error exporting animation %s in the file\n%s\n", (*vectNode.begin())->GetName(), sPath); mprintf (_M("Error exporting animation %s in the file\n%s\n"), (*vectNode.begin())->GetName(), utf8ToTStr(sPath));
} }
} }
} }
@ -321,8 +321,8 @@ Value* export_ig_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check (arg_list[0], Array, "NelExportInstanceGroup [Object array] [Filename]"); type_check (arg_list[0], Array, _M("NelExportInstanceGroup [Object array] [Filename]"));
type_check (arg_list[1], String, "NelExportInstanceGroup [Object array] [Filename]"); type_check (arg_list[1], String, _M("NelExportInstanceGroup [Object array] [Filename]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;
@ -342,7 +342,7 @@ Value* export_ig_cf (Value** arg_list, int count)
// Check each value in the array // Check each value in the array
uint i; uint i;
for (i=0; i<(uint)array->size; i++) for (i=0; i<(uint)array->size; i++)
type_check (array->get (i+1), MAXNode, "NelExportInstanceGroup [Object array] [Filename]"); type_check (array->get (i+1), MAXNode, _M("NelExportInstanceGroup [Object array] [Filename]"));
// Create a STL array // Create a STL array
if (array->size) if (array->size)
@ -380,8 +380,8 @@ Value* export_skeleton_weight_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check (arg_list[0], Array, "NelExportSkeletonWeight [Object array] [Filename]"); type_check (arg_list[0], Array, _M("NelExportSkeletonWeight [Object array] [Filename]"));
type_check (arg_list[1], String, "NelExportSkeletonWeight [Object array] [Filename]"); type_check (arg_list[1], String, _M("NelExportSkeletonWeight [Object array] [Filename]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;
@ -401,7 +401,7 @@ Value* export_skeleton_weight_cf (Value** arg_list, int count)
// Check each value in the array // Check each value in the array
uint i; uint i;
for (i=0; i<(uint)array->size; i++) for (i=0; i<(uint)array->size; i++)
type_check (array->get (i+1), MAXNode, "NelExportSkeletonWeight [Object array] [Filename]"); type_check (array->get (i+1), MAXNode, _M("NelExportSkeletonWeight [Object array] [Filename]"));
// Create a STL array // Create a STL array
if (array->size) if (array->size)
@ -462,8 +462,8 @@ Value* test_file_date_cf (Value** arg_list, int count)
// Make sure we have the correct number of arguments (2) // Make sure we have the correct number of arguments (2)
check_arg_count(view_shape, 2, count); check_arg_count(view_shape, 2, count);
type_check (arg_list[0], String, "NeLTestFileDate [DestFilename] [SrcFilename]"); type_check (arg_list[0], String, _M("NeLTestFileDate [DestFilename] [SrcFilename]"));
type_check (arg_list[1], String, "NeLTestFileDate [DestFilename] [SrcFilename]"); type_check (arg_list[1], String, _M("NeLTestFileDate [DestFilename] [SrcFilename]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;
@ -526,7 +526,7 @@ Value* export_vegetable_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
char *message = "NelExportVegetable [node] [filename] [dialog error]"; MCHAR *message = _M("NelExportVegetable [node] [filename] [dialog error]");
type_check (arg_list[0], MAXNode, message); type_check (arg_list[0], MAXNode, message);
type_check (arg_list[1], String, message); type_check (arg_list[1], String, message);
type_check (arg_list[2], Boolean, message); type_check (arg_list[2], Boolean, message);
@ -723,7 +723,7 @@ Value* export_lod_character_cf (Value** arg_list, int count)
check_arg_count(export_lod_character, 3, count); check_arg_count(export_lod_character, 3, count);
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
char *message = "NelExportLodCharacter [node] [filename] [dialog error]"; MCHAR *message = _M("NelExportLodCharacter [node] [filename] [dialog error]");
type_check (arg_list[0], MAXNode, message); type_check (arg_list[0], MAXNode, message);
type_check (arg_list[1], String, message); type_check (arg_list[1], String, message);
type_check (arg_list[2], Boolean, message); type_check (arg_list[2], Boolean, message);
@ -771,7 +771,7 @@ Value* node_properties_cf (Value** arg_list, int count)
check_arg_count(export_lod_character, 2, count); check_arg_count(export_lod_character, 2, count);
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
char *message = "NelNodeProperties [node_array] [dialog error]"; MCHAR *message = _M("NelNodeProperties [node_array] [dialog error]");
//type_check (arg_list[0], MAXNode, message); //type_check (arg_list[0], MAXNode, message);
type_check (arg_list[0], Array, message); type_check (arg_list[0], Array, message);
@ -787,7 +787,7 @@ Value* node_properties_cf (Value** arg_list, int count)
uint i; uint i;
for (i=0; i<(uint)array->size; i++) for (i=0; i<(uint)array->size; i++)
{ {
type_check (array->get (i+1), MAXNode, "NelNodeProperties [node_array] [dialog error]"); type_check (array->get (i+1), MAXNode, _M("NelNodeProperties [node_array] [dialog error]"));
// Add to the array of nodes // Add to the array of nodes
nodes.insert (array->get (i+1)->to_node()); nodes.insert (array->get (i+1)->to_node());
@ -830,7 +830,7 @@ Value* mirror_physique_cf (Value** arg_list, int count)
check_arg_count(NelMirrorPhysique , 3, count); check_arg_count(NelMirrorPhysique , 3, count);
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
char *message = "NelMirrorPhysique [node] [vert_list_in] [threshold]"; MCHAR *message = _M("NelMirrorPhysique [node] [vert_list_in] [threshold]");
//type_check //type_check
type_check (arg_list[0], MAXNode, message); type_check (arg_list[0], MAXNode, message);
@ -873,7 +873,7 @@ Value* get_file_modification_date_cf (Value** arg_list, int count)
check_arg_count(NeLGetFileModificationDate , 1, count); check_arg_count(NeLGetFileModificationDate , 1, count);
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
char *message = "date NeLGetFileModificationDate [filename] - If an error occurred, returns undefined."; MCHAR *message = _M("date NeLGetFileModificationDate [filename] - If an error occurred, returns undefined.");
//type_check //type_check
type_check (arg_list[0], String, message); type_check (arg_list[0], String, message);
@ -911,7 +911,7 @@ Value* set_file_modification_date_cf (Value** arg_list, int count)
check_arg_count(NeLSetFileModificationDate , 2, count); check_arg_count(NeLSetFileModificationDate , 2, count);
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
char *message = "bool NeLSetFileModificationDate [filename] [date] - If an error occurred, returns false."; MCHAR *message = _M("bool NeLSetFileModificationDate [filename] [date] - If an error occurred, returns false.");
//type_check //type_check
type_check (arg_list[0], String, message); type_check (arg_list[0], String, message);

View file

@ -781,8 +781,8 @@ void CExportNel::outputWarningMessage (const std::string &message)
{ {
MessageBox (_Ip->GetMAXHWnd(), utf8ToTStr(message), utf8ToTStr(_ErrorTitle), MB_OK|MB_ICONEXCLAMATION); MessageBox (_Ip->GetMAXHWnd(), utf8ToTStr(message), utf8ToTStr(_ErrorTitle), MB_OK|MB_ICONEXCLAMATION);
} }
mprintf (message); mprintf (utf8ToTStr(message));
mprintf ("\n"); mprintf (_M("\n"));
nlwarning ("Warning in max file %s : ", _Ip->GetCurFilePath()); nlwarning ("Warning in max file %s : ", _Ip->GetCurFilePath());
nlwarning (message.c_str()); nlwarning (message.c_str());

View file

@ -50,7 +50,7 @@ class PO2RPO : public Modifier {
HWND hRollup; HWND hRollup;
// From Animatable // From Animatable
MCHAR *GetObjectName() { return GetString(IDS_CLASS_NAME); } const MCHAR *GetObjectName() { return GetString(IDS_CLASS_NAME); }
//From Modifier //From Modifier
//TODO: Add the channels that the modifier needs to perform its modification //TODO: Add the channels that the modifier needs to perform its modification
@ -115,11 +115,11 @@ class PO2RPOClassDesc:public ClassDesc2 {
return new PO2RPO(); return new PO2RPO();
} }
const TCHAR * ClassName() {return "NeL Convert";} const MCHAR * ClassName() {return _M("NeL Convert");}
SClass_ID SuperClassID() {return OSM_CLASS_ID;} SClass_ID SuperClassID() {return OSM_CLASS_ID;}
Class_ID ClassID() {return PO2RPO_CLASS_ID;} Class_ID ClassID() {return PO2RPO_CLASS_ID;}
const TCHAR* Category() {return "NeL Tools";} const MCHAR* Category() {return _M("NeL Tools");}
const TCHAR* InternalName() { return _T("PatchObjectToNelPatchObject"); } // returns fixed parsable name (scripter-visible name) const MCHAR* InternalName() { return _M("PatchObjectToNelPatchObject"); } // returns fixed parsable name (scripter-visible name)
HINSTANCE HInstance() { return hInstance; } // returns owning module handle HINSTANCE HInstance() { return hInstance; } // returns owning module handle
}; };

View file

@ -157,7 +157,7 @@ def_visible_primitive( set_vertex_pos, "SetRykolVertexPos");
def_visible_primitive( get_vector_pos, "GetRykolVectorPos"); def_visible_primitive( get_vector_pos, "GetRykolVectorPos");
def_visible_primitive( set_vector_pos, "SetRykolVectorPos");*/ def_visible_primitive( set_vector_pos, "SetRykolVectorPos");*/
void errorMessage (const char *msg, const char *title, Interface& it, bool dialog) void errorMessage (const MCHAR *msg, const TCHAR *title, Interface& it, bool dialog)
{ {
// Text or dialog ? // Text or dialog ?
if (dialog) if (dialog)
@ -168,7 +168,8 @@ void errorMessage (const char *msg, const char *title, Interface& it, bool dialo
else else
{ {
// Text message // Text message
mprintf ((string(msg) + "\n").c_str()); mprintf(msg);
mprintf(_M("\n"));
} }
} }
@ -180,7 +181,7 @@ export_zone_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "ExportRykolZone [Object]"); type_check(arg_list[0], MAXNode, _M("ExportRykolZone [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -237,7 +238,7 @@ Value* import_zone_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
char *help = "NeLImportZone filename dialogError"; MCHAR *help = _M("NeLImportZone filename dialogError");
type_check (arg_list[0], String, help); type_check (arg_list[0], String, help);
type_check (arg_list[1], Boolean, help); type_check (arg_list[1], Boolean, help);
@ -287,13 +288,15 @@ Value* import_zone_cf (Value** arg_list, int count)
catch (const Exception& e) catch (const Exception& e)
{ {
// Error message // Error message
errorMessage (("Error when loading file "+filename+": "+e.what()).c_str(), "NeL import zone", *ip, dialog); std::string msg = toString("Error when loading file %s: %s", filename.c_str(), e.what());
errorMessage (utf8ToTStr(msg), _T("NeL import zone"), *ip, dialog);
} }
} }
else else
{ {
// Error message // Error message
errorMessage (("Can't open the file "+filename+" for reading.").c_str(), "NeL import zone", *ip, dialog); std::string msg = toString("Can't open the file %s for reading.", filename.c_str());
errorMessage (utf8ToTStr(msg), _T("NeL import zone"), *ip, dialog);
} }
return ret; return ret;
@ -307,7 +310,7 @@ get_selected_tile_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolSeltile [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolSeltile [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -354,7 +357,7 @@ get_selected_patch_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolSelPatch [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolSelPatch [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -401,7 +404,7 @@ get_selected_vertex_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolSelVertex [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolSelVertex [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -448,7 +451,7 @@ set_tile_mode_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "SetRykolTileMode [Object]"); type_check(arg_list[0], MAXNode, _M("SetRykolTileMode [Object]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;
@ -498,7 +501,7 @@ set_compute_interior_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "RykolComputeInterior [Object]"); type_check(arg_list[0], MAXNode, _M("RykolComputeInterior [Object]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;
@ -546,7 +549,7 @@ set_interior_mode_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "SetRykolInteriorMode [Object]"); type_check(arg_list[0], MAXNode, _M("SetRykolInteriorMode [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -598,7 +601,7 @@ set_vertex_count_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolVertexCount [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolVertexCount [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -638,7 +641,7 @@ set_vector_count_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolVectorCount [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolVectorCount [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -678,7 +681,7 @@ set_vertex_pos_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "SetRykolVertexPos [Object]"); type_check(arg_list[0], MAXNode, _M("SetRykolVertexPos [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -728,7 +731,7 @@ set_vector_pos_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "SetRykolVectorPos [Object]"); type_check(arg_list[0], MAXNode, _M("SetRykolVectorPos [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -778,7 +781,7 @@ get_vertex_pos_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolVertexPos [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolVertexPos [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -822,7 +825,7 @@ get_vector_pos_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolVectorPos [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolVectorPos [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -867,7 +870,7 @@ get_edge_vect1_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolEdgesVect1 [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolEdgesVect1 [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -911,7 +914,7 @@ get_edge_vect2_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolEdgesVect2 [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolEdgesVect2 [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -955,7 +958,7 @@ get_edge_vert1_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolEdgesVert1 [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolEdgesVert1 [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -1000,7 +1003,7 @@ get_edge_vert2_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolEdgesVert2 [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolEdgesVert2 [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -1044,7 +1047,7 @@ get_sel_edge_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "SetRykolSelEdges [Object]"); type_check(arg_list[0], MAXNode, _M("SetRykolSelEdges [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -1092,7 +1095,7 @@ set_steps_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "SetRykolPatchSteps [Object]"); type_check(arg_list[0], MAXNode, _M("SetRykolPatchSteps [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -1155,7 +1158,7 @@ set_tile_steps_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "SetRykoltileSteps [Object]"); type_check(arg_list[0], MAXNode, _M("SetRykoltileSteps [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -1208,7 +1211,7 @@ get_tile_count_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolTileCount [Zone] [PatchNumber]"); type_check(arg_list[0], MAXNode, _M("GetRykolTileCount [Zone] [PatchNumber]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -1265,7 +1268,7 @@ Value* get_patch_vertex_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
char *message="NeLGetPatchVertex [NeLPatchMesh] [PatchId] [VertexId]"; const MCHAR *message= _M("NeLGetPatchVertex [NeLPatchMesh] [PatchId] [VertexId]");
type_check(arg_list[0], MAXNode, message); type_check(arg_list[0], MAXNode, message);
type_check(arg_list[1], Integer, message); type_check(arg_list[1], Integer, message);
type_check(arg_list[2], Integer, message); type_check(arg_list[2], Integer, message);
@ -1336,7 +1339,7 @@ get_patch_count_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "GetRykolPatchCount [Object]"); type_check(arg_list[0], MAXNode, _M("GetRykolPatchCount [Object]"));
//type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]"); //type_check(arg_list[1], Integer, "SetRykolPatchSteps [Object]");
// Get a good interface pointer // Get a good interface pointer
@ -1389,10 +1392,10 @@ get_tile_tile_number_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"); type_check(arg_list[0], MAXNode, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"));
type_check(arg_list[1], Integer, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"); type_check(arg_list[1], Integer, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"));
type_check(arg_list[2], Integer, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"); type_check(arg_list[2], Integer, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"));
type_check(arg_list[3], Integer, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"); type_check(arg_list[3], Integer, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;
@ -1411,7 +1414,7 @@ get_tile_tile_number_cf(Value** arg_list, int count)
uint layer=arg_list[3]->to_int()-1; uint layer=arg_list[3]->to_int()-1;
if (layer>=3) if (layer>=3)
{ {
mprintf ("Error: layer must be 1, 2, or 3\n"); mprintf (_M("Error: layer must be 1, 2, or 3\n"));
} }
else else
{ {
@ -1427,7 +1430,7 @@ get_tile_tile_number_cf(Value** arg_list, int count)
uint nPatch=arg_list[1]->to_int()-1; uint nPatch=arg_list[1]->to_int()-1;
if (nPatch>=tri->rpatch->getUIPatchSize()) if (nPatch>=tri->rpatch->getUIPatchSize())
{ {
mprintf ("Error: patch index is invalid.\n"); mprintf (_M("Error: patch index is invalid.\n"));
} }
else else
{ {
@ -1439,7 +1442,7 @@ get_tile_tile_number_cf(Value** arg_list, int count)
uint tile=arg_list[2]->to_int()-1; uint tile=arg_list[2]->to_int()-1;
if (tile>=nPatchCount) if (tile>=nPatchCount)
{ {
mprintf ("Error: tile index is invalid.\n"); mprintf (_M("Error: tile index is invalid.\n"));
} }
else else
{ {
@ -1475,9 +1478,9 @@ get_tile_noise_number_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]"); type_check(arg_list[0], MAXNode, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]"));
type_check(arg_list[1], Integer, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]"); type_check(arg_list[1], Integer, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]"));
type_check(arg_list[2], Integer, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]"); type_check(arg_list[2], Integer, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;
@ -1504,7 +1507,7 @@ get_tile_noise_number_cf(Value** arg_list, int count)
uint nPatch=arg_list[1]->to_int()-1; uint nPatch=arg_list[1]->to_int()-1;
if (nPatch>=tri->rpatch->getUIPatchSize()) if (nPatch>=tri->rpatch->getUIPatchSize())
{ {
mprintf ("Error: patch index is invalid.\n"); mprintf (_M("Error: patch index is invalid.\n"));
} }
else else
{ {
@ -1516,7 +1519,7 @@ get_tile_noise_number_cf(Value** arg_list, int count)
uint tile=arg_list[2]->to_int()-1; uint tile=arg_list[2]->to_int()-1;
if (tile>=nPatchCount) if (tile>=nPatchCount)
{ {
mprintf ("Error: patch index is invalid.\n"); mprintf (_M("Error: patch index is invalid.\n"));
} }
else else
{ {
@ -1544,10 +1547,10 @@ set_tile_noise_number_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"); type_check(arg_list[0], MAXNode, _M("NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"));
type_check(arg_list[1], Integer, "NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"); type_check(arg_list[1], Integer, _M("NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"));
type_check(arg_list[2], Integer, "NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"); type_check(arg_list[2], Integer, _M("NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"));
type_check(arg_list[3], Integer, "NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"); type_check(arg_list[3], Integer, _M("NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;
@ -1566,7 +1569,7 @@ set_tile_noise_number_cf(Value** arg_list, int count)
uint noise=arg_list[3]->to_int()-1; uint noise=arg_list[3]->to_int()-1;
if (noise>=16) if (noise>=16)
{ {
mprintf ("Error: noise value must be 1~16\n"); mprintf (_M("Error: noise value must be 1~16\n"));
} }
else else
{ {
@ -1582,7 +1585,7 @@ set_tile_noise_number_cf(Value** arg_list, int count)
uint nPatch=arg_list[1]->to_int()-1; uint nPatch=arg_list[1]->to_int()-1;
if (nPatch>=tri->rpatch->getUIPatchSize()) if (nPatch>=tri->rpatch->getUIPatchSize())
{ {
mprintf ("Error: patch index is invalid.\n"); mprintf (_M("Error: patch index is invalid.\n"));
} }
else else
{ {
@ -1594,7 +1597,7 @@ set_tile_noise_number_cf(Value** arg_list, int count)
uint tile=arg_list[2]->to_int()-1; uint tile=arg_list[2]->to_int()-1;
if (tile>=nPatchCount) if (tile>=nPatchCount)
{ {
mprintf ("Error: patch index is invalid.\n"); mprintf (_M("Error: patch index is invalid.\n"));
} }
else else
{ {
@ -1646,13 +1649,13 @@ load_bank_cf(Value** arg_list, int count)
} }
else else
{ {
mprintf ("Error: can't open bank file %s\n", bankName.c_str()); mprintf (_M("Error: can't open bank file %s\n"), bankName.c_str());
} }
} }
catch (const Exception& e) catch (const Exception& e)
{ {
// Error message // Error message
mprintf ("Error: %s\n", e.what()); mprintf (_M("Error: %s\n"), e.what());
} }
} }
@ -1668,7 +1671,7 @@ get_tile_set_cf(Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], Integer, "NelGetTileSet [tileId]"); type_check(arg_list[0], Integer, _M("NelGetTileSet [tileId]"));
// ok ? // ok ?
int nRet=-1; int nRet=-1;
@ -1677,7 +1680,7 @@ get_tile_set_cf(Value** arg_list, int count)
uint tile=arg_list[0]->to_int()-1; uint tile=arg_list[0]->to_int()-1;
if (tile>=(uint)scriptedBank.getTileCount()) if (tile>=(uint)scriptedBank.getTileCount())
{ {
mprintf ("Error: tile number is wrong. (1 ~ %d)\n", scriptedBank.getTileCount()); mprintf (_M("Error: tile number is wrong. (1 ~ %d)\n"), scriptedBank.getTileCount());
} }
else else
{ {
@ -1702,7 +1705,7 @@ Value* set_tile_bank_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], String, "NelSetTileBank [tile bank pathname]"); type_check(arg_list[0], String, _M("NelSetTileBank [tile bank pathname]"));
// ok ? // ok ?
const std::string pathname = tStrToUtf8(arg_list[0]->to_string()); const std::string pathname = tStrToUtf8(arg_list[0]->to_string());
@ -1947,8 +1950,8 @@ attach_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "NeLAttachPatchMesh [RykolPatchMeshSrc] [RykolPatchMeshDest]"); type_check(arg_list[0], MAXNode, _M("NeLAttachPatchMesh [RykolPatchMeshSrc] [RykolPatchMeshDest]"));
type_check(arg_list[1], MAXNode, "NeLAttachPatchMesh [RykolPatchMeshSrc] [RykolPatchMeshDest]"); type_check(arg_list[1], MAXNode, _M("NeLAttachPatchMesh [RykolPatchMeshSrc] [RykolPatchMeshDest]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;
@ -2005,8 +2008,8 @@ weld_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "NeLWeldPatchMesh [RykolPatchMeshSrc] [threshold]"); type_check(arg_list[0], MAXNode, _M("NeLWeldPatchMesh [RykolPatchMeshSrc] [threshold]"));
type_check(arg_list[1], Float, "NeLWeldPatchMesh [RykolPatchMeshSrc] [threshold]"); type_check(arg_list[1], Float, _M("NeLWeldPatchMesh [RykolPatchMeshSrc] [threshold]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;

View file

@ -752,7 +752,7 @@ class EditPatchMod : public Modifier, IPatchOps, IPatchSelect, ISubMtlAPI, Attac
void BeginEditParams( IObjParam *ip, ULONG flags, Animatable *prev ); void BeginEditParams( IObjParam *ip, ULONG flags, Animatable *prev );
void EndEditParams( IObjParam *ip, ULONG flags, Animatable *next ); void EndEditParams( IObjParam *ip, ULONG flags, Animatable *next );
RefTargetHandle Clone(RemapDir& remap = DefaultRemapDir()); RefTargetHandle Clone(RemapDir& remap = DefaultRemapDir());
TCHAR *GetObjectName() { return GetString(IDS_TH_EDITPATCH); } const MCHAR *GetObjectName() { return GetString(IDS_TH_EDITPATCH); }
void ActivateSubobjSel(int level, XFormModes& modes ); void ActivateSubobjSel(int level, XFormModes& modes );
int NeedUseSubselButton() { return 0; } int NeedUseSubselButton() { return 0; }
void SelectSubPatch(int index); void SelectSubPatch(int index);
@ -929,10 +929,10 @@ class EditPatchClassDesc:public ClassDesc {
{ {
return new EditPatchMod; return new EditPatchMod;
} }
const TCHAR * ClassName() { return "NeL Edit"; } const MCHAR * ClassName() { return _M("NeL Edit"); }
SClass_ID SuperClassID() { return OSM_CLASS_ID; } SClass_ID SuperClassID() { return OSM_CLASS_ID; }
Class_ID ClassID() { return Class_ID(0x4dd14a3c, 0x4ac23c0c); } Class_ID ClassID() { return Class_ID(0x4dd14a3c, 0x4ac23c0c); }
const TCHAR* Category() { return "NeL Tools";} const MCHAR* Category() { return _M("NeL Tools");}
void ResetClassParams(BOOL fileReset); void ResetClassParams(BOOL fileReset);
}; };

View file

@ -890,9 +890,9 @@ Value *turn_patch_cf (Value** arg_list, int count)
// Check to see if the arguments match up to what we expect // Check to see if the arguments match up to what we expect
// We want to use 'TurnAllTexturesOn <object to use>' // We want to use 'TurnAllTexturesOn <object to use>'
type_check(arg_list[0], MAXNode, "RykolTurnPatch [Node] [Modifier] [Patch]"); type_check(arg_list[0], MAXNode, _M("RykolTurnPatch [Node] [Modifier] [Patch]"));
type_check(arg_list[1], MAXModifier, "RykolTurnPatch [Node] [Modifier] [Patch]"); type_check(arg_list[1], MAXModifier, _M("RykolTurnPatch [Node] [Modifier] [Patch]"));
type_check(arg_list[2], Integer, "RykolTurnPatch [Node] [Modifier] [Patch]"); type_check(arg_list[2], Integer, _M("RykolTurnPatch [Node] [Modifier] [Patch]"));
// Get a good interface pointer // Get a good interface pointer
Interface *ip = MAXScript_interface; Interface *ip = MAXScript_interface;

View file

@ -276,7 +276,7 @@ void EditPatchMod::SetSelTess(int nU, int nV)
} }
if (holdNeeded) if (holdNeeded)
theHold.Accept("Tile count in U and V change"); theHold.Accept(_M("Tile count in U and V change"));
else else
{ {
ip->DisplayTempPrompt(GetString(IDS_TH_NOPATCHESSEL), PROMPT_TIME); ip->DisplayTempPrompt(GetString(IDS_TH_NOPATCHESSEL), PROMPT_TIME);
@ -453,7 +453,7 @@ void EditPatchMod::setSmoothFlags (bool smooth)
} }
if (holdNeeded) if (holdNeeded)
theHold.Accept("Tile count in U and V change"); theHold.Accept(_M("Tile count in U and V change"));
else else
{ {
ip->DisplayTempPrompt(GetString(IDS_TH_NOPATCHESSEL), PROMPT_TIME); ip->DisplayTempPrompt(GetString(IDS_TH_NOPATCHESSEL), PROMPT_TIME);
@ -589,7 +589,7 @@ void EditPatchMod::BalanceSelPatch ()
} }
if (holdNeeded) if (holdNeeded)
theHold.Accept("Balance tile"); theHold.Accept(_M("Balance tile"));
else else
{ {
ip->DisplayTempPrompt(GetString(IDS_TH_NOPATCHESSEL), PROMPT_TIME); ip->DisplayTempPrompt(GetString(IDS_TH_NOPATCHESSEL), PROMPT_TIME);

View file

@ -167,16 +167,14 @@ void EditPatchMod::BeginEditParams(IObjParam *ip, ULONG flags, Animatable *prev)
if (selLevel == EP_TILE) if (selLevel == EP_TILE)
{ {
hTilePanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_TILE), hTilePanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_TILE), PatchTileDlgProc, _M("Tile Properties"), (LPARAM) this, rsTile ? 0 : APPENDROLL_CLOSED);
PatchTileDlgProc, "Tile Properties", (LPARAM) this, rsTile ? 0 : APPENDROLL_CLOSED);
} }
else else
hTilePanel = NULL; hTilePanel = NULL;
if (selLevel == EP_EDGE) if (selLevel == EP_EDGE)
{ {
hEdgePanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_EDGE), hEdgePanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_EDGE), PatchEdgeDlgProc, _M("Edge Properties"), (LPARAM) this, rsEdge ? 0 : APPENDROLL_CLOSED);
PatchEdgeDlgProc, "Edge Properties", (LPARAM) this, rsEdge ? 0 : APPENDROLL_CLOSED);
} }
else else
hEdgePanel = NULL; hEdgePanel = NULL;
@ -328,7 +326,7 @@ ISubObjType *EditPatchMod::GetSubObjType(int i)
SOT_Vertex.SetName(GetString(IDS_TH_VERTEX)); SOT_Vertex.SetName(GetString(IDS_TH_VERTEX));
SOT_Edge.SetName(GetString(IDS_TH_EDGE)); SOT_Edge.SetName(GetString(IDS_TH_EDGE));
SOT_Patch.SetName(GetString(IDS_TH_PATCH)); SOT_Patch.SetName(GetString(IDS_TH_PATCH));
SOT_Tile.SetName("Tile"); SOT_Tile.SetName(_M("Tile"));
// SOT_Element.SetName(GetString(IDS_TH_ELEMENT)); // SOT_Element.SetName(GetString(IDS_TH_ELEMENT));
// SOT_Handle.SetName(GetString(IDS_TH_HANDLE)); // SOT_Handle.SetName(GetString(IDS_TH_HANDLE));
} }

View file

@ -43,9 +43,9 @@ class RPOClassDesc:public ClassDesc
{ {
return new RPO; return new RPO;
} }
const TCHAR * ClassName() const MCHAR * ClassName()
{ {
return _T("RklPatch"); return _M("RklPatch");
} }
SClass_ID SuperClassID() SClass_ID SuperClassID()
{ {
@ -55,9 +55,9 @@ class RPOClassDesc:public ClassDesc
{ {
return RYKOLPATCHOBJ_CLASS_ID; return RYKOLPATCHOBJ_CLASS_ID;
} }
const TCHAR* Category() const MCHAR* Category()
{ {
return _T("Rykol Tools"); return _M("Rykol Tools");
} }
}; };

View file

@ -83,14 +83,14 @@ class RPO : public PatchObject
int HitTest(TimeValue t, INode* inode, int type, int crossing, int flags, IPoint2 *p, ViewExp *vpt); int HitTest(TimeValue t, INode* inode, int type, int crossing, int flags, IPoint2 *p, ViewExp *vpt);
void Snap(TimeValue t, INode* inode, SnapInfo *snap, IPoint2 *p, ViewExp *vpt); void Snap(TimeValue t, INode* inode, SnapInfo *snap, IPoint2 *p, ViewExp *vpt);
//TODO: Return the name that will appear in the history browser (modifier stack) //TODO: Return the name that will appear in the history browser (modifier stack)
const MCHAR *GetObjectName() { return _T("Rykol Patch Object");} const MCHAR *GetObjectName() { return _M("Rykol Patch Object");}
void GetWorldBoundBox(TimeValue t, INode *mat, ViewExp *vpt, Box3& box ); void GetWorldBoundBox(TimeValue t, INode *mat, ViewExp *vpt, Box3& box );
void GetLocalBoundBox(TimeValue t, INode *mat, ViewExp *vpt, Box3& box ); void GetLocalBoundBox(TimeValue t, INode *mat, ViewExp *vpt, Box3& box );
void GetDeformBBox(TimeValue t, Box3& box, Matrix3 *tm, BOOL useSel ); void GetDeformBBox(TimeValue t, Box3& box, Matrix3 *tm, BOOL useSel );
//TODO: Return the default name of the node when it is created. //TODO: Return the default name of the node when it is created.
void InitNodeName(TSTR& s) { s.FromUTF8("Rykol Patch Object"); } void InitNodeName(TSTR& s) { s = _M("Rykol Patch Object"); }
// From Object // From Object
BOOL HasUVW(); BOOL HasUVW();

View file

@ -482,7 +482,7 @@ class PaintPatchMod : public Modifier
void BeginEditParams( IObjParam *ip, ULONG flags, Animatable *prev ); void BeginEditParams( IObjParam *ip, ULONG flags, Animatable *prev );
void EndEditParams( IObjParam *ip, ULONG flags, Animatable *next ); void EndEditParams( IObjParam *ip, ULONG flags, Animatable *next );
RefTargetHandle Clone(RemapDir& remap = DefaultRemapDir()); RefTargetHandle Clone(RemapDir& remap = DefaultRemapDir());
TCHAR *GetObjectName() { return "NeL Patch Painter"; } const MCHAR *GetObjectName() { return _M("NeL Patch Painter"); }
void RescaleWorldUnits(float f); void RescaleWorldUnits(float f);
@ -500,10 +500,10 @@ class EditPatchClassDesc:public ClassDesc {
{ {
return new PaintPatchMod; return new PaintPatchMod;
} }
const TCHAR * ClassName() { return "NeL Painter"; } const MCHAR * ClassName() { return _M("NeL Painter"); }
SClass_ID SuperClassID() { return OSM_CLASS_ID; } SClass_ID SuperClassID() { return OSM_CLASS_ID; }
Class_ID ClassID() { return Class_ID(0xc49560f, 0x3c3d68e7); } Class_ID ClassID() { return Class_ID(0xc49560f, 0x3c3d68e7); }
const TCHAR* Category() { return "NeL Tools";} const MCHAR* Category() { return _M("NeL Tools");}
void ResetClassParams(BOOL fileReset); void ResetClassParams(BOOL fileReset);
}; };

View file

@ -4034,7 +4034,7 @@ void EPM_PaintCMode::DoPaint ()
patchData->SetFlag(EPD_BEENDONE, TRUE); patchData->SetFlag(EPD_BEENDONE, TRUE);
} }
theHold.Accept("Patch change"); theHold.Accept(_M("Patch change"));
nodes.DisposeTemporary(); nodes.DisposeTemporary();
pobj->ClearPatchDataFlag(mcList, EPD_BEENDONE); pobj->ClearPatchDataFlag(mcList, EPD_BEENDONE);

View file

@ -47,8 +47,7 @@ void PaintPatchMod::BeginEditParams(IObjParam *ip, ULONG flags, Animatable *prev
CreatePatchDataTempData(); CreatePatchDataTempData();
hOpsPanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_OPS), hOpsPanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_OPS), PatchOpsDlgProc, _M("Geometry"), (LPARAM) this, rsOps ? 0 : APPENDROLL_CLOSED);
PatchOpsDlgProc, "Geometry", (LPARAM) this, rsOps ? 0 : APPENDROLL_CLOSED);
// Create sub object editing modes. // Create sub object editing modes.
paintMode = new EPM_PaintCMode(this, ip); paintMode = new EPM_PaintCMode(this, ip);

View file

@ -41,10 +41,10 @@ class VertexPaintClassDesc :public ClassDesc
public: public:
int IsPublic() { return 1; } int IsPublic() { return 1; }
void * Create(BOOL loading = FALSE) { return new VertexPaint(); } void * Create(BOOL loading = FALSE) { return new VertexPaint(); }
const TCHAR * ClassName() { return GetString(IDS_CLASS_NAME); } const MCHAR * ClassName() { return GetString(IDS_CLASS_NAME); }
SClass_ID SuperClassID() { return OSM_CLASS_ID; } SClass_ID SuperClassID() { return OSM_CLASS_ID; }
Class_ID ClassID() { return VERTEX_TREE_PAINT_CLASS_ID; } Class_ID ClassID() { return VERTEX_TREE_PAINT_CLASS_ID; }
const TCHAR* Category() { return GetString(IDS_CATEGORY); } const MCHAR* Category() { return GetString(IDS_CATEGORY); }
void ResetClassParams(BOOL fileReset) {} void ResetClassParams(BOOL fileReset) {}
}; };

View file

@ -131,7 +131,7 @@ public:
void GetClassName(TSTR& s) { s= TSTR(GetString(IDS_CLASS_NAME)); } void GetClassName(TSTR& s) { s= TSTR(GetString(IDS_CLASS_NAME)); }
virtual Class_ID ClassID() { return VERTEX_TREE_PAINT_CLASS_ID;} virtual Class_ID ClassID() { return VERTEX_TREE_PAINT_CLASS_ID;}
RefTargetHandle Clone(RemapDir& remap = DefaultRemapDir()); RefTargetHandle Clone(RemapDir& remap = DefaultRemapDir());
TCHAR *GetObjectName() { return GetString(IDS_CLASS_NAME); } const MCHAR *GetObjectName() { return GetString(IDS_CLASS_NAME); }
IOResult Load(ILoad *iload); IOResult Load(ILoad *iload);
IOResult Save(ISave *isave); IOResult Save(ISave *isave);
IOResult LoadLocalData(ILoad *iload, LocalModData **pld); IOResult LoadLocalData(ILoad *iload, LocalModData **pld);

View file

@ -107,10 +107,10 @@ class RGBAddClassDesc:public ClassDesc2 {
const TCHAR * ClassName() { return GetString(IDS_DS_RGBMULT_CDESC); } // mjm - 2.3.99 const TCHAR * ClassName() { return GetString(IDS_DS_RGBMULT_CDESC); } // mjm - 2.3.99
SClass_ID SuperClassID() { return TEXMAP_CLASS_ID; } SClass_ID SuperClassID() { return TEXMAP_CLASS_ID; }
Class_ID ClassID() { return RGBAddClassID; } Class_ID ClassID() { return RGBAddClassID; }
const TCHAR* Category() { return TEXMAP_CAT_COMP; } const MCHAR* Category() { return TEXMAP_CAT_COMP; }
// JBW: new descriptor data accessors added. Note that the // JBW: new descriptor data accessors added. Note that the
// internal name is hardwired since it must not be localized. // internal name is hardwired since it must not be localized.
const TCHAR* InternalName() { return _T("RGBAdd"); } // returns fixed parsable name (scripter-visible name) const MCHAR* InternalName() { return _M("RGBAdd"); } // returns fixed parsable name (scripter-visible name)
HINSTANCE HInstance() { return hInstance; } // returns owning module handle HINSTANCE HInstance() { return hInstance; } // returns owning module handle
}; };

View file

@ -75,8 +75,8 @@ class Tile_utilityClassDesc:public ClassDesc2
const TCHAR * ClassName() {return _T("NeL Tile Bank");} const TCHAR * ClassName() {return _T("NeL Tile Bank");}
SClass_ID SuperClassID() {return UTILITY_CLASS_ID;} SClass_ID SuperClassID() {return UTILITY_CLASS_ID;}
Class_ID ClassID() {return TILE_UTILITY_CLASS_ID;} Class_ID ClassID() {return TILE_UTILITY_CLASS_ID;}
const TCHAR* Category() {return _T("NeL Tools");} const MCHAR* Category() {return _M("NeL Tools");}
const TCHAR* InternalName() { return _T("NeL tile bank utility"); } // returns fixed parsable name (scripter-visible name) const MCHAR* InternalName() { return _M("NeL tile bank utility"); } // returns fixed parsable name (scripter-visible name)
HINSTANCE HInstance() { return hInstance; } // returns owning module handle HINSTANCE HInstance() { return hInstance; } // returns owning module handle
}; };