mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-26 18:40:54 +00:00
Changed: Use MCHAR and _M macros for 3dsmax SDK strings
This commit is contained in:
parent
0fb1fa5cc0
commit
bb9cec5372
19 changed files with 125 additions and 125 deletions
|
@ -105,11 +105,11 @@ class CNelExportClassDesc:public ClassDesc2
|
|||
public:
|
||||
int IsPublic() {return 1;}
|
||||
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;}
|
||||
Class_ID ClassID() {return CNELEXPORT_CLASS_ID;}
|
||||
const TCHAR* Category() {return _T("NeL Tools");}
|
||||
const TCHAR* InternalName() { return _T("NeL export and view"); } // returns fixed parsable name (scripter-visible name)
|
||||
const MCHAR* Category() {return _M("NeL Tools");}
|
||||
const MCHAR* InternalName() { return _M("NeL export and view"); } // returns fixed parsable name (scripter-visible name)
|
||||
HINSTANCE HInstance() { return hInstance; } // returns owning module handle
|
||||
};
|
||||
|
||||
|
|
|
@ -90,13 +90,13 @@ class addSubLodNodeHitCallBack : public HitByNameDlgCallback
|
|||
public:
|
||||
INodeTab NodeTab;
|
||||
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()
|
||||
{
|
||||
|
|
|
@ -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_right_now, "NelForceQuitRightNow");
|
||||
|
||||
char *sExportShapeErrorMsg = "NeLExportShape [Object] [Filename.shape]";
|
||||
char *sExportShapeExErrorMsg = "NeLExportShapeEx [Object] [Filename.shape] [bShadow] [bExportLighting] [sLightmapPath] [nLightingLimit] [fLumelSize] [nOverSampling] [bExcludeNonSelected] [bShowLumel]";
|
||||
char *sExportAnimationErrorMsg = "NelExportAnimation [node array] [Filename.anim] [bool_scene_animation]";
|
||||
char *sExportCollisionErrorMsg = "NelExportCollision [node array] [output directory]";
|
||||
char *sExportPACSPrimitivesErrorMsg = "NelExportPACSPrimitves [node array] [output filename]";
|
||||
MCHAR *sExportShapeErrorMsg = _M("NeLExportShape [Object] [Filename.shape]");
|
||||
MCHAR *sExportShapeExErrorMsg = _M("NeLExportShapeEx [Object] [Filename.shape] [bShadow] [bExportLighting] [sLightmapPath] [nLightingLimit] [fLumelSize] [nOverSampling] [bExcludeNonSelected] [bShowLumel]");
|
||||
MCHAR *sExportAnimationErrorMsg = _M("NelExportAnimation [node array] [Filename.anim] [bool_scene_animation]");
|
||||
MCHAR *sExportCollisionErrorMsg = _M("NelExportCollision [node array] [output directory]");
|
||||
MCHAR *sExportPACSPrimitivesErrorMsg = _M("NelExportPACSPrimitves [node array] [output filename]");
|
||||
|
||||
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
|
||||
// We want to use 'TurnAllTexturesOn <object to use>'
|
||||
type_check (arg_list[0], MAXNode, "NelExportSkeleton [root node] [Filename]");
|
||||
type_check (arg_list[1], String, "NelExportSkeleton [root node] [Filename]");
|
||||
type_check (arg_list[0], MAXNode, _M("NelExportSkeleton [root node] [Filename]"));
|
||||
type_check (arg_list[1], String, _M("NelExportSkeleton [root node] [Filename]"));
|
||||
|
||||
// Get a good interface pointer
|
||||
Interface *ip = MAXScript_interface;
|
||||
|
@ -298,7 +298,7 @@ Value* export_animation_cf (Value** arg_list, int count)
|
|||
else
|
||||
{
|
||||
// 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
|
||||
// We want to use 'TurnAllTexturesOn <object to use>'
|
||||
type_check (arg_list[0], Array, "NelExportInstanceGroup [Object array] [Filename]");
|
||||
type_check (arg_list[1], String, "NelExportInstanceGroup [Object array] [Filename]");
|
||||
type_check (arg_list[0], Array, _M("NelExportInstanceGroup [Object array] [Filename]"));
|
||||
type_check (arg_list[1], String, _M("NelExportInstanceGroup [Object array] [Filename]"));
|
||||
|
||||
// Get a good interface pointer
|
||||
Interface *ip = MAXScript_interface;
|
||||
|
@ -342,7 +342,7 @@ Value* export_ig_cf (Value** arg_list, int count)
|
|||
// Check each value in the array
|
||||
uint 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
|
||||
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
|
||||
// We want to use 'TurnAllTexturesOn <object to use>'
|
||||
type_check (arg_list[0], Array, "NelExportSkeletonWeight [Object array] [Filename]");
|
||||
type_check (arg_list[1], String, "NelExportSkeletonWeight [Object array] [Filename]");
|
||||
type_check (arg_list[0], Array, _M("NelExportSkeletonWeight [Object array] [Filename]"));
|
||||
type_check (arg_list[1], String, _M("NelExportSkeletonWeight [Object array] [Filename]"));
|
||||
|
||||
// Get a good interface pointer
|
||||
Interface *ip = MAXScript_interface;
|
||||
|
@ -401,7 +401,7 @@ Value* export_skeleton_weight_cf (Value** arg_list, int count)
|
|||
// Check each value in the array
|
||||
uint 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
|
||||
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)
|
||||
check_arg_count(view_shape, 2, count);
|
||||
|
||||
type_check (arg_list[0], String, "NeLTestFileDate [DestFilename] [SrcFilename]");
|
||||
type_check (arg_list[1], String, "NeLTestFileDate [DestFilename] [SrcFilename]");
|
||||
type_check (arg_list[0], String, _M("NeLTestFileDate [DestFilename] [SrcFilename]"));
|
||||
type_check (arg_list[1], String, _M("NeLTestFileDate [DestFilename] [SrcFilename]"));
|
||||
|
||||
// Get a good interface pointer
|
||||
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
|
||||
// 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[1], String, 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 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[1], String, 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 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], Array, message);
|
||||
|
@ -787,7 +787,7 @@ Value* node_properties_cf (Value** arg_list, int count)
|
|||
uint 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
|
||||
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 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 (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 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 (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 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 (arg_list[0], String, message);
|
||||
|
|
|
@ -781,8 +781,8 @@ void CExportNel::outputWarningMessage (const std::string &message)
|
|||
{
|
||||
MessageBox (_Ip->GetMAXHWnd(), utf8ToTStr(message), utf8ToTStr(_ErrorTitle), MB_OK|MB_ICONEXCLAMATION);
|
||||
}
|
||||
mprintf (message);
|
||||
mprintf ("\n");
|
||||
mprintf (utf8ToTStr(message));
|
||||
mprintf (_M("\n"));
|
||||
|
||||
nlwarning ("Warning in max file %s : ", _Ip->GetCurFilePath());
|
||||
nlwarning (message.c_str());
|
||||
|
|
|
@ -50,7 +50,7 @@ class PO2RPO : public Modifier {
|
|||
HWND hRollup;
|
||||
|
||||
// From Animatable
|
||||
MCHAR *GetObjectName() { return GetString(IDS_CLASS_NAME); }
|
||||
const MCHAR *GetObjectName() { return GetString(IDS_CLASS_NAME); }
|
||||
|
||||
//From Modifier
|
||||
//TODO: Add the channels that the modifier needs to perform its modification
|
||||
|
@ -115,11 +115,11 @@ class PO2RPOClassDesc:public ClassDesc2 {
|
|||
return new PO2RPO();
|
||||
}
|
||||
|
||||
const TCHAR * ClassName() {return "NeL Convert";}
|
||||
const MCHAR * ClassName() {return _M("NeL Convert");}
|
||||
SClass_ID SuperClassID() {return OSM_CLASS_ID;}
|
||||
Class_ID ClassID() {return PO2RPO_CLASS_ID;}
|
||||
const TCHAR* Category() {return "NeL Tools";}
|
||||
const TCHAR* InternalName() { return _T("PatchObjectToNelPatchObject"); } // returns fixed parsable name (scripter-visible name)
|
||||
const MCHAR* Category() {return _M("NeL Tools");}
|
||||
const MCHAR* InternalName() { return _M("PatchObjectToNelPatchObject"); } // returns fixed parsable name (scripter-visible name)
|
||||
HINSTANCE HInstance() { return hInstance; } // returns owning module handle
|
||||
};
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@ def_visible_primitive( set_vertex_pos, "SetRykolVertexPos");
|
|||
def_visible_primitive( get_vector_pos, "GetRykolVectorPos");
|
||||
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 ?
|
||||
if (dialog)
|
||||
|
@ -168,7 +168,8 @@ void errorMessage (const char *msg, const char *title, Interface& it, bool dialo
|
|||
else
|
||||
{
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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[1], Boolean, help);
|
||||
|
||||
|
@ -287,13 +288,15 @@ Value* import_zone_cf (Value** arg_list, int count)
|
|||
catch (const Exception& e)
|
||||
{
|
||||
// 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
|
||||
{
|
||||
// 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;
|
||||
|
@ -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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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
|
||||
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
|
||||
// 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
|
||||
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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// 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[1], 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
|
||||
// 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]");
|
||||
|
||||
// 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
|
||||
// We want to use 'TurnAllTexturesOn <object to use>'
|
||||
type_check(arg_list[0], MAXNode, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]");
|
||||
type_check(arg_list[1], Integer, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]");
|
||||
type_check(arg_list[2], Integer, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]");
|
||||
type_check(arg_list[3], Integer, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]");
|
||||
type_check(arg_list[0], MAXNode, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"));
|
||||
type_check(arg_list[1], Integer, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"));
|
||||
type_check(arg_list[2], Integer, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"));
|
||||
type_check(arg_list[3], Integer, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber] [Layer]"));
|
||||
|
||||
// Get a good interface pointer
|
||||
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;
|
||||
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
|
||||
{
|
||||
|
@ -1427,7 +1430,7 @@ get_tile_tile_number_cf(Value** arg_list, int count)
|
|||
uint nPatch=arg_list[1]->to_int()-1;
|
||||
if (nPatch>=tri->rpatch->getUIPatchSize())
|
||||
{
|
||||
mprintf ("Error: patch index is invalid.\n");
|
||||
mprintf (_M("Error: patch index is invalid.\n"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1439,7 +1442,7 @@ get_tile_tile_number_cf(Value** arg_list, int count)
|
|||
uint tile=arg_list[2]->to_int()-1;
|
||||
if (tile>=nPatchCount)
|
||||
{
|
||||
mprintf ("Error: tile index is invalid.\n");
|
||||
mprintf (_M("Error: tile index is invalid.\n"));
|
||||
}
|
||||
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
|
||||
// We want to use 'TurnAllTexturesOn <object to use>'
|
||||
type_check(arg_list[0], MAXNode, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]");
|
||||
type_check(arg_list[1], Integer, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]");
|
||||
type_check(arg_list[2], Integer, "NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]");
|
||||
type_check(arg_list[0], MAXNode, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]"));
|
||||
type_check(arg_list[1], Integer, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]"));
|
||||
type_check(arg_list[2], Integer, _M("NelGetTileTileNumber [Zone] [PatchNumber] [TileNumber]"));
|
||||
|
||||
// Get a good interface pointer
|
||||
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;
|
||||
if (nPatch>=tri->rpatch->getUIPatchSize())
|
||||
{
|
||||
mprintf ("Error: patch index is invalid.\n");
|
||||
mprintf (_M("Error: patch index is invalid.\n"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1516,7 +1519,7 @@ get_tile_noise_number_cf(Value** arg_list, int count)
|
|||
uint tile=arg_list[2]->to_int()-1;
|
||||
if (tile>=nPatchCount)
|
||||
{
|
||||
mprintf ("Error: patch index is invalid.\n");
|
||||
mprintf (_M("Error: patch index is invalid.\n"));
|
||||
}
|
||||
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
|
||||
// We want to use 'TurnAllTexturesOn <object to use>'
|
||||
type_check(arg_list[0], MAXNode, "NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]");
|
||||
type_check(arg_list[1], Integer, "NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]");
|
||||
type_check(arg_list[2], Integer, "NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]");
|
||||
type_check(arg_list[3], Integer, "NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]");
|
||||
type_check(arg_list[0], MAXNode, _M("NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"));
|
||||
type_check(arg_list[1], Integer, _M("NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"));
|
||||
type_check(arg_list[2], Integer, _M("NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"));
|
||||
type_check(arg_list[3], Integer, _M("NelGetTileNoiseNumber [Zone] [PatchNumber] [TileNumber] [noise]"));
|
||||
|
||||
// Get a good interface pointer
|
||||
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;
|
||||
if (noise>=16)
|
||||
{
|
||||
mprintf ("Error: noise value must be 1~16\n");
|
||||
mprintf (_M("Error: noise value must be 1~16\n"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1582,7 +1585,7 @@ set_tile_noise_number_cf(Value** arg_list, int count)
|
|||
uint nPatch=arg_list[1]->to_int()-1;
|
||||
if (nPatch>=tri->rpatch->getUIPatchSize())
|
||||
{
|
||||
mprintf ("Error: patch index is invalid.\n");
|
||||
mprintf (_M("Error: patch index is invalid.\n"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1594,7 +1597,7 @@ set_tile_noise_number_cf(Value** arg_list, int count)
|
|||
uint tile=arg_list[2]->to_int()-1;
|
||||
if (tile>=nPatchCount)
|
||||
{
|
||||
mprintf ("Error: patch index is invalid.\n");
|
||||
mprintf (_M("Error: patch index is invalid.\n"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1646,13 +1649,13 @@ load_bank_cf(Value** arg_list, int count)
|
|||
}
|
||||
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)
|
||||
{
|
||||
// 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
|
||||
// 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 ?
|
||||
int nRet=-1;
|
||||
|
@ -1677,7 +1680,7 @@ get_tile_set_cf(Value** arg_list, int count)
|
|||
uint tile=arg_list[0]->to_int()-1;
|
||||
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
|
||||
{
|
||||
|
@ -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
|
||||
// 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 ?
|
||||
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
|
||||
// We want to use 'TurnAllTexturesOn <object to use>'
|
||||
type_check(arg_list[0], MAXNode, "NeLAttachPatchMesh [RykolPatchMeshSrc] [RykolPatchMeshDest]");
|
||||
type_check(arg_list[1], MAXNode, "NeLAttachPatchMesh [RykolPatchMeshSrc] [RykolPatchMeshDest]");
|
||||
type_check(arg_list[0], MAXNode, _M("NeLAttachPatchMesh [RykolPatchMeshSrc] [RykolPatchMeshDest]"));
|
||||
type_check(arg_list[1], MAXNode, _M("NeLAttachPatchMesh [RykolPatchMeshSrc] [RykolPatchMeshDest]"));
|
||||
|
||||
// Get a good interface pointer
|
||||
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
|
||||
// We want to use 'TurnAllTexturesOn <object to use>'
|
||||
type_check(arg_list[0], MAXNode, "NeLWeldPatchMesh [RykolPatchMeshSrc] [threshold]");
|
||||
type_check(arg_list[1], Float, "NeLWeldPatchMesh [RykolPatchMeshSrc] [threshold]");
|
||||
type_check(arg_list[0], MAXNode, _M("NeLWeldPatchMesh [RykolPatchMeshSrc] [threshold]"));
|
||||
type_check(arg_list[1], Float, _M("NeLWeldPatchMesh [RykolPatchMeshSrc] [threshold]"));
|
||||
|
||||
// Get a good interface pointer
|
||||
Interface *ip = MAXScript_interface;
|
||||
|
|
|
@ -752,7 +752,7 @@ class EditPatchMod : public Modifier, IPatchOps, IPatchSelect, ISubMtlAPI, Attac
|
|||
void BeginEditParams( IObjParam *ip, ULONG flags, Animatable *prev );
|
||||
void EndEditParams( IObjParam *ip, ULONG flags, Animatable *next );
|
||||
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 );
|
||||
int NeedUseSubselButton() { return 0; }
|
||||
void SelectSubPatch(int index);
|
||||
|
@ -929,10 +929,10 @@ class EditPatchClassDesc:public ClassDesc {
|
|||
{
|
||||
return new EditPatchMod;
|
||||
}
|
||||
const TCHAR * ClassName() { return "NeL Edit"; }
|
||||
const MCHAR * ClassName() { return _M("NeL Edit"); }
|
||||
SClass_ID SuperClassID() { return OSM_CLASS_ID; }
|
||||
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);
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
// We want to use 'TurnAllTexturesOn <object to use>'
|
||||
type_check(arg_list[0], MAXNode, "RykolTurnPatch [Node] [Modifier] [Patch]");
|
||||
type_check(arg_list[1], MAXModifier, "RykolTurnPatch [Node] [Modifier] [Patch]");
|
||||
type_check(arg_list[2], Integer, "RykolTurnPatch [Node] [Modifier] [Patch]");
|
||||
type_check(arg_list[0], MAXNode, _M("RykolTurnPatch [Node] [Modifier] [Patch]"));
|
||||
type_check(arg_list[1], MAXModifier, _M("RykolTurnPatch [Node] [Modifier] [Patch]"));
|
||||
type_check(arg_list[2], Integer, _M("RykolTurnPatch [Node] [Modifier] [Patch]"));
|
||||
|
||||
// Get a good interface pointer
|
||||
Interface *ip = MAXScript_interface;
|
||||
|
|
|
@ -276,7 +276,7 @@ void EditPatchMod::SetSelTess(int nU, int nV)
|
|||
}
|
||||
|
||||
if (holdNeeded)
|
||||
theHold.Accept("Tile count in U and V change");
|
||||
theHold.Accept(_M("Tile count in U and V change"));
|
||||
else
|
||||
{
|
||||
ip->DisplayTempPrompt(GetString(IDS_TH_NOPATCHESSEL), PROMPT_TIME);
|
||||
|
@ -453,7 +453,7 @@ void EditPatchMod::setSmoothFlags (bool smooth)
|
|||
}
|
||||
|
||||
if (holdNeeded)
|
||||
theHold.Accept("Tile count in U and V change");
|
||||
theHold.Accept(_M("Tile count in U and V change"));
|
||||
else
|
||||
{
|
||||
ip->DisplayTempPrompt(GetString(IDS_TH_NOPATCHESSEL), PROMPT_TIME);
|
||||
|
@ -589,7 +589,7 @@ void EditPatchMod::BalanceSelPatch ()
|
|||
}
|
||||
|
||||
if (holdNeeded)
|
||||
theHold.Accept("Balance tile");
|
||||
theHold.Accept(_M("Balance tile"));
|
||||
else
|
||||
{
|
||||
ip->DisplayTempPrompt(GetString(IDS_TH_NOPATCHESSEL), PROMPT_TIME);
|
||||
|
|
|
@ -167,16 +167,14 @@ void EditPatchMod::BeginEditParams(IObjParam *ip, ULONG flags, Animatable *prev)
|
|||
|
||||
if (selLevel == EP_TILE)
|
||||
{
|
||||
hTilePanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_TILE),
|
||||
PatchTileDlgProc, "Tile Properties", (LPARAM) this, rsTile ? 0 : APPENDROLL_CLOSED);
|
||||
hTilePanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_TILE), PatchTileDlgProc, _M("Tile Properties"), (LPARAM) this, rsTile ? 0 : APPENDROLL_CLOSED);
|
||||
}
|
||||
else
|
||||
hTilePanel = NULL;
|
||||
|
||||
if (selLevel == EP_EDGE)
|
||||
{
|
||||
hEdgePanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_EDGE),
|
||||
PatchEdgeDlgProc, "Edge Properties", (LPARAM) this, rsEdge ? 0 : APPENDROLL_CLOSED);
|
||||
hEdgePanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_EDGE), PatchEdgeDlgProc, _M("Edge Properties"), (LPARAM) this, rsEdge ? 0 : APPENDROLL_CLOSED);
|
||||
}
|
||||
else
|
||||
hEdgePanel = NULL;
|
||||
|
@ -328,7 +326,7 @@ ISubObjType *EditPatchMod::GetSubObjType(int i)
|
|||
SOT_Vertex.SetName(GetString(IDS_TH_VERTEX));
|
||||
SOT_Edge.SetName(GetString(IDS_TH_EDGE));
|
||||
SOT_Patch.SetName(GetString(IDS_TH_PATCH));
|
||||
SOT_Tile.SetName("Tile");
|
||||
SOT_Tile.SetName(_M("Tile"));
|
||||
// SOT_Element.SetName(GetString(IDS_TH_ELEMENT));
|
||||
// SOT_Handle.SetName(GetString(IDS_TH_HANDLE));
|
||||
}
|
||||
|
|
|
@ -43,9 +43,9 @@ class RPOClassDesc:public ClassDesc
|
|||
{
|
||||
return new RPO;
|
||||
}
|
||||
const TCHAR * ClassName()
|
||||
const MCHAR * ClassName()
|
||||
{
|
||||
return _T("RklPatch");
|
||||
return _M("RklPatch");
|
||||
}
|
||||
SClass_ID SuperClassID()
|
||||
{
|
||||
|
@ -55,9 +55,9 @@ class RPOClassDesc:public ClassDesc
|
|||
{
|
||||
return RYKOLPATCHOBJ_CLASS_ID;
|
||||
}
|
||||
const TCHAR* Category()
|
||||
const MCHAR* Category()
|
||||
{
|
||||
return _T("Rykol Tools");
|
||||
return _M("Rykol Tools");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -83,14 +83,14 @@ class RPO : public PatchObject
|
|||
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);
|
||||
//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 GetLocalBoundBox(TimeValue t, INode *mat, ViewExp *vpt, Box3& box );
|
||||
|
||||
void GetDeformBBox(TimeValue t, Box3& box, Matrix3 *tm, BOOL useSel );
|
||||
//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
|
||||
BOOL HasUVW();
|
||||
|
|
|
@ -482,7 +482,7 @@ class PaintPatchMod : public Modifier
|
|||
void BeginEditParams( IObjParam *ip, ULONG flags, Animatable *prev );
|
||||
void EndEditParams( IObjParam *ip, ULONG flags, Animatable *next );
|
||||
RefTargetHandle Clone(RemapDir& remap = DefaultRemapDir());
|
||||
TCHAR *GetObjectName() { return "NeL Patch Painter"; }
|
||||
const MCHAR *GetObjectName() { return _M("NeL Patch Painter"); }
|
||||
|
||||
void RescaleWorldUnits(float f);
|
||||
|
||||
|
@ -500,10 +500,10 @@ class EditPatchClassDesc:public ClassDesc {
|
|||
{
|
||||
return new PaintPatchMod;
|
||||
}
|
||||
const TCHAR * ClassName() { return "NeL Painter"; }
|
||||
const MCHAR * ClassName() { return _M("NeL Painter"); }
|
||||
SClass_ID SuperClassID() { return OSM_CLASS_ID; }
|
||||
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);
|
||||
};
|
||||
|
||||
|
|
|
@ -4034,7 +4034,7 @@ void EPM_PaintCMode::DoPaint ()
|
|||
patchData->SetFlag(EPD_BEENDONE, TRUE);
|
||||
}
|
||||
|
||||
theHold.Accept("Patch change");
|
||||
theHold.Accept(_M("Patch change"));
|
||||
|
||||
nodes.DisposeTemporary();
|
||||
pobj->ClearPatchDataFlag(mcList, EPD_BEENDONE);
|
||||
|
|
|
@ -47,8 +47,7 @@ void PaintPatchMod::BeginEditParams(IObjParam *ip, ULONG flags, Animatable *prev
|
|||
|
||||
CreatePatchDataTempData();
|
||||
|
||||
hOpsPanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_OPS),
|
||||
PatchOpsDlgProc, "Geometry", (LPARAM) this, rsOps ? 0 : APPENDROLL_CLOSED);
|
||||
hOpsPanel = ip->AddRollupPage(hInstance, MAKEINTRESOURCE(IDD_EDPATCH_OPS), PatchOpsDlgProc, _M("Geometry"), (LPARAM) this, rsOps ? 0 : APPENDROLL_CLOSED);
|
||||
|
||||
// Create sub object editing modes.
|
||||
paintMode = new EPM_PaintCMode(this, ip);
|
||||
|
|
|
@ -41,10 +41,10 @@ class VertexPaintClassDesc :public ClassDesc
|
|||
public:
|
||||
int IsPublic() { return 1; }
|
||||
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; }
|
||||
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) {}
|
||||
};
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ public:
|
|||
void GetClassName(TSTR& s) { s= TSTR(GetString(IDS_CLASS_NAME)); }
|
||||
virtual Class_ID ClassID() { return VERTEX_TREE_PAINT_CLASS_ID;}
|
||||
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 Save(ISave *isave);
|
||||
IOResult LoadLocalData(ILoad *iload, LocalModData **pld);
|
||||
|
|
|
@ -107,10 +107,10 @@ class RGBAddClassDesc:public ClassDesc2 {
|
|||
const TCHAR * ClassName() { return GetString(IDS_DS_RGBMULT_CDESC); } // mjm - 2.3.99
|
||||
SClass_ID SuperClassID() { return TEXMAP_CLASS_ID; }
|
||||
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
|
||||
// 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
|
||||
};
|
||||
|
||||
|
|
|
@ -75,8 +75,8 @@ class Tile_utilityClassDesc:public ClassDesc2
|
|||
const TCHAR * ClassName() {return _T("NeL Tile Bank");}
|
||||
SClass_ID SuperClassID() {return UTILITY_CLASS_ID;}
|
||||
Class_ID ClassID() {return TILE_UTILITY_CLASS_ID;}
|
||||
const TCHAR* Category() {return _T("NeL Tools");}
|
||||
const TCHAR* InternalName() { return _T("NeL tile bank utility"); } // returns fixed parsable name (scripter-visible name)
|
||||
const MCHAR* Category() {return _M("NeL Tools");}
|
||||
const MCHAR* InternalName() { return _M("NeL tile bank utility"); } // returns fixed parsable name (scripter-visible name)
|
||||
HINSTANCE HInstance() { return hInstance; } // returns owning module handle
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue