+- (void)updateDescriptionText
+{
+ TCtype type = [[typePopup selectedItem] tag];
+ TCsize size = [[sizePopup selectedItem] tag];
+
+ switch ( type )
+ {
+ case TYPE_STRING:
+ [descriptionText setStringValue:@"A string is a series of characters.\n\nThis search allows you to find and change words and phrases. Numbers can also be stored as strings, but they aren't recognized as numbers by the computer. Changing strings probably won't change the game in a big way."];
+ break;
+
+ case TYPE_INTEGER:
+ switch ( size )
+ {
+ case SIZE_8_BIT:
+ [descriptionText setStringValue:@"An integer is a non-fraction number.\n\nExamples: 0, 1, 2, 3, 4\nRange: 0 - 255\n\nIntegers usually store variables like score, lives, and remaining ammo."];
+ break;
+
+ case SIZE_16_BIT:
+ [descriptionText setStringValue:@"An integer is a non-fraction number.\n\nExamples: -1, 0, 1, 2, 3\nRange: -32,768 - 32,767\n\nIntegers usually store variables like score, lives, and remaining ammo."];
+ break;
+
+ case SIZE_32_BIT:
+ [descriptionText setStringValue:@"An integer is a non-fraction number.\n\nExamples: -1, 0, 1, 2, 3\nRange: about -2 billion - 2 billion\n\nIntegers usually store variables like score, lives, and remaining ammo. This is the most common size for integer variables."];
+ break;
+ }
+ break;
+
+ case TYPE_DECIMAL:
+ [descriptionText setStringValue:@"A decimal is a fraction number.\n\nFloats and doubles are not often used as variables in games, but there may be other uses for cheating them. Type in as many digits after the decimal place as possible to ensure that your input is matched with the variable you are looking for."];
+ break;
+ }
+}
+