Skip to content

Commit

Permalink
Add v1.02 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LB-- committed Nov 14, 2013
1 parent 8178402 commit 5bc18bb
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Ext.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
#ifndef _MAC

1 VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEVERSION 1,2,0,0
PRODUCTVERSION 1,2,0,0
FILEFLAGSMASK 0x0L
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -36,7 +36,7 @@ BEGIN
BLOCK "080004e4"
BEGIN
VALUE "FileDescription", "Value-Add Object For Clickteam's MMF2"
VALUE "FileVersion", "v1.01"
VALUE "FileVersion", "v1.2"
VALUE "LegalCopyright", "Copyright � 2008 Dynamic Arcade"
VALUE "OriginalFilename", "ValueAdd.mfx"
END
Expand Down
2 changes: 1 addition & 1 deletion General.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ short WINAPI DLLExport GetRunObjectInfos(mv _far *mV, fpKpxRunInfos infoPtr)
MagicPrefs(infoPtr->editPrefs);

infoPtr->identifier = IDENTIFIER;
infoPtr->version = 1;
infoPtr->version = VERSION;

return TRUE;
}
Expand Down
3 changes: 3 additions & 0 deletions Information.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
// Change N,O,N,E to 4 unique characters (MMF currently still uses this to keep track)
#define IDENTIFIER MAKEID(D,A,V,A)

// Version 1.2
#define VERSION 120

// --------------------
// Version information
// --------------------
Expand Down
29 changes: 29 additions & 0 deletions Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,35 @@ ACTION(
}
}

ACTION(
/* ID */ 1,
/* Name */ "%o: Spread Value %2 (+%3) in Ext. Alt. Value %1 of %0",
/* Flags */ 0,
/* Params */ (4,PARAM_OBJECT,"Object",PARAM_STRING,"Extended Alt. Value's Name",PARAM_NUMBER,"Start Value",PARAM_NUMBER,"Step Value")
) {
object* p1 = (object*)Param(TYPE_OBJECT);
char* p2 = (char*)Param(TYPE_STRING);
float p3 = Long2Float(CNC_GetFloatParameter(rdPtr));
float p4 = Long2Float(CNC_GetFloatParameter(rdPtr));
p3 += p4 * rdPtr->rHo.hoAdRunHeader->rh2.rh2ActionLoopCount;

variable_map::iterator i = rdPtr->pVariableMap->find(p1);
if ( i == rdPtr->pVariableMap->end() )
{
i = rdPtr->pVariableMap->insert( pair<object*,variables>(p1,variables()) ).first;
}

variables::iterator j = i->second.find(p2);
if ( j == i->second.end() )
{
j = i->second.insert( pair<string,float>(p2,p3) ).first;
}
else
{
j->second = p3;
}
}

// ============================================================================
//
// EXPRESSIONS
Expand Down
1 change: 1 addition & 0 deletions Menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#ifdef ACTION_MENU

ITEM(0,"Set Value")
ITEM(1,"Spread Value")

#endif

Expand Down

0 comments on commit 5bc18bb

Please sign in to comment.